Go to the documentation of this file.
46 patchGroupIDs_(this->size())
54 const word& patchName = items[i].patchName();
60 <<
"Cannot find any patch names matching " << patchName
64 patchGroupIDs_[i].transfer(patchIDs);
75 && !isA<emptyPolyPatch>(pp)
76 && applyToPatch(pp.
index()) < 0
83 if (badPatches.size() > 0)
86 <<
"All patches must be specified when employing local patch "
87 <<
"interaction. Please specify data for patches:" <<
nl
107 forAll(patchGroupIDs_, groupI)
109 const labelList& patchIDs = patchGroupIDs_[groupI];
112 if (patchIDs[patchI] ==
id)
Helper class for the LocalInteraction patch interaction model.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
List container for patchInteractionData class.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label applyToPatch(const label id) const
Return label of group containing patch id.
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A patch is a list of labels that address the faces in the global face list.
A list of keyword definitions, which are a keyword followed by any number of values (e....
#define forAllReverse(list, i)
Reverse loop across all elements in list.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
labelListList patchGroupIDs_
List of patch IDs for each patch group.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
patchInteractionDataList()
Construct null.
Operations on lists of strings.
const word & name() const
Return name.
#define WarningInFunction
Report a warning using Foam::Warning.
label index() const
Return the index of this patch in the boundaryMesh.
A list of faces which address into the list of points.