Go to the documentation of this file.
48 #ifndef cyclicPolyPatch_H
49 #define cyclicPolyPatch_H
73 mutable word neighbPatchName_;
79 mutable label neighbPatchID_;
87 point rotationCentre_;
127 void getCentresAndAnchors
208 const word& patchType,
234 const word& patchType
248 const label newStart,
321 virtual bool owner()
const
334 return refCast<const cyclicPolyPatch>(pp);
363 return neighbStart+
offset;
368 <<
"Face " << facei <<
" not in patch " <<
name()
377 return rotationAxis_;
383 return rotationCentre_;
389 return separationVector_;
Encapsulates using "patchGroups" to specify coupled patch.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
A class for handling words, derived from Foam::string.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
Neighbour processor patch.
label transformGlobalFace(const label facei) const
const vector & rotationAxis() const
Axis of rotation for rotational cyclics.
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
const cyclicPolyPatch & neighbPatch() const
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
label offset() const
The offset where this patch starts in the boundary face list.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
const point & rotationCentre() const
Point on axis of rotation for rotational cyclics.
const edgeList & coupledPoints() const
Return connected points (from patch local to neighbour patch local)
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
A patch is a list of labels that address the faces in the global face list.
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
const edgeList & coupledEdges() const
Return connected edges (from patch local to neighbour patch local).
virtual bool owner() const
Does this side own the patch ?
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void transformPosition(pointField &l) const
Transform a patch-based position from other side to this side.
TypeName("cyclic")
Runtime type information.
virtual ~cyclicPolyPatch()
Destructor.
label start() const
Return start label of this patch in the polyMesh face list.
virtual transformType transform() const
Type of transform.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const vectorField::subField faceCentres() const
Return face centres.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void calcTransforms()
Recalculate the transformation tensors.
virtual bool neighbour() const
Does the coupled side own the patch ?
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & name() const
The patch name.
virtual label neighbPatchID() const
Neighbour patchID.
const word & neighbPatchName() const
Neighbour patch name.
label index() const
The index of this patch in the boundaryMesh.
const vector & separationVector() const
Translation vector for translational cyclics.
A list of faces which address into the list of points.
cyclicPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType, const transformType transform=UNKNOWN)
Construct from components.