50 const int neighbProcNo,
51 const word& referPatchName
64 referPatchName_(referPatchName),
77 const int neighbProcNo,
78 const word& referPatchName
83 newName(referPatchName, myProcNo, neighbProcNo),
91 referPatchName_(referPatchName),
107 tag_(
dict.lookupOrDefault<int>(
"tag", -1)),
119 referPatchName_(pp.referPatchName()),
135 referPatchName_(pp.referPatchName_),
151 const word& cyclicPolyPatchName,
152 const label myProcNo,
153 const label neighbProcNo
159 + cyclicPolyPatchName;
165 const word& cyclicPolyPatchName,
171 wordRe(
string(
"procBoundary.*to.*through" + cyclicPolyPatchName))
183 refCast<const cyclicPolyPatch>(referPatch());
197 <<
"Tag calculated from cyclic patch name " << tag_
198 <<
" is the same as the current message type "
200 <<
"Please set a non-conflicting, unique, tag by hand"
201 <<
" using the 'tag' entry"
207 Pout<<
"processorCyclicPolyPatch " <<
name() <<
" uses tag " << tag_
236 initCalcGeometry(pBufs);
258 referPatchIndex_ = -1;
288 writeEntry(os,
"referPatch", referPatchName_);
Macros for easy insertion into run-time selection tables.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Buffers for inter-processor communications streams (UOPstream, UIPstream).
static int & msgType()
Message tag of standard messages.
const cyclicPolyPatch & nbrPatch() const
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return name.
labelList findIndices(const wordRe &, const bool usePatchGroups=true) const
Return patch indices for all matches. Optionally matches patchGroups.
A patch is a list of labels that address the faces in the global face list.
Neighbour processor patch.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
static word newName(const word &cyclicPolyPatchName, const label myProcNo, const label neighbProcNo)
Return the name of a processorCyclicPolyPatch.
static labelList patchIDs(const word &cyclicPolyPatchName, const polyBoundaryMesh &bm)
Return the indices of a processorCyclicPolyPatchs.
processorCyclicPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const int myProcNo, const int neighbProcNo, const word &referPatchName)
Construct from components with specified name.
virtual ~processorCyclicPolyPatch()
void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
virtual int tag() const
Return message tag to use for communication.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
Neighbour processor patch.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual bool owner() const
Does the processor own the patch ?
void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
static word newName(const label myProcNo, const label neighbProcNo)
Return the name of a processorPolyPatch.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
A wordRe is a word, but can also have a regular expression for matching words.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
prefixOSstream Pout(cout, "Pout")
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)