47 patchGroupIDs_(this->
size())
55 const word& patchName = items[i].patchName();
61 <<
"Cannot find any patch names matching " << patchName
65 patchGroupIDs_[i].
transfer(patchIDs);
76 && !isA<emptyPolyPatch>(pp)
84 if (badPatches.
size() > 0)
87 <<
"All patches must be specified when employing local patch " 88 <<
"interaction. Please specify data for patches:" <<
nl 100 patchGroupIDs_(pidl.patchGroupIDs_)
108 forAll(patchGroupIDs_, groupI)
110 const labelList& patchIDs = patchGroupIDs_[groupI];
113 if (patchIDs[
patchi] ==
id)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
Helper class for the LocalInteraction patch interaction model.
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAllReverse(list, i)
Reverse loop across all elements in list.
Operations on lists of strings.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
A class for handling words, derived from string.
patchInteractionDataList()
Construct null.
wordList names() const
Return a list of patch names.
List container for patchInteractionData class.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
label applyToPatch(const label id) const
Return label of group containing patch id.
#define WarningInFunction
Report a warning using Foam::Warning.
const polyBoundaryMesh & bMesh
label index() const
Return the index of this patch in the boundaryMesh.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
label size() const
Return the number of elements in the UList.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.