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