60 #ifndef cyclicACMIPolyPatch_H 61 #define cyclicACMIPolyPatch_H 89 const word nonOverlapPatchName_;
92 mutable label nonOverlapPatchID_;
126 mutable label prevTimeIndex_;
197 const word& patchType,
199 const word& defaultAMIMethod = faceAreaWeightAMI::typeName
209 const word& patchType,
210 const word& defaultAMIMethod = faceAreaWeightAMI::typeName
228 const label newStart,
229 const word& nbrPatchName,
Cyclic patch for Arbitrarily Coupled Mesh Interface (ACMI).
virtual const cyclicACMIPolyPatch & neighbPatch() const
Return a reference to the neighbour patch.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
virtual bool updateAreas() const
Update the AMI and patch areas. Return true if anything.
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 updateMesh(PstreamBuffers &)
Update of the patch topology.
void setUpToDate(regIOobject &) const
Set object up to date with *this.
virtual const scalarField & tgtMask() const
Return the mask/weighting for the target patch.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
A class for managing references or pointers (no reference counting)
void reportCoverage(const word &name, const scalarField &weightSum) const
Report coverage statics, e.g. number of uncovered/blended/covered faces.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
const polyPatch & nonOverlapPatch() const
Return a const reference to the non-overlapping patch.
virtual void newInternalProcFaces(label &, label &) const
Return number of new internal sub-faces and new proc faces.
A list of faces which address into the list of points.
virtual void movePoints(PstreamBuffers &pBufs, const pointField &)
Correct patches after moving points.
const word & neighbPatchName() const
Neighbour patch name.
virtual const scalarField & srcMask() const
Return the mask/weighting for the source patch.
virtual void scalePatchFaceAreas()
Scale patch face areas to maintain physical area.
A class for handling words, derived from Foam::string.
virtual void initMovePoints(PstreamBuffers &pBufs, const pointField &)
Initialise the patches for moving points.
Cyclic patch for Arbitrary Mesh Interface (AMI)
const Field< point_type > & points() const noexcept
Return reference to global points.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
virtual void clearGeom()
Clear geometry.
const word & nonOverlapPatchName() const
Non-overlapping patch name.
const word & name() const noexcept
The patch name.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
TypeName("cyclicACMI")
Runtime type information.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
bool upToDate(const regIOobject &) const
Return true if given object is up to date with *this.
const scalarField & mask() const
Mask field where 1 = overlap(coupled), 0 = no-overlap.
virtual void resetAMI() const
Reset the AMI interpolator, use current patch points.
cyclicACMIPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType, const transformType transform=UNKNOWN, const word &defaultAMIMethod=faceAreaWeightAMI::typeName)
Construct from (base coupled patch) components.
virtual autoPtr< polyPatch > clone(const polyBoundaryMesh &bm) const
Construct and return a clone, resetting the boundary mesh.
virtual ~cyclicACMIPolyPatch()=default
Destructor.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual transformType transform() const
Type of transform.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual refPtr< labelListList > mapCollocatedFaces() const
Return collocated faces.
label index() const noexcept
The index of this patch in the boundaryMesh.
A patch is a list of labels that address the faces in the global face list.
virtual void initOrder(PstreamBuffers &, const primitivePatch &) const
Initialize ordering for primitivePatch. Does not.
virtual label nonOverlapPatchID() const
Non-overlapping patch ID.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
static scalar tolerance()
Overlap tolerance.