50 const int neighbProcNo,
51 const word& referPatchName,
66 referPatchName_(referPatchName),
79 const int neighbProcNo,
80 const word& referPatchName,
86 newName(referPatchName, myProcNo, neighbProcNo),
95 referPatchName_(referPatchName),
107 const word& patchType
111 referPatchName_(dict.
lookup(
"referPatch")),
140 referPatchName_(pp.referPatchName_),
172 const word& cyclicPolyPatchName,
173 const label myProcNo,
174 const label neighbProcNo
180 + cyclicPolyPatchName;
186 const word& cyclicPolyPatchName,
192 wordRe(
string(
"procBoundary.*to.*through" + cyclicPolyPatchName))
204 refCast<const cyclicPolyPatch>(referPatch());
218 <<
"Tag calculated from cyclic patch name " << tag_
219 <<
" is the same as the current message type " 221 <<
"Please set a non-conflicting, unique, tag by hand" 222 <<
" using the 'tag' entry" 228 Pout<<
"processorCyclicPolyPatch " <<
name() <<
" uses tag " << tag_
257 initCalcGeometry(pBufs);
309 writeEntry(os,
"referPatch", referPatchName_);
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Neighbour processor patch.
void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
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.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
static word newName(const label myProcNo, const label neighbProcNo)
Return the name of a processorPolyPatch.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
static int & msgType()
Message tag of standard messages.
void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
const cyclicPolyPatch & nbrPatch() const
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
Macros for easy insertion into run-time selection tables.
Neighbour processor patch.
A list of faces which address into the list of points.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
A class for handling words, derived from string.
A wordRe is a word, but can also have a regular expression for matching words.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual ~processorCyclicPolyPatch()
An Ostream is an abstract base class for all output systems (streams, files, token lists...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
Buffers for inter-processor communications streams (UOPstream, UIPstream).
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
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, const word &patchType=typeName)
Construct from components with specified name.
void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
prefixOSstream Pout(cout, "Pout")
static labelList patchIDs(const word &cyclicPolyPatchName, const polyBoundaryMesh &bm)
Return the indices of a processorCyclicPolyPatchs.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
const word & referPatchName() const
Return name of originating cyclicPolyPatch patch.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
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 calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
static word newName(const word &cyclicPolyPatchName, const label myProcNo, const label neighbProcNo)
Return the name of a processorCyclicPolyPatch.
labelList findIndices(const wordRe &, const bool usePatchGroups=true) const
Return patch indices for all matches. Optionally matches patchGroups.
virtual bool owner() const
Does the processor own the patch ?
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.