Go to the documentation of this file.
37 #ifndef processorCyclicPolyPatch_H
38 #define processorCyclicPolyPatch_H
126 const word& patchType = typeName
136 const word& patchType
165 const label newStart,
216 const label newStart,
282 <<
endl <<
"Valid patch names are "
293 return refCast<const coupledPolyPatch>(pp);
297 virtual int tag()
const;
300 virtual bool owner()
const
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
virtual int tag() const
Return message tag to use for communication.
virtual const vectorField & separation() const
If the planes are separated the separation vector.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
label findPatchID(const word &patchName) const
Find patch index given a name.
A class for handling words, derived from string.
Neighbour processor patch.
label referPatchID_
Index of originating patch.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
virtual const tensorField & forwardT() const
Return face transformation tensor.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
const word referPatchName_
Name of originating patch.
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
int neighbProcNo() const
Return neigbour processor number.
processorCyclicPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const int myProcNo, const int neighbProcNo, const word &referPatchName, const transformType transform=UNKNOWN, const word &patchType=typeName)
Construct from components.
virtual const boolList & collocated() const
Are faces collocated. Either size 0,1 or length of patch.
virtual const vectorField & separation() const
If the planes are separated the separation vector.
Ostream & endl(Ostream &os)
Add newline and flush stream.
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
virtual void transformPosition(point &l, const label facei) const
Transform a patch-based position from other side to this side.
virtual bool owner() const =0
Does this side own the patch ?
wordList names() const
Return a list of patch names.
void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
virtual bool parallel() const
Are the cyclic planes parallel.
void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual bool separated() const
Are the planes separated.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
A patch is a list of labels that address the faces in the global face list.
label referPatchID() const
Referring patchID.
Neighbour processor patch.
const coupledPolyPatch & referPatch() const
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual bool owner() const
Does this side own the patch ?
label start() const
Return start label of this patch in the polyMesh face list.
virtual transformType transform() const
Type of transform.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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 transformType transform() const
Type of transform.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool separated() const
Are the planes separated.
const word & referPatchName() const
virtual void transformPosition(pointField &) const =0
Transform a patch-based position from other side to this side.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
int tag_
Message tag to use for communication.
void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
virtual void transformPosition(pointField &l) const
Transform a patch-based position from other side to this side.
virtual ~processorCyclicPolyPatch()
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
virtual const tensorField & forwardT() const
Return face transformation tensor.
virtual bool parallel() const
Are the cyclic planes parallel.
int myProcNo() const
Return processor number.
virtual const boolList & collocated() const
Are faces collocated. Either size 0,1 or length of patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & name() const
Return name.
void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
label index() const
Return the index of this patch in the boundaryMesh.
TypeName("processorCyclic")
Runtime type information.
A list of faces which address into the list of points.