Go to the documentation of this file.
49 #ifndef cyclicPolyPatch_H
50 #define cyclicPolyPatch_H
74 mutable word neighbPatchName_;
80 mutable label neighbPatchID_;
88 point rotationCentre_;
128 void getCentresAndAnchors
209 const word& patchType,
235 const word& patchType
257 const label newStart,
333 newFaces = this->size();
334 newProcFaces =
neighbPatch().size() - this->size();
373 virtual bool owner()
const
386 return refCast<const cyclicPolyPatch>(pp);
415 return neighbStart+
offset;
420 <<
"Face " << facei <<
" not in patch " <<
name()
429 return rotationAxis_;
435 return rotationCentre_;
441 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 label neighbPolyPatchID() const
Return nbr patchID.
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
const cyclicPolyPatch & neighbPatch() const
virtual refPtr< labelListList > mapCollocatedFaces() const
Return mapped collocated faces.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual bool masterImplicit() const
Return implicit master.
virtual void newInternalProcFaces(label &newFaces, label &newProcFaces) const
Return number of new internal of this polyPatch faces.
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.
#define forAll(list, i)
Loop across all elements in list.
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.
void setSize(const label n)
Alias for resize()
virtual const labelUList & nbrCells() const
Return nbrCells.
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 index() const noexcept
The index of this patch in the boundaryMesh.
const labelUList & faceCells() const
Return face-cell addressing.
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.
List< labelList > labelListList
A List of labelList.
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.
const word & name() const noexcept
The patch name.
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,...
virtual label neighbPatchID() const
Neighbour patchID.
Smooth ATC in cells next to a set of patches supplied by type.
const word & neighbPatchName() const
Neighbour patch name.
const vector & separationVector() const
Translation vector for translational cyclics.
A class for managing references or pointers (no reference counting)
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.