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);
98 if (patchName.empty())
160 const lduInterface* lduPtr = isA<lduInterface>(
patches[patchi]);
164 list.set(patchi, lduPtr);
177 addPatches(basicBdry);
185 const word& patchName
188 const label patchi = findPatchID(patchName);
193 <<
"Patch named " << patchName <<
" not found." <<
nl 197 return operator[](patchi);
203 const word& patchName
206 const label patchi = findPatchID(patchName);
211 <<
"Patch named " << patchName <<
" not found." <<
nl 215 return operator[](patchi);
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.
label findPatchID(const word &patchName) const
Find patch index given a name.
constexpr char nl
The newline '\n' character (0x0a)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Functions to operate on Pointer Lists.
Smooth ATC in cells next to a set of patches supplied by type.
#define forAll(list, i)
Loop across all elements in list.
labelList indices(const wordRe &matcher, const bool useGroups=true) const
Return (sorted) patch indices for all matches.
void readUpdate(const polyBoundaryMesh &)
Update boundary based on new polyBoundaryMesh.
labelList indices(const wordRe &matcher, const bool useGroups) const
Return (sorted) patch indices for all matches.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A class for handling words, derived from Foam::string.
label size() const noexcept
The number of entries in the list.
UPtrList< const lduInterface > lduInterfacePtrsList
Store lists of lduInterface as a UPtrList.
A List of wordRe with additional matching capabilities.
friend Ostream & operator(Ostream &os, const UPtrList< T > &list)
Write UPtrList to Ostream.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
errorManip< error > abort(error &err)
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
UPtrList< const labelUList > faceCells() const
Return a list of faceCells for each patch.
lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch with only those pointing to interfaces being set...
void setSize(const label newLen)
Same as resize()
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Mesh data needed to do the Finite Volume discretisation.
const polyBoundaryMesh & patches
void movePoints()
Correct patches after moving points.
static autoPtr< fvPatch > New(const polyPatch &, const fvBoundaryMesh &)
Return a pointer to a new patch created on freestore from polyPatch.
PtrList< fvPatch > fvPatchList
Store lists of fvPatch as a PtrList.