37 #ifndef processorCyclicPolyPatch_H 38 #define processorCyclicPolyPatch_H 59 const word referPatchName_;
65 mutable label referPatchID_;
81 const int neighbProcNo,
82 const word& referPatchName,
83 const word& patchType = typeName
140 const int neighbProcNo,
141 const word& referPatchName,
142 const word& patchType = typeName
152 const word& patchType
245 return referPatchName_;
252 const word& cyclicPolyPatchName,
253 const label myProcNo,
254 const label neighbProcNo
261 const word& cyclicPolyPatchName,
268 if (referPatchID_ == -1)
274 if (referPatchID_ == -1)
277 <<
"Illegal referPatch name " << referPatchName_
278 <<
endl <<
"Valid patch names are " 283 return referPatchID_;
290 return refCast<const cyclicPolyPatch>(pp);
294 virtual int tag()
const;
297 virtual bool owner()
const
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
label referPatchID() const
Return the 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.
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.
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.
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 void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
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.
const cyclicPolyPatch & referPatch() const
Return a reference to the referring patch.
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).
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.
autoPtr< PrimitivePatch< FaceList, PointField > > clone() const
Construct and return a clone.
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.