Base class with common functinality for regionCoupled polyPatch. It includes AMI. More...
Public Member Functions | |
TypeName ("regionCoupledBase") | |
Runtime type information. More... | |
regionCoupledBase (const polyPatch &) | |
Construct from patch. More... | |
regionCoupledBase (const polyPatch &, const dictionary &) | |
Construct from dictionary. More... | |
regionCoupledBase (const polyPatch &, const regionCoupledBase &) | |
Construct as copy, resetting patch. More... | |
virtual | ~regionCoupledBase () |
Destructor. More... | |
const word & | nbrPatchName () const |
Neighbour patch name. More... | |
const word & | nbrRegionName () const |
Neighbour region name. More... | |
bool | sameRegion () const |
Cached sampleRegion != mesh.name() More... | |
label | neighbPatchID () const |
Neighbour patch ID. More... | |
bool | owner () const |
Does this side own the patch? More... | |
const regionCoupledBase & | neighbPatch () const |
Return a reference to the neighbour patch. More... | |
const autoPtr< searchableSurface > & | surfPtr () const |
Return a reference to the projection surface. More... | |
const AMIInterpolation & | AMI () const |
Return a reference to the AMI interpolator. More... | |
template<class Type > | |
tmp< Field< Type > > | interpolate (const Field< Type > &fld) const |
Interpolate field. More... | |
template<class Type > | |
tmp< Field< Type > > | interpolate (const tmp< Field< Type >> &tFld) const |
Interpolate tmp field. More... | |
template<class Type , class BinaryOp > | |
void | interpolate (const UList< Type > &fld, const BinaryOp &bop, List< Type > &result) const |
Low-level interpolate List. More... | |
virtual bool | order (PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const |
Return new ordering for primitivePatch. More... | |
virtual const word & | regionCoupleType () const =0 |
Return the type. More... | |
virtual void | write (Ostream &) const |
Write the polyPatch data as a dictionary. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolate (const Field< Type > &fld) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolate (const tmp< Field< Type >> &tFld) const |
Protected Member Functions | |
virtual void | clearGeom () |
Clear geometry. More... | |
Base class with common functinality for regionCoupled polyPatch. It includes AMI.
Definition at line 51 of file regionCoupledBase.H.
regionCoupledBase | ( | const polyPatch & | pp | ) |
Construct from patch.
Definition at line 126 of file regionCoupledBase.C.
Referenced by regionCoupledBase::clearGeom(), and regionCoupledBase::regionCoupledBase().
regionCoupledBase | ( | const polyPatch & | pp, |
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 143 of file regionCoupledBase.C.
References regionCoupledBase::regionCoupledBase().
regionCoupledBase | ( | const polyPatch & | pp, |
const regionCoupledBase & | mpb | ||
) |
Construct as copy, resetting patch.
Definition at line 161 of file regionCoupledBase.C.
|
virtual |
Destructor.
Definition at line 180 of file regionCoupledBase.C.
|
protectedvirtual |
Clear geometry.
Definition at line 116 of file regionCoupledBase.C.
References regionCoupledBase::regionCoupledBase().
Referenced by regionCoupledWallPolyPatch::calcGeometry(), regionCoupledPolyPatch::movePoints(), regionCoupledWallPolyPatch::movePoints(), regionCoupledPolyPatch::updateMesh(), regionCoupledWallPolyPatch::updateMesh(), regionCoupledPolyPatch::~regionCoupledPolyPatch(), and regionCoupledWallPolyPatch::~regionCoupledWallPolyPatch().
TypeName | ( | "regionCoupledBase" | ) |
Runtime type information.
|
inline |
Neighbour patch name.
Definition at line 124 of file regionCoupledBase.H.
Referenced by regionCoupledBase::neighbPatchID().
|
inline |
Neighbour region name.
Definition at line 130 of file regionCoupledBase.H.
Referenced by regionCoupledBaseFvPatch::nbrFvMesh(), and regionCoupledBaseFvPatch::nbrMesh().
|
inline |
Cached sampleRegion != mesh.name()
Definition at line 136 of file regionCoupledBase.H.
References regionCoupledBase::AMI(), Foam::faceMap(), fld(), regionCoupledBase::interpolate(), regionCoupledBase::neighbPatch(), regionCoupledBase::neighbPatchID(), regionCoupledBase::order(), regionCoupledBase::owner(), regionCoupledBase::regionCoupleType(), regionCoupledBase::surfPtr(), and regionCoupledBase::write().
Referenced by regionCoupledBaseFvPatch::sameRegion().
Foam::label neighbPatchID | ( | ) | const |
Neighbour patch ID.
Definition at line 186 of file regionCoupledBase.C.
References polyMesh::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), objectRegistry::lookupObject(), mesh, polyBoundaryMesh::mesh(), polyBoundaryMesh::names(), regionCoupledBase::nbrPatchName(), Foam::nl, objectRegistry::time(), and WarningInFunction.
Referenced by regionCoupledBaseFvPatch::neighbFvPatch(), regionCoupledBaseFvPatch::neighbPatch(), regionCoupledBaseFvPatch::neighbPatchID(), and regionCoupledBase::sameRegion().
bool owner | ( | ) | const |
Does this side own the patch?
Definition at line 237 of file regionCoupledBase.C.
References regionCoupledBase::surfPtr().
Referenced by regionCoupledBaseFvPatch::owner(), and regionCoupledBase::sameRegion().
const Foam::regionCoupledBase & neighbPatch | ( | ) | const |
Return a reference to the neighbour patch.
Definition at line 301 of file regionCoupledBase.C.
References polyMesh::boundaryMesh(), objectRegistry::lookupObject(), mesh, polyBoundaryMesh::mesh(), regionCoupledBase::order(), and objectRegistry::time().
Referenced by regionCoupledBase::sameRegion().
const Foam::autoPtr< Foam::searchableSurface > & surfPtr | ( | ) | const |
Return a reference to the projection surface.
Definition at line 251 of file regionCoupledBase.C.
References polyMesh::boundaryMesh(), TimePaths::constant(), mesh, polyBoundaryMesh::mesh(), IOobject::MUST_READ, searchableSurface::New(), IOobject::NO_WRITE, and objectRegistry::time().
Referenced by regionCoupledBase::owner(), and regionCoupledBase::sameRegion().
const Foam::AMIInterpolation & AMI | ( | ) | const |
Return a reference to the AMI interpolator.
Definition at line 282 of file regionCoupledBase.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by regionCoupledBaseFvPatch::AMI(), and regionCoupledBase::sameRegion().
Interpolate field.
Referenced by regionCoupledBase::interpolate(), and regionCoupledBase::sameRegion().
Low-level interpolate List.
Definition at line 64 of file regionCoupledBaseTemplates.C.
|
virtual |
Return new ordering for primitivePatch.
Ordering is -faceMap: for every face index of the new face -rotation:for every new face the clockwise shift of the original face. Return false if nothing changes (faceMap is identity, rotation is 0), true otherwise.
Definition at line 315 of file regionCoupledBase.C.
References List< T >::setSize().
Referenced by regionCoupledBase::neighbPatch(), and regionCoupledBase::sameRegion().
|
pure virtual |
Return the type.
Implemented in regionCoupledPolyPatch, and regionCoupledWallPolyPatch.
Referenced by regionCoupledBaseFvPatch::regionCoupleType(), and regionCoupledBase::sameRegion().
|
virtual |
Write the polyPatch data as a dictionary.
Reimplemented in regionCoupledPolyPatch, and regionCoupledWallPolyPatch.
Definition at line 332 of file regionCoupledBase.C.
References Foam::writeEntry(), and Ostream::writeKeyword().
Referenced by regionCoupledBase::sameRegion(), regionCoupledWallPolyPatch::write(), and regionCoupledPolyPatch::write().
Foam::tmp<Foam::Field<Type> > interpolate | ( | const Field< Type > & | fld | ) | const |
Definition at line 30 of file regionCoupledBaseTemplates.C.
References regionCoupledBase::interpolate().
Foam::tmp<Foam::Field<Type> > interpolate | ( | const tmp< Field< Type >> & | tFld | ) | const |
Definition at line 47 of file regionCoupledBaseTemplates.C.
References regionCoupledBase::interpolate().