39 #ifndef processorPolyPatch_H
40 #define processorPolyPatch_H
96 const word& patchType = typeName
138 const word& patchType = typeName
148 const word& patchType
223 return neighbProcNo_;
227 virtual bool owner()
const
229 return (myProcNo_ < neighbProcNo_);
249 return neighbFaceCentres_;
255 return neighbFaceAreas_;
261 return neighbFaceCellCentres_;
271 virtual int tag()
const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< PrimitivePatch< SubList< face >, const pointField & > > clone() const
Construct and return a clone.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
label size() const
Return the number of elements in the UList.
static bool & parRun()
Is this a parallel run?
static int & msgType()
Message tag of standard messages.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
A list of keyword definitions, which are a keyword followed by any number of values (e....
label index() const
Return the index of this patch in the boundaryMesh.
const word & name() const
Return name.
const polyMesh & mesh() const
Return the mesh reference.
label comm() const
Return communicator used for parallel communication.
label start() const
Return start label of this patch in the polyMesh face list.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
Neighbour processor patch.
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 word &patchType=typeName)
Construct from components with specified name.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
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.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise ordering for primitivePatch. Does not.
void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
virtual const transformer & transform() const
Return null transform between processor patches.
const vectorField & neighbFaceCentres() const
Return processor-neighbour patch face centres.
const labelList & nbrPoints() const
Return neighbour point labels. WIP.
const labelList & nbrEdges() const
Return neighbour edge labels. WIP.
static word newName(const label myProcNo, const label neighbProcNo)
Return the name of a processorPolyPatch.
virtual label comm() const
Return communicator used for communication.
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 ?
virtual int tag() const
Return message tag to use for communication.
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.
TypeName("processor")
Runtime type information.
const vectorField & neighbFaceAreas() const
Return processor-neighbour patch face areas.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
const vectorField & neighbFaceCellCentres() const
Return processor-neighbour patch neighbour cell centres.
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.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)