42#ifndef processorPolyPatch_H
43#define processorPolyPatch_H
100 const word& patchType = typeName
159 const word& patchType = typeName
169 const word& patchType
270 return neighbProcNo_;
274 virtual bool owner()
const
276 return (myProcNo_ < neighbProcNo_);
296 return neighbFaceCentres_;
302 return neighbFaceAreas_;
308 return neighbFaceCellCentres_;
318 virtual int tag()
const
324 virtual label
comm()
const
347 const face& localFace,
349 const face& masterFace,
351 const bool sameOrientation,
352 const scalar absTolSqr,
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of faces which address into the list of points.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
static int & msgType() noexcept
Message tag of standard messages.
static bool & parRun() noexcept
Test if this a parallel run.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
const bMesh & mesh() const
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
virtual transformType transform() const
Type of transform.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A face is a list of labels corresponding to mesh vertices.
label index() const noexcept
The index of this patch in the boundaryMesh.
const word & name() const noexcept
The patch name.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
label start() const
Return start label of this patch in the polyMesh face list.
Neighbour processor patch.
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
int myProcNo() const
Return processor number.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
virtual bool owner() const
Does the processor own the patch ?
virtual bool coupled() const
Return true only if this is a parallel run.
int neighbProcNo() const
Return neighbour processor number.
virtual ~processorPolyPatch()
Destructor.
void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
const labelList & neighbPoints() const
Return neighbour point labels. WIP.
const vectorField & neighbFaceCellCentres() const
Return processor-neighbour patch neighbour cell centres.
void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
const vectorField & neighbFaceCentres() const
Return processor-neighbour patch face centres.
static word newName(const label myProcNo, const label neighbProcNo)
Return the name of a processorPolyPatch.
virtual label comm() const
Return communicator used for communication.
const labelList & neighbEdges() const
Return neighbour edge labels. WIP.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
bool neighbour() const
Is the processor the patch neighbour ?
static label matchFace(const face &localFace, const pointField &localPts, const face &masterFace, const pointField &masterPts, const bool sameOrientation, const scalar absTolSqr, scalar &matchDistSqr)
Returns rotation.
virtual void transformPosition(pointField &l) const
Transform a patch-based position from other side to this side.
const vectorField & neighbFaceAreas() const
Return processor-neighbour patch face areas.
virtual int tag() const
Return message tag to use for communication.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
virtual void transformPosition(point &, const label facei) const
Transform a patch-based position from other side to this side.
TypeName("processor")
Runtime type information.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Forwards for various types of face lists.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
UList< label > labelUList
A UList of labels.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.