Go to the documentation of this file.
39 #ifndef oldCyclicPolyPatch_H
40 #define oldCyclicPolyPatch_H
187 const word& patchType,
198 const word& patchType
248 virtual bool owner()
const
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
A class for handling words, derived from string.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
vector rotationAxis_
Axis of rotation for rotational cyclics.
bool matchAnchors(const bool report, const primitivePatch &, const labelList &, const pointField &, const labelList &, const faceList &, const labelList &, const scalarField &, labelList &faceMap, labelList &rotation) const
Given matched faces matches the anchor point. Sets faceMap,.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
TypeName("oldCyclic")
Runtime type information.
virtual void transformPosition(point &, const label facei) const
Transform a patch-based position from other side to this side.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
virtual ~oldCyclicPolyPatch()
bool getGeometricHalves(const primitivePatch &, labelList &, labelList &) const
Find the two parts of the faces of pp using feature edges.
void getCentresAndAnchors(const primitivePatch &, const faceList &half0Faces, const faceList &half1Faces, pointField &ppPoints, pointField &half0Ctrs, pointField &half1Ctrs, pointField &anchors0, scalarField &tols) const
Calculate geometric factors of the two halves.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
point rotationCentre_
Point on 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.
virtual void transformPosition(pointField &l) const
Transform a patch-based position from other side to this side.
vector separationVector_
Translation vector.
scalar featureCos_
Morph:angle between normals of neighbouring faces.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
label start() const
Return start label of this patch in the polyMesh face list.
virtual transformType transform() const
Type of transform.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
'old' style cyclic polyPatch with all faces in single patch. Does ordering but cannot be used to run....
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
const vectorField::subField faceCentres() const
Return face centres.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void calcFaceCentres() const
Calculate face centres.
static pointField getAnchorPoints(const UList< face > &, const pointField &)
Get f[0] for all faces.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static label findMaxArea(const pointField &, const faceList &)
Find amongst selected faces the one with the largest area.
const word & name() const
Return name.
label index() const
Return the index of this patch in the boundaryMesh.
label getConsistentRotationFace(const pointField &faceCentres) const
For rotational cases, try to find a unique face on each side.
virtual bool owner() const
Does this side own the patch ?
A list of faces which address into the list of points.
oldCyclicPolyPatch(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.