39 #ifndef processorPolyPatch_H 40 #define processorPolyPatch_H 95 const int neighbProcNo,
96 const word& patchType = typeName
137 const int neighbProcNo,
138 const word& patchType = typeName
148 const word& patchType
256 return neighbProcNo_;
260 virtual bool owner()
const 262 return (myProcNo_ < neighbProcNo_);
275 const label myProcNo,
276 const label neighbProcNo
282 return neighbFaceCentres_;
288 return neighbFaceAreas_;
294 return neighbFaceCellCentres_;
304 virtual int tag()
const const labelList & nbrPoints() const
Return neighbour point labels. WIP.
const labelList & nbrEdges() const
Return neighbour edge labels. WIP.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialise 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.
const vectorField & neighbFaceCentres() const
Return processor-neighbbour patch face centres.
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
static int & msgType()
Message tag of standard messages.
void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
int myProcNo() const
Return processor number.
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)
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.
const vectorField & neighbFaceAreas() const
Return processor-neighbbour patch face areas.
virtual label comm() const
Return communicator used for communication.
A class for handling words, derived from string.
const polyMesh & mesh() const
Return the mesh reference.
virtual ~processorPolyPatch()
Destructor.
virtual int tag() const
Return message tag to use for communication.
label comm() const
Return communicator used for parallel communication.
int neighbProcNo() const
Return neighbour processor number.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual bool coupled() const
Return true only if this is a parallel run.
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.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
autoPtr< PrimitivePatch< FaceList, PointField > > clone() const
Construct and return a clone.
virtual const transformer & transform() const
Return null transform between processor patches.
static bool & parRun()
Is this a parallel run?
const vectorField & neighbFaceCellCentres() const
Return processor-neighbbour patch neighbour cell centres.
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual bool owner() const
Does the processor own the patch ?
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.