42 #ifndef Foam_processorPolyPatch_H 43 #define Foam_processorPolyPatch_H 100 const word& patchType = typeName
159 const word& patchType = typeName
169 const word& patchType
227 virtual autoPtr<polyPatch>
clone 235 return autoPtr<polyPatch>
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,
const labelList & neighbPoints() const
Return neighbour point labels. WIP.
friend class polyBoundaryMesh
A face is a list of labels corresponding to mesh vertices.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label start() const noexcept
Return start label of this patch in the polyMesh face list.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
static word newName(const label myProcNo, const label neighbProcNo)
Return the name of a processorPolyPatch.
void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
static bool & parRun() noexcept
Test if this a parallel run.
const vectorField & neighbFaceCellCentres() const noexcept
Return processor-neighbour patch neighbour cell centres.
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
static int & msgType() noexcept
Message tag of standard messages.
const vectorField & neighbFaceAreas() const noexcept
Return processor-neighbour patch face areas.
const vectorField & neighbFaceCentres() const noexcept
Return processor-neighbour patch face centres.
void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
UList< label > labelUList
A UList of labels.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
Neighbour processor patch.
void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
A list of faces which address into the list of points.
virtual label comm() const
Return communicator used for communication.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundaryMesh reference.
const polyMesh & mesh() const noexcept
Return the mesh reference.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
A class for handling words, derived from Foam::string.
label comm() const noexcept
Return communicator used for parallel communication.
virtual ~processorPolyPatch()
Destructor.
virtual int tag() const
Return message tag to use for communication.
virtual bool coupled() const
Return true only if this is a parallel run.
void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
const word & name() const noexcept
The patch name.
bool neighbour() const
Is the processor the patch neighbour ?
An Ostream is an abstract base class for all output systems (streams, files, token lists...
TypeName("processor")
Runtime type information.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
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.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
int neighbProcNo() const noexcept
Return neighbour processor number.
Forwards for various types of face lists.
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual transformType transform() const
Type of transform.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
label index() const noexcept
The index of this patch in the boundaryMesh.
const labelList & neighbEdges() const
Return neighbour edge labels. WIP.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
int myProcNo() const noexcept
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 with specified name.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
virtual bool owner() const
Does the processor own the patch ?