Go to the documentation of this file.
39 #ifndef processorPolyPatch_H
40 #define processorPolyPatch_H
140 const word& patchType = typeName
150 const word& patchType
262 virtual bool owner()
const
298 virtual int tag()
const
323 const face& localFace,
325 const face& masterFace,
327 const bool sameOrientation,
328 const scalar absTolSqr,
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
vectorField neighbFaceAreas_
Processor-neighbour patch face areas.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
static bool & parRun()
Is this a parallel run?
int neighbProcNo() const
Return neigbour processor number.
label comm() const
Return communicator used for parallel communication.
const labelList & neighbEdges() const
Return neighbour edge labels. WIP.
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
vectorField neighbFaceCentres_
Processor-neighbour patch face centres.
vectorField neighbFaceCellCentres_
Processor-neighbour patch neighbour cell centres.
void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
const vectorField & neighbFaceAreas() const
Return processor-neighbour patch face areas.
autoPtr< labelList > neighbPointsPtr_
Corresponding neighbouring local point label for every local point.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
static label matchFace(const face &localFace, const pointField &localPts, const face &masterFace, const pointField &masterPts, const bool sameOrientation, const scalar absTolSqr, scalar &matchDistSqr)
const vectorField & neighbFaceCellCentres() const
Return processor-neighbour patch neighbour cell centres.
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.
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
Neighbour processor patch.
const polyMesh & mesh() const
Return the mesh reference.
virtual bool coupled() const
Return true only if this is a parallel run.
virtual bool owner() const
Does the processor own the patch ?
A list of keyword definitions, which are a keyword followed by any number of values (e....
const vectorField & neighbFaceCentres() const
Return processor-neighbour patch face centres.
label start() const
Return start label of this patch in the polyMesh face list.
virtual transformType transform() const
Type of transform.
void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
virtual int tag() const
Return message tag to use for communication.
processorPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const int myProcNo, const int neighbProcNo, const transformType transform=UNKNOWN, const word &patchType=typeName)
Construct from components.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static int & msgType()
Message tag of standard messages.
const labelList & neighbPoints() const
Return neighbour point labels. WIP.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual label comm() const
Return communicator used for communication.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual void transformPosition(pointField &l) const
Transform a patch-based position from other side to this side.
virtual void transformPosition(point &, const label facei) const
Transform a patch-based position from other side to this side.
A face is a list of labels corresponding to mesh vertices.
int myProcNo() const
Return processor number.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual ~processorPolyPatch()
Destructor.
autoPtr< labelList > neighbEdgesPtr_
Corresponding neighbouring local edge label for every local edge.
const word & name() const
Return name.
label index() const
Return the index of this patch in the boundaryMesh.
bool neighbour() const
Is the processor the patch neighbour ?
TypeName("processor")
Runtime type information.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
A list of faces which address into the list of points.