Go to the documentation of this file.
46 #ifndef cyclicPolyPatch_H
47 #define cyclicPolyPatch_H
206 const word& patchType,
232 const word& patchType
246 const label newStart,
319 virtual bool owner()
const
332 return refCast<const cyclicPolyPatch>(pp);
359 if (offset >= 0 && offset < size())
361 return neighbStart+offset;
366 <<
"Face " << facei <<
" not in patch " <<
name()
Encapsulates using patchGroups to specify coupled patch.
static label findMaxArea(const pointField &, const faceList &)
Find amongst selected faces the one with the largest area.
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 string.
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).
vector separationVector_
Translation vector.
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.
edgeList * coupledEdgesPtr_
List of connected edges. e[0] is the edge on the first half of the.
const edgeList & coupledPoints() const
Return connected points (from patch local to neighbour patch local)
vector rotationAxis_
Axis of rotation for rotational cyclics.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
point rotationCentre_
Point on axis of rotation for rotational cyclics.
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.
void getCentresAndAnchors(const primitivePatch &pp0, const primitivePatch &pp1, pointField &half0Ctrs, pointField &half1Ctrs, pointField &anchors0, scalarField &tols) const
const edgeList & coupledEdges() const
Return connected edges (from patch local to neighbour patch local).
virtual bool owner() const
Does this side own the patch ?
edgeList * coupledPointsPtr_
List of edges formed from connected points. e[0] is the point on.
A list of keyword definitions, which are a keyword followed by any number of values (e....
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)
const coupleGroupIdentifier coupleGroup_
Optional patchGroup to find neighbPatch.
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
vector findFaceMaxRadius(const pointField &faceCentres) const
Return normal of face at max distance from rotation axis.
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.
label neighbPatchID_
Index of other half.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
word neighbPatchName_
Name of other half.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual void calcTransforms()
Recalculate the transformation tensors.
autoPtr< primitivePatch > ownerPatchPtr_
Temporary storage of owner side patch during ordering.
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
Return name.
virtual label neighbPatchID() const
Neighbour patchID.
const word & neighbPatchName() const
Neighbour patch name.
label index() const
Return 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.