Go to the documentation of this file.
35 void Foam::fvBoundaryMesh::addPatches(
const polyBoundaryMesh& basicBdry)
44 Patches.set(patchi,
fvPatch::New(basicBdry[patchi], *
this));
51 Foam::fvBoundaryMesh::fvBoundaryMesh
61 Foam::fvBoundaryMesh::fvBoundaryMesh
70 addPatches(basicBdry);
123 forAll(interfaces, patchi)
125 if (isA<lduInterface>(this->
operator[](patchi)))
130 &refCast<const lduInterface>(this->
operator[](patchi))
144 addPatches(basicBdry);
152 const word& patchName
155 const label patchi = findPatchID(patchName);
160 <<
"Patch named " << patchName <<
" not found." <<
nl
164 return operator[](patchi);
170 const word& patchName
173 const label patchi = findPatchID(patchName);
178 <<
"Patch named " << patchName <<
" not found." <<
nl
182 return operator[](patchi);
A class for handling words, derived from Foam::string.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
label findPatchID(const word &patchName) const
Find patch index given a name.
static autoPtr< fvPatch > New(const polyPatch &, const fvBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
const T * set(const label i) const
Return const pointer to element (if set) or nullptr.
void readUpdate(const polyBoundaryMesh &)
Update boundary based on new polyBoundaryMesh.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
PtrList< fvPatch > fvPatchList
container classes for fvPatch
A class for handling keywords in dictionaries.
word name(const complex &c)
Return string representation of complex.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void setSize(const label newLen)
Same as resize()
lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
labelList indices(const keyType &key, const bool useGroups) const
Return patch indices for all matches.
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
labelList indices(const keyType &key, const bool useGroups=true) const
Return patch indices for all matches.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const polyBoundaryMesh & patches
void movePoints()
Correct patches after moving points.