Loading...
Searching...
No Matches
highAspectRatioFvGeometryScheme Class Reference

Geometry calculation scheme with automatic stabilisation for high-aspect ratio cells. More...

#include <highAspectRatioFvGeometryScheme.H>

Inheritance diagram for highAspectRatioFvGeometryScheme:
Collaboration diagram for highAspectRatioFvGeometryScheme:

Public Member Functions

 TypeName ("highAspectRatio")
 Runtime type information.
 highAspectRatioFvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 Construct from mesh.
virtual ~highAspectRatioFvGeometryScheme ()=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.

Protected Member Functions

void calcAspectRatioWeights (scalarField &cellWeight, scalarField &faceWeight) const
 Calculate cell and face weight. Is 0 for cell < minAspect, 1 for.
Protected Member Functions inherited from fvGeometryScheme
bool setMeshPhi () const
 Set the mesh motion flux.

Static Protected Member Functions

static void makeAverageCentres (const polyMesh &mesh, const pointField &points, const pointField &faceAreas, const scalarField &magFaceAreas, pointField &faceCentres, pointField &cellCentres)
 Helper : calculate (weighted) average face and cell centres.

Protected Attributes

const scalar minAspect_
const scalar maxAspect_
Protected Attributes inherited from fvGeometryScheme
const fvMeshmesh_
 Hold reference to mesh.

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.

Detailed Description

Geometry calculation scheme with automatic stabilisation for high-aspect ratio cells.

Source files

Definition at line 50 of file highAspectRatioFvGeometryScheme.H.

Constructor & Destructor Documentation

◆ highAspectRatioFvGeometryScheme()

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

Construct from mesh.

Definition at line 341 of file highAspectRatioFvGeometryScheme.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, maxAspect_, fvGeometryScheme::mesh(), minAspect_, and movePoints().

Here is the call graph for this function:

◆ ~highAspectRatioFvGeometryScheme()

virtual ~highAspectRatioFvGeometryScheme ( )
virtualdefault

Destructor.

References points.

Member Function Documentation

◆ calcAspectRatioWeights()

void calcAspectRatioWeights ( scalarField & cellWeight,
scalarField & faceWeight ) const
protected

Calculate cell and face weight. Is 0 for cell < minAspect, 1 for.

cell > maxAspect

Definition at line 156 of file highAspectRatioFvGeometryScheme.C.

References Foam::clamp(), delta, Foam::max(), maxAspect_, fvGeometryScheme::mesh_, minAspect_, List< T >::setSize(), and syncTools::swapBoundaryCellList().

Referenced by averageNeighbourFvGeometryScheme::movePoints(), and movePoints().

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

◆ makeAverageCentres()

void makeAverageCentres ( const polyMesh & mesh,
const pointField & points,
const pointField & faceAreas,
const scalarField & magFaceAreas,
pointField & faceCentres,
pointField & cellCentres )
staticprotected

Helper : calculate (weighted) average face and cell centres.

Definition at line 219 of file highAspectRatioFvGeometryScheme.C.

References triangle< point, const point & >::centre(), Foam::endl(), f(), forAll, Foam::isA(), Foam::mag(), fvGeometryScheme::mesh(), nPoints, p, pbm, pi(), Foam::Pout, pp(), List< T >::setSize(), 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 ( "highAspectRatio" )

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.

Reimplemented in averageNeighbourFvGeometryScheme.

Definition at line 373 of file highAspectRatioFvGeometryScheme.C.

References calcAspectRatioWeights(), Foam::endl(), Foam::gAverage(), Foam::gMinMax(), limits, Foam::mag(), makeAverageCentres(), fvGeometryScheme::mesh_, fvGeometryScheme::movePoints(), Foam::Pout, primitiveMesh::resetGeometry(), and primitiveMesh::updateGeom().

Referenced by highAspectRatioFvGeometryScheme(), and averageNeighbourFvGeometryScheme::movePoints().

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.

Reimplemented in averageNeighbourFvGeometryScheme.

Definition at line 455 of file highAspectRatioFvGeometryScheme.C.

References Foam::mag(), makeAverageCentres(), fvGeometryScheme::mesh_, points, and basicFvGeometryScheme::updateGeom().

Here is the call graph for this function:

Member Data Documentation

◆ minAspect_

const scalar minAspect_
protected

◆ maxAspect_

const scalar maxAspect_
protected

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