37 #ifndef regionCoupledBase_H 38 #define regionCoupledBase_H 60 const word nbrPatchName_;
63 mutable label nbrPatchID_;
66 const word nbrRegionName_;
69 const bool sameRegion_;
75 const bool AMIReverse_;
87 void resetAMI()
const;
127 return nbrPatchName_;
133 return nbrRegionName_;
172 template<
class Type,
class BinaryOp>
Base class with common functionality for regionCoupled polyPatch. It includes AMI.
label nbrPatchID() const
Neighbour patch ID.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const regionCoupledBase & nbrPatch() const
Return a reference to the neighbour patch.
virtual void clearGeom()
Clear geometry.
const AMIInterpolation & AMI() const
Return a reference to the AMI interpolator.
bool owner() const
Does this side own the patch?
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A list of faces which address into the list of points.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
virtual const word & regionCoupleType() const =0
Return the type.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
TypeName("regionCoupledBase")
Runtime type information.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual ~regionCoupledBase()
Destructor.
tmp< Field< Type > > interpolate(const Field< Type > &fld) const
Interpolate field.
bool sameRegion() const
Cached sampleRegion != mesh.name()
regionCoupledBase(const polyPatch &)
Construct from patch.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
const word & nbrRegionName() const
Neighbour region name.
const word & nbrPatchName() const
Neighbour patch name.
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
const autoPtr< searchableSurface > & surfPtr() const
Return a reference to the projection surface.