35void Foam::fvBoundaryMesh::addPatches(
const polyBoundaryMesh&
pbm)
109 if (patchName.empty())
122 if (!patchName.empty())
153 UPtrList<const labelUList> list(
patches.size());
176 list.set(patchi, lduPtr);
196 const word& patchName
199 const label patchi = findPatchID(patchName);
204 <<
"Patch named " << patchName <<
" not found." <<
nl
208 return operator[](patchi);
214 const word& patchName
217 const label patchi = findPatchID(patchName);
222 <<
"Patch named " << patchName <<
" not found." <<
nl
226 return operator[](patchi);
Functions to operate on Pointer Lists.
const polyBoundaryMesh & pbm
void resize_null(const label newLen)
Set the addressed list to the given size, deleting all existing entries. Afterwards the list contains...
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
const T * set(const label i) const
Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie,...
const fvPatch & operator[](const word &patchName) const
Return const reference to fvPatch by name.
lduInterfacePtrsList interfaces() const
Return a list of pointers for each patch with only those pointing to interfaces being set.
UPtrList< const labelUList > faceCells() const
Return a list of faceCells for each patch.
friend class fvMesh
Declare friendship with fvMesh.
void movePoints()
Correct patches after moving points.
void readUpdate(const polyBoundaryMesh &)
Update boundary based on new polyBoundaryMesh.
labelList indices(const wordRe &matcher, const bool useGroups) const
The (sorted) patch indices for all matches, optionally matching patch groups.
const fvPatch * cfindPatch(const word &patchName) const
Find patch by name and return const pointer.
label findPatchID(const word &patchName) const
Find patch index given a name.
fvBoundaryMesh(const fvBoundaryMesh &)=delete
No copy construct.
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.
An abstract base class for implicitly-coupled interfaces e.g. processor and cyclic patches.
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh,...
labelList indices(const wordRe &matcher, const bool useGroups=true) const
The (sorted) patch indices for all matches, optionally matching patch groups.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
const polyBoundaryMesh & patches
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label firstMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Find first list item with 'name()' that matches, -1 on failure.
PtrList< fvPatch > fvPatchList
Store lists of fvPatch as a PtrList.
List< label > labelList
A List of labels.
UPtrList< const lduInterface > lduInterfacePtrsList
Store lists of lduInterface as a UPtrList.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.