35 void Foam::fvBoundaryMesh::addPatches(
const polyBoundaryMesh&
pbm)
109 if (patchName.empty())
157 const lduInterface* lduPtr = isA<lduInterface>(
patches[patchi]);
161 list.set(patchi, lduPtr);
181 const word& patchName
184 const label patchi = findPatchID(patchName);
189 <<
"Patch named " << patchName <<
" not found." <<
nl 193 return operator[](patchi);
199 const word& patchName
202 const label patchi = findPatchID(patchName);
207 <<
"Patch named " << patchName <<
" not found." <<
nl 211 return operator[](patchi);
const polyBoundaryMesh & pbm
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.
List< bool > select(const label n, const labelUList &locations)
Construct a selection list of bools (all false) with the given pre-size, subsequently add specified l...
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.
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...
fvBoundaryMesh(const fvBoundaryMesh &)=delete
No copy construct.
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.
label firstMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Find first list item with 'name()' that matches, -1 on failure.