Loading...
Searching...
No Matches
stabilisedFvGeometryScheme Class Reference

Geometry calculation scheme that implements face geometry calculation using normal-component-of-area weighted triangle contributions. More...

#include <stabilisedFvGeometryScheme.H>

Inheritance diagram for stabilisedFvGeometryScheme:
Collaboration diagram for stabilisedFvGeometryScheme:

Public Member Functions

 TypeName ("stabilised")
 Runtime type information.
 stabilisedFvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 Construct from mesh.
virtual ~stabilisedFvGeometryScheme ()=default
 Destructor.
virtual void movePoints ()
 Do what is necessary if the mesh has moved.
virtual bool updateGeom (const pointField &points, const refPtr< pointField > &oldPoints, pointField &faceCentres, vectorField &faceAreas, pointField &cellCentres, scalarField &cellVolumes) const
 Calculate geometry quantities using mesh topology and provided points. If oldPoints provided only does local update. Returns true if anything changed, false otherwise.
Public Member Functions inherited from basicFvGeometryScheme
 TypeName ("basic")
 Runtime type information.
 basicFvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 Construct from mesh.
virtual ~basicFvGeometryScheme ()=default
 Destructor.
virtual tmp< surfaceScalarFieldweights () const
 Return linear difference weighting factors.
virtual tmp< surfaceScalarFielddeltaCoeffs () const
 Return cell-centre difference coefficients.
virtual tmp< surfaceScalarFieldnonOrthDeltaCoeffs () const
 Return non-orthogonal cell-centre difference coefficients.
virtual tmp< surfaceVectorFieldnonOrthCorrectionVectors () const
 Return non-orthogonality correction vectors.
Public Member Functions inherited from fvGeometryScheme
 TypeName ("fvGeometryScheme")
 Runtime type information.
 declareRunTimeSelectionTable (tmp, fvGeometryScheme, dict,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 fvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 Construct from mesh.
virtual ~fvGeometryScheme ()=default
 Destructor.
const fvMeshmesh () const
 Return mesh reference.
virtual void updateMesh (const mapPolyMesh &mpm)
 Update mesh for topology changes.
Public Member Functions inherited from refCount
constexpr refCount () noexcept
 Default construct, initializing count to 0.
int use_count () const noexcept
 Return the current reference count.
bool unique () const noexcept
 Return true if the reference count is zero.
void operator++ () noexcept
 Increment the reference count.
void operator++ (int) noexcept
 Increment the reference count.
void operator-- () noexcept
 Decrement the reference count.
void operator-- (int) noexcept
 Decrement the reference count.

Static Protected Member Functions

static void makeFaceCentresAndAreas (const polyMesh &mesh, const pointField &p, vectorField &fCtrs, vectorField &fAreas)
 Calculate face area and centre weighted using pyramid height.

Additional Inherited Members

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

Detailed Description

Geometry calculation scheme that implements face geometry calculation using normal-component-of-area weighted triangle contributions.

This implements the Foundation 'Corrected face-centre calculations' as a separate geometry scheme. Only implements the primitiveMesh parts, not the individual face calculation.

Source files

Definition at line 54 of file stabilisedFvGeometryScheme.H.

Constructor & Destructor Documentation

◆ stabilisedFvGeometryScheme()

stabilisedFvGeometryScheme ( const fvMesh & mesh,
const dictionary & dict )

Construct from mesh.

Definition at line 164 of file stabilisedFvGeometryScheme.C.

References dict, fvGeometryScheme::mesh(), and movePoints().

Here is the call graph for this function:

◆ ~stabilisedFvGeometryScheme()

virtual ~stabilisedFvGeometryScheme ( )
virtualdefault

Destructor.

References points.

Member Function Documentation

◆ makeFaceCentresAndAreas()

void makeFaceCentresAndAreas ( const polyMesh & mesh,
const pointField & p,
vectorField & fCtrs,
vectorField & fAreas )
staticprotected

Calculate face area and centre weighted using pyramid height.

Definition at line 76 of file stabilisedFvGeometryScheme.C.

References triangle< Point, PointRef >::areaNormal(), triangle< Point, PointRef >::centre(), f(), forAll, fvGeometryScheme::mesh(), Foam::normalised(), nPoints, p, pi(), Foam::pointsAverage(), and Foam::Zero.

Referenced by movePoints(), and updateGeom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "stabilised" )

Runtime type information.

References dict, and fvGeometryScheme::mesh().

Here is the call graph for this function:

◆ movePoints()

void movePoints ( )
virtual

Do what is necessary if the mesh has moved.

Reimplemented from basicFvGeometryScheme.

Definition at line 179 of file stabilisedFvGeometryScheme.C.

References Foam::endl(), primitiveMeshTools::makeCellCentresAndVols(), makeFaceCentresAndAreas(), fvGeometryScheme::mesh_, fvGeometryScheme::movePoints(), Foam::Pout, and primitiveMesh::resetGeometry().

Referenced by stabilisedFvGeometryScheme().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateGeom()

bool updateGeom ( const pointField & points,
const refPtr< pointField > & oldPoints,
pointField & faceCentres,
vectorField & faceAreas,
pointField & cellCentres,
scalarField & cellVolumes ) const
virtual

Calculate geometry quantities using mesh topology and provided points. If oldPoints provided only does local update. Returns true if anything changed, false otherwise.

Reimplemented from basicFvGeometryScheme.

Definition at line 231 of file stabilisedFvGeometryScheme.C.

References primitiveMeshTools::makeCellCentresAndVols(), makeFaceCentresAndAreas(), fvGeometryScheme::mesh_, and points.

Here is the call graph for this function:

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