32 void Foam::fvBoundaryMesh::addPatches(
const polyBoundaryMesh& basicBdry)
67 addPatches(basicBdry);
93 const bool usePatchGroups
96 return mesh().boundaryMesh().findIndices(key, usePatchGroups);
103 const bool validBoundary
117 if (isA<lduInterface>(this->
operator[](
patchi)))
122 &refCast<const lduInterface>(this->
operator[](
patchi))
136 addPatches(basicBdry);
144 const word& patchName
152 <<
"Patch named " << patchName <<
" not found." <<
nl
156 return operator[](
patchi);
162 const word& patchName
170 <<
"Patch named " << patchName <<
" not found." <<
nl
174 return operator[](
patchi);
#define forAll(list, i)
Loop across all elements in list.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void shuffle(const labelUList &newToOld)
Reorders elements. Ordering does not have to be done in.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
bool set(const label) const
Is element set.
friend Ostream & operator(Ostream &, const UPtrList< T > &)
Write UPtrList to Ostream.
lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch.
label findIndex(const word &patchName) const
Find patch index given a name.
fvBoundaryMesh(const fvMesh &)
Construct with zero size.
void readUpdate(const polyBoundaryMesh &)
Update boundary based on new polyBoundaryMesh.
labelList findIndices(const wordRe &, const bool useGroups) const
Find patch indices given a name.
void shuffle(const labelUList &newToOld, const bool validBoundary)
Reorders patches. Ordering does not have to be done in.
Mesh data needed to do the Finite Volume discretisation.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static autoPtr< fvPatch > New(const polyPatch &, const fvBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
A wordRe is a word, but can also have a regular expression for matching words.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const fvPatchList & patches
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
errorManip< error > abort(error &err)
PtrList< fvPatch > fvPatchList
container classes for fvPatch
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.