47 <<
"Mesh is not subsetted!" <<
nl 63 edgeFlipMapPtr_(nullptr),
83 subMeshPtr_.reset(
nullptr);
84 edgeFlipMapPtr_.reset(
nullptr);
108 auto& newSubMesh = subMeshPtr_();
113 const faBoundaryMesh& oldBoundary = baseMesh_.boundary();
114 const faBoundaryMesh& newBoundary = newSubMesh.boundary();
116 faPatchList newPatches(oldBoundary.nNonProcessor());
118 patchMap_ =
identity(newPatches.size());
120 forAll(newPatches, patchi)
125 oldBoundary[patchi].clone
130 oldBoundary[patchi].ngbPolyPatchIndex()
135 newSubMesh.addFaPatches(newPatches);
PtrList< faPatch > faPatchList
Store lists of faPatch as a PtrList.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
#define forAll(list, i)
Loop across all elements in list.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
A class for handling words, derived from Foam::string.
bool checkHasSubMesh() const
FatalError if subset has not been performed.
void reset()
Reset subMesh and all maps. Same as clear()
errorManip< error > abort(error &err)
faMeshSubset(const faMeshSubset &)=delete
No copy construct.
static word exposedPatchName
Name for exposed internal edges (default: oldInternalEdges)
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
List< label > labelList
A List of labels.
void clear()
Reset subMesh and all maps.