Determines a mapping between patch face centres and mesh cell or face centres and processors they're on. More...
#include <meshTools/directMappedPatchBase.H>
Determines a mapping between patch face centres and mesh cell or face centres and processors they're on.
Definition at line 60 of file directMappedPatchBase.H.
Classes | |
class | nearestEqOp |
Public Types | |
enum | sampleMode { NEARESTCELL, NEARESTPATCHFACE, NEARESTFACE } |
Mesh items to sample. More... | |
typedef Tuple2< pointIndexHit, Tuple2< scalar, label > > | nearInfo |
Helper class for finding nearest. |
Public Member Functions | |
TypeName ("directMappedPatchBase") | |
Runtime type information. | |
directMappedPatchBase (const polyPatch &) | |
Construct from patch. | |
directMappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vectorField &offset) | |
Construct from components. | |
directMappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vector &offset) | |
Construct from components. | |
directMappedPatchBase (const polyPatch &, const dictionary &) | |
Construct from dictionary. | |
directMappedPatchBase (const polyPatch &, const directMappedPatchBase &) | |
Construct as copy, resetting patch. | |
virtual | ~directMappedPatchBase () |
Destructor. | |
void | clearOut () |
const sampleMode & | mode () const |
What to sample. | |
const word & | sampleRegion () const |
Region to sample. | |
const word & | samplePatch () const |
Patch (only if NEARESTPATCHFACE) | |
const vectorField & | offsets () const |
Offset vector (from patch faces to destination mesh objects) | |
const mapDistribute & | map () const |
Return reference to the parallel distribution map. | |
bool | sameRegion () const |
Cached sampleRegion != mesh.name() | |
const polyMesh & | sampleMesh () const |
Get the region mesh. | |
const polyPatch & | samplePolyPatch () const |
Get the patch on the region. | |
virtual void | write (Ostream &) const |
Write as a dictionary. |
typedef Tuple2<pointIndexHit, Tuple2<scalar, label> > nearInfo |
Helper class for finding nearest.
sqr(distance)
Definition at line 78 of file directMappedPatchBase.H.
enum sampleMode |
Mesh items to sample.
Definition at line 66 of file directMappedPatchBase.H.
directMappedPatchBase | ( | const polyPatch & | pp | ) |
Construct from patch.
Definition at line 562 of file directMappedPatchBase.C.
directMappedPatchBase | ( | const polyPatch & | pp, |
const word & | sampleRegion, | ||
const sampleMode | sampleMode, | ||
const word & | samplePatch, | ||
const vectorField & | offset | ||
) |
Construct from components.
Definition at line 579 of file directMappedPatchBase.C.
directMappedPatchBase | ( | const polyPatch & | pp, |
const word & | sampleRegion, | ||
const sampleMode | sampleMode, | ||
const word & | samplePatch, | ||
const vector & | offset | ||
) |
Construct from components.
Definition at line 599 of file directMappedPatchBase.C.
directMappedPatchBase | ( | const polyPatch & | pp, |
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 620 of file directMappedPatchBase.C.
directMappedPatchBase | ( | const polyPatch & | pp, |
const directMappedPatchBase & | dmp | ||
) |
Construct as copy, resetting patch.
Definition at line 655 of file directMappedPatchBase.C.
|
virtual |
Destructor.
Definition at line 674 of file directMappedPatchBase.C.
TypeName | ( | "directMappedPatchBase" | ) |
Runtime type information.
void clearOut | ( | ) |
Definition at line 680 of file directMappedPatchBase.C.
Referenced by directMappedPolyPatch::calcGeometry(), directMappedWallPolyPatch::calcGeometry(), directMappedWallPolyPatch::initGeometry(), directMappedPolyPatch::initGeometry(), directMappedPolyPatch::initMovePoints(), directMappedWallPolyPatch::initMovePoints(), directMappedWallPolyPatch::initUpdateMesh(), directMappedPolyPatch::initUpdateMesh(), directMappedPolyPatch::movePoints(), directMappedWallPolyPatch::movePoints(), directMappedPolyPatch::updateMesh(), directMappedWallPolyPatch::updateMesh(), directMappedPolyPatch::~directMappedPolyPatch(), and directMappedWallPolyPatch::~directMappedWallPolyPatch().
|
inline |
What to sample.
Definition at line 212 of file directMappedPatchBase.H.
Referenced by directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), and directMappedFixedValueFvPatchField< Type >::updateCoeffs().
|
inline |
Region to sample.
Definition at line 218 of file directMappedPatchBase.H.
Referenced by directMappedFixedValueFvPatchField< Type >::updateCoeffs().
|
inline |
Patch (only if NEARESTPATCHFACE)
Definition at line 224 of file directMappedPatchBase.H.
Referenced by directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), and directMappedFixedValueFvPatchField< Type >::updateCoeffs().
|
inline |
Offset vector (from patch faces to destination mesh objects)
Definition at line 230 of file directMappedPatchBase.H.
|
inline |
Return reference to the parallel distribution map.
Definition at line 236 of file directMappedPatchBase.H.
References autoPtr< T >::empty().
Referenced by directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), directMappedFixedValueFvPatchField< Type >::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs().
|
inline |
Cached sampleRegion != mesh.name()
Definition at line 246 of file directMappedPatchBase.H.
Referenced by directMappedFixedValueFvPatchField< Type >::updateCoeffs().
const Foam::polyMesh & sampleMesh | ( | ) | const |
Get the region mesh.
Definition at line 688 of file directMappedPatchBase.C.
References polyMesh::boundaryMesh(), objectRegistry::lookupObject(), polyBoundaryMesh::mesh(), and objectRegistry::time().
Referenced by directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), directMappedFixedValueFvPatchField< Type >::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs().
const Foam::polyPatch & samplePolyPatch | ( | ) | const |
Get the patch on the region.
Definition at line 697 of file directMappedPatchBase.C.
References polyMesh::boundaryMesh(), Foam::exit(), Foam::FatalError, FatalErrorIn, polyBoundaryMesh::findPatchID(), and polyBoundaryMesh::names().
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs().
|
virtual |
Write as a dictionary.
Reimplemented in directMappedWallPolyPatch, and directMappedPolyPatch.
Definition at line 716 of file directMappedPatchBase.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
Referenced by directMappedPolyPatch::write(), and directMappedWallPolyPatch::write().