48 patchGroupIDs_(this->size())
54 const wordRe& patchName = items[i].patchName();
60 <<
"Cannot find any patch names matching "
68 DynamicList<word> badPatches;
69 for (
const polyPatch&
pp :
bMesh)
78 badPatches.append(
pp.name());
82 if (!badPatches.empty())
85 <<
"All patches must be specified when employing local patch "
86 <<
"interaction. Please specify data for patches:" <<
nl
95 const patchInteractionDataList& pidl
99 patchGroupIDs_(pidl.patchGroupIDs_)
107 forAll(patchGroupIDs_, groupi)
109 if (patchGroupIDs_[groupi].
found(
id))
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
bool empty() const noexcept
True if List is empty (ie, size() is zero).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label applyToPatch(const label id) const
Return label of group containing patch id.
patchInteractionDataList()
Construct null.
Helper class for the LocalInteraction patch interaction model.
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh,...
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
Lookup type of boundary radiation properties.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
PrimitivePatch< List< face >, const pointField > bMesh
Holder of faceList and points. (v.s. e.g. primitivePatch which references points).
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.
#define forAllReverse(list, i)
Reverse loop across all elements in list.