Go to the documentation of this file.
52 const int neighbProcNo,
53 const word& referPatchName,
60 newName(referPatchName, myProcNo, neighbProcNo),
70 referPatchName_(referPatchName),
87 tag_(
dict.getOrDefault<int>(
"tag", -1)),
99 referPatchName_(pp.referPatchName()),
115 referPatchName_(pp.referPatchName_),
127 const label newStart,
128 const word& referPatchName
132 referPatchName_(referPatchName),
148 referPatchName_(pp.referPatchName()),
164 const word& cyclicPolyPatchName,
165 const label myProcNo,
166 const label neighbProcNo
172 + cyclicPolyPatchName;
178 const word& cyclicPolyPatchName,
186 "procBoundary.*to.*through" + cyclicPolyPatchName,
216 <<
"Tag calculated from cyclic patch name " << tag_
217 <<
" is the same as the current message type "
219 <<
"Please set a non-conflicting, unique, tag by hand"
220 <<
" using the 'tag' entry"
225 Pout<<
"processorCyclicPolyPatch " <<
name() <<
" uses tag " << tag_
265 neighbFaceCellCentres()
268 if (isA<cyclicPolyPatch>(pp))
276 neighbFaceCellCentres(),
288 PstreamBuffers& pBufs,
348 UIPstream fromNeighbour(neighbProcNo(), pBufs);
349 fromNeighbour >> masterPts >> masterFaces;
354 const cyclicPolyPatch& cycPatch =
355 refCast<const cyclicPolyPatch>(referPatch());
360 cycPatch.neighbPatch().initOrder(pBufs, masterPtr());
362 return cycPatch.order(pBufs, pp,
faceMap, rotation);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
vectorField pointField
pointField is a vectorField.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from Foam::string.
Output inter-processor communications stream operating on external buffer.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
Neighbour processor patch.
const cyclicPolyPatch & neighbPatch() const
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
A List obtained as a section of another List.
virtual void initUpdateMesh(PstreamBuffers &)
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Buffers for inter-processor communications streams (UOPstream, UIPstream).
@ REGEX
Regular expression.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Ostream & endl(Ostream &os)
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
dimensionSet transform(const dimensionSet &ds)
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
void calcGeometry(PstreamBuffers &)
void initMovePoints(PstreamBuffers &, const pointField &)
void movePoints(PstreamBuffers &, const pointField &)
processorCyclicPolyPatch(const label size, const label start, const label index, const polyBoundaryMesh &bm, const int myProcNo, const int neighbProcNo, const word &referPatchName, const transformType transform=UNKNOWN, const word &patchType=typeName)
Generic templated field type.
A patch is a list of labels that address the faces in the global face list.
void initGeometry(PstreamBuffers &)
Neighbour processor patch.
Lookup type of boundary radiation properties.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
const List< face_type > & localFaces() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
const Field< point_type > & localPoints() const
virtual void initUpdateMesh(PstreamBuffers &)
virtual void write(Ostream &) const
void reset(autoPtr< T > &&other) noexcept
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static labelList patchIDs(const word &cyclicPolyPatchName, const polyBoundaryMesh &bm)
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
#define FatalErrorInFunction
const word & referPatchName() const
virtual void write(Ostream &) const
static int & msgType() noexcept
virtual void updateMesh(PstreamBuffers &)
static bool & parRun() noexcept
labelList indices(const wordRe &matcher, const bool useGroups=true) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static word newName(const label myProcNo, const label neighbProcNo)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void calcGeometry(PstreamBuffers &)
virtual ~processorCyclicPolyPatch()
Ostream & writeEntry(const keyType &key, const T &value)
word name(const expressions::valueTypeCode typeCode)
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field.
const word & name() const noexcept
virtual void updateMesh(PstreamBuffers &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Input inter-processor communications stream operating on external buffer.
virtual void calcGeometry(PstreamBuffers &)=0
defineTypeNameAndDebug(combustionModel, 0)
static word newName(const word &cyclicPolyPatchName, const label myProcNo, const label neighbProcNo)
void initGeometry(PstreamBuffers &)
A list of faces which address into the list of points.