basicFvGeometryScheme Class Reference

Default geometry calculation scheme. Slight stabilisation for bad meshes. More...

Inheritance diagram for basicFvGeometryScheme:
[legend]
Collaboration diagram for basicFvGeometryScheme:
[legend]

Public Member Functions

 TypeName ("basic")
 Runtime type information. More...
 
 basicFvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 Construct from mesh. More...
 
virtual ~basicFvGeometryScheme ()=default
 Destructor. More...
 
virtual void movePoints ()
 Do what is necessary if the mesh has moved. More...
 
virtual tmp< surfaceScalarFieldweights () const
 Return linear difference weighting factors. More...
 
virtual tmp< surfaceScalarFielddeltaCoeffs () const
 Return cell-centre difference coefficients. More...
 
virtual tmp< surfaceScalarFieldnonOrthDeltaCoeffs () const
 Return non-orthogonal cell-centre difference coefficients. More...
 
virtual tmp< surfaceVectorFieldnonOrthCorrectionVectors () const
 Return non-orthogonality correction vectors. More...
 
- Public Member Functions inherited from fvGeometryScheme
 TypeName ("fvGeometryScheme")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (tmp, fvGeometryScheme, dict,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 
 fvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 Construct from mesh. More...
 
virtual ~fvGeometryScheme ()=default
 Destructor. More...
 
const fvMeshmesh () const
 Return mesh reference. More...
 
virtual void movePoints ()
 Update basic geometric properties from provided points. More...
 
virtual void updateMesh (const mapPolyMesh &mpm)
 Update mesh for topology changes. More...
 
virtual tmp< surfaceScalarFieldweights () const =0
 Return linear difference weighting factors. More...
 
virtual tmp< surfaceScalarFielddeltaCoeffs () const =0
 Return cell-centre difference coefficients. More...
 
virtual tmp< surfaceScalarFieldnonOrthDeltaCoeffs () const =0
 Return non-orthogonal cell-centre difference coefficients. More...
 
virtual tmp< surfaceVectorFieldnonOrthCorrectionVectors () const =0
 Return non-orthogonality correction vectors. More...
 
- Public Member Functions inherited from refCount
constexpr refCount () noexcept
 Default construct, initializing count to 0. More...
 
int count () const noexcept
 Return the current reference count. More...
 
bool unique () const noexcept
 Return true if the reference count is zero. More...
 
void operator++ () noexcept
 Increment the reference count. More...
 
void operator++ (int) noexcept
 Increment the reference count. More...
 
void operator-- () noexcept
 Decrement the reference count. More...
 
void operator-- (int) noexcept
 Decrement the reference count. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fvGeometryScheme
static tmp< fvGeometrySchemeNew (const fvMesh &mesh, const dictionary &dict, const word &defaultScheme)
 Return new tmp interpolation scheme. More...
 
- Protected Member Functions inherited from fvGeometryScheme
bool setMeshPhi () const
 Set the mesh motion flux. More...
 
- Protected Attributes inherited from fvGeometryScheme
const fvMeshmesh_
 Hold reference to mesh. More...
 

Detailed Description

Default geometry calculation scheme. Slight stabilisation for bad meshes.

Source files

Definition at line 50 of file basicFvGeometryScheme.H.

Constructor & Destructor Documentation

◆ basicFvGeometryScheme()

basicFvGeometryScheme ( const fvMesh mesh,
const dictionary dict 
)

Construct from mesh.

Definition at line 44 of file basicFvGeometryScheme.C.

◆ ~basicFvGeometryScheme()

virtual ~basicFvGeometryScheme ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "basic"  )

Runtime type information.

◆ movePoints()

void movePoints ( )
virtual

Do what is necessary if the mesh has moved.

Reimplemented from fvGeometryScheme.

Reimplemented in averageNeighbourFvGeometryScheme, highAspectRatioFvGeometryScheme, solidBodyFvGeometryScheme, and stabilisedFvGeometryScheme.

Definition at line 56 of file basicFvGeometryScheme.C.

References Foam::endl(), fvGeometryScheme::movePoints(), Foam::Pout, and primitiveMesh::updateGeom().

Here is the call graph for this function:

◆ weights()

Foam::tmp< Foam::surfaceScalarField > weights ( ) const
virtual

Return linear difference weighting factors.

Implements fvGeometryScheme.

Definition at line 71 of file basicFvGeometryScheme.C.

References Foam::dimless, Foam::endl(), forAll, Foam::mag(), Time::New(), IOobject::NO_READ, IOobject::NO_WRITE, and Foam::Pout.

Here is the call graph for this function:

◆ deltaCoeffs()

Foam::tmp< Foam::surfaceScalarField > deltaCoeffs ( ) const
virtual

Return cell-centre difference coefficients.

Implements fvGeometryScheme.

Definition at line 151 of file basicFvGeometryScheme.C.

References Foam::dimLength, Foam::dimless, Foam::endl(), forAll, Foam::mag(), Time::New(), IOobject::NO_READ, IOobject::NO_WRITE, p, and Foam::Pout.

Here is the call graph for this function:

◆ nonOrthDeltaCoeffs()

Foam::tmp< Foam::surfaceScalarField > nonOrthDeltaCoeffs ( ) const
virtual

Return non-orthogonal cell-centre difference coefficients.

Implements fvGeometryScheme.

Definition at line 210 of file basicFvGeometryScheme.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), C::C(), delta, Foam::dimLength, Foam::dimless, Foam::endl(), forAll, Foam::mag(), Foam::max(), Time::New(), IOobject::NO_READ, IOobject::NO_WRITE, p, fvsPatchField< Type >::patch(), and Foam::Pout.

Here is the call graph for this function:

◆ nonOrthCorrectionVectors()

Foam::tmp< Foam::surfaceVectorField > nonOrthCorrectionVectors ( ) const
virtual

Return non-orthogonality correction vectors.

Implements fvGeometryScheme.

Definition at line 298 of file basicFvGeometryScheme.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), C::C(), fvsPatchField< Type >::coupled(), delta, Foam::dimless, Foam::endl(), forAll, Time::New(), IOobject::NO_READ, IOobject::NO_WRITE, p, fvsPatchField< Type >::patch(), Foam::Pout, and Foam::Zero.

Here is the call graph for this function:

The documentation for this class was generated from the following files: