Geometry calculation scheme with automatic stabilisation for high-aspect ratio cells. More...
Public Member Functions | |
TypeName ("highAspectRatio") | |
Runtime type information. More... | |
highAspectRatioFvGeometryScheme (const fvMesh &mesh, const dictionary &dict) | |
Construct from mesh. More... | |
virtual | ~highAspectRatioFvGeometryScheme ()=default |
Destructor. More... | |
virtual void | movePoints () |
Do what is necessary if the mesh has moved. More... | |
![]() | |
TypeName ("basic") | |
Runtime type information. More... | |
basicFvGeometryScheme (const fvMesh &mesh, const dictionary &dict) | |
Construct from mesh. More... | |
virtual | ~basicFvGeometryScheme ()=default |
Destructor. More... | |
virtual tmp< surfaceScalarField > | weights () const |
Return linear difference weighting factors. More... | |
virtual tmp< surfaceScalarField > | deltaCoeffs () const |
Return cell-centre difference coefficients. More... | |
virtual tmp< surfaceScalarField > | nonOrthDeltaCoeffs () const |
Return non-orthogonal cell-centre difference coefficients. More... | |
virtual tmp< surfaceVectorField > | nonOrthCorrectionVectors () const |
Return non-orthogonality correction vectors. More... | |
![]() | |
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 fvMesh & | mesh () const |
Return mesh reference. More... | |
![]() | |
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... | |
Protected Member Functions | |
void | calcAspectRatioWeights (scalarField &cellWeight, scalarField &faceWeight) const |
Calculate cell and face weight. Is 0 for cell < minAspect, 1 for. More... | |
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. More... | |
Protected Attributes | |
const scalar | minAspect_ |
const scalar | maxAspect_ |
![]() | |
const fvMesh & | mesh_ |
Hold reference to mesh. More... | |
Additional Inherited Members | |
![]() | |
static tmp< fvGeometryScheme > | New (const fvMesh &mesh, const dictionary &dict, const word &defaultScheme) |
Return new tmp interpolation scheme. More... | |
Geometry calculation scheme with automatic stabilisation for high-aspect ratio cells.
Definition at line 54 of file highAspectRatioFvGeometryScheme.H.
highAspectRatioFvGeometryScheme | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from mesh.
Definition at line 359 of file highAspectRatioFvGeometryScheme.C.
References dict, Foam::exit(), Foam::FatalIOError, and FatalIOErrorInFunction.
|
virtualdefault |
Destructor.
|
protected |
Calculate cell and face weight. Is 0 for cell < minAspect, 1 for.
cell > maxAspect
Definition at line 163 of file highAspectRatioFvGeometryScheme.C.
References delta, Foam::max(), and Foam::min().
Referenced by highAspectRatioFvGeometryScheme::movePoints(), and averageNeighbourFvGeometryScheme::movePoints().
|
staticprotected |
Helper : calculate (weighted) average face and cell centres.
Definition at line 235 of file highAspectRatioFvGeometryScheme.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), f(), forAll, Foam::mag(), mesh, nPoints, p, Foam::constant::mathematical::pi(), Foam::Pout, and Foam::Zero.
Referenced by highAspectRatioFvGeometryScheme::movePoints().
TypeName | ( | "highAspectRatio" | ) |
Runtime type information.
|
virtual |
Do what is necessary if the mesh has moved.
Reimplemented from basicFvGeometryScheme.
Reimplemented in averageNeighbourFvGeometryScheme.
Definition at line 390 of file highAspectRatioFvGeometryScheme.C.
References highAspectRatioFvGeometryScheme::calcAspectRatioWeights(), primitiveMesh::cellCentres(), primitiveMesh::cellVolumes(), Foam::expressions::patchExpr::debug, Foam::endl(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), Foam::gAverage(), Foam::gMax(), Foam::gMin(), primitiveMesh::hasCellCentres(), primitiveMesh::hasCellVolumes(), primitiveMesh::hasFaceAreas(), primitiveMesh::hasFaceCentres(), Foam::mag(), highAspectRatioFvGeometryScheme::makeAverageCentres(), fvGeometryScheme::mesh_, polyMesh::points(), Foam::Pout, primitiveMesh::resetGeometry(), and primitiveMesh::updateGeom().
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
protected |
Definition at line 60 of file highAspectRatioFvGeometryScheme.H.
|
protected |
Definition at line 62 of file highAspectRatioFvGeometryScheme.H.