|
DNDSR 0.2.1
Distributed Numeric Data Structure for CFV
|
#include <MeshConnectivity.hpp>
Public Attributes | |
| std::function< int(index iParent)> | numSubEntities |
| Number of sub-entities for parent iParent. | |
| std::function< SubEntityDesc(index iParent, int iSub)> | describe |
| Describe sub-entity iSub of parent iParent. | |
| std::function< void(index iParent, int iSub, const std::function< index(int)> &parentNodes, index *out)> | extractNodes |
| std::function< bool(index iParent, int iSub, index iCandEntity, index candidateParent, int candidateSub)> | matchExtra |
User-provided callbacks that describe how to decompose parent entities into sub-entities. This decouples Interpolate from any specific element topology module.
Example: to extract faces from cells, the caller would implement:
Definition at line 554 of file MeshConnectivity.hpp.
| std::function<SubEntityDesc(index iParent, int iSub)> DNDS::Geom::SubEntityQuery::describe |
Describe sub-entity iSub of parent iParent.
Definition at line 560 of file MeshConnectivity.hpp.
| std::function<void(index iParent, int iSub, const std::function<index(int)> &parentNodes, index *out)> DNDS::Geom::SubEntityQuery::extractNodes |
Extract node indices of sub-entity iSub from parentNodes into out. Must write exactly desc.nNodes entries starting at out[0]. parentNodes is an indexable range (operator[] returning index).
Definition at line 568 of file MeshConnectivity.hpp.
| std::function<bool(index iParent, int iSub, index iCandEntity, index candidateParent, int candidateSub)> DNDS::Geom::SubEntityQuery::matchExtra |
Optional extra match predicate for deduplication.
Called after vertex-set match succeeds. If set, must return true for the match to be accepted. Used for periodic meshes to implement the "collaborating" check (uniform XOR of periodic bits).
| iParent | Current parent entity index. |
| iSub | Current sub-entity index within parent. |
| iCandEntity | Index of the candidate entity in the result arrays. |
| candidateParent | Index of the parent that created the candidate entity. |
| candidateSub | Sub-entity index that created the candidate entity. |
Definition at line 585 of file MeshConnectivity.hpp.
| std::function<int(index iParent)> DNDS::Geom::SubEntityQuery::numSubEntities |
Number of sub-entities for parent iParent.
Definition at line 557 of file MeshConnectivity.hpp.