37 #ifndef processorCyclicPolyPatch_H 38 #define processorCyclicPolyPatch_H 59 const word referPatchName_;
65 mutable label referPatchID_;
123 const int neighbProcNo,
124 const word& referPatchName,
125 const word& patchType = typeName
135 const word& patchType
164 const label newStart,
165 const word& referPatchName
215 const label newStart,
216 const word& referPatchName
266 return referPatchName_;
273 const word& cyclicPolyPatchName,
274 const label myProcNo,
275 const label neighbProcNo
282 const word& cyclicPolyPatchName,
289 if (referPatchID_ == -1)
295 if (referPatchID_ == -1)
298 <<
"Illegal referPatch name " << referPatchName_
299 <<
endl <<
"Valid patch names are " 304 return referPatchID_;
310 return refCast<const cyclicPolyPatch>(pp);
314 virtual int tag()
const;
317 virtual bool owner()
const
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
label referPatchID() const
Referring patchID.
Neighbour processor patch.
virtual bool owner() const
Does this side own the patch ?
void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
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)
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.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label findPatchID(const word &patchName) const
Find patch index given a name.
void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
virtual const transformer & transform() const
Return transformation between the coupled patches.
virtual autoPtr< PrimitivePatch< FaceList, PointField > > clone() const
Construct and return a clone.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
Neighbour processor patch.
A list of faces which address into the list of points.
virtual bool owner() const
Does this side own the patch ?
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
A class for handling words, derived from string.
wordList names() const
Return a list of patch names.
processorCyclicPolyPatch(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.
const cyclicPolyPatch & referPatch() const
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
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...
Buffers for inter-processor communications streams (UOPstream, UIPstream).
void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
TypeName("processorCyclic")
Runtime type information.
static labelList patchIDs(const word &cyclicPolyPatchName, const polyBoundaryMesh &bm)
Return the indices of a processorCyclicPolyPatchs.
const word & referPatchName() const
Return name of originating cyclicPolyPatch patch.
virtual cyclicTransform::transformTypes transformType() const
Type of transform.
virtual const transformer & transform() const
Return transformation between the coupled patches.
virtual int tag() const
Return message tag to use for communication.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A patch is a list of labels that address the faces in the global face list.
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.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.