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)
77 && !isA<cyclicAMIPolyPatch>(pp)
85 if (badPatches.
size() > 0)
88 <<
"All patches must be specified when employing local patch " 89 <<
"interaction. Please specify data for patches:" <<
nl 101 patchGroupIDs_(pidl.patchGroupIDs_)
109 forAll(patchGroupIDs_, groupI)
111 const labelList& patchIDs = patchGroupIDs_[groupI];
114 if (patchIDs[
patchi] ==
id)
#define forAll(list, i)
Loop across all elements in list.
Helper class for the LocalInteraction patch interaction model.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
wordList names() const
Return a list of patch names.
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.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
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.
label applyToPatch(const label id) const
Return label of group containing patch id.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
A list of faces which address into the list of points.
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.
List container for patchInteractionData class.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const word & name() const
Return name.
label size() const
Return the number of elements in the UList.
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
label index() const
Return the index of this patch in the boundaryMesh.
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.