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... | |
Public Member Functions inherited from basicFvGeometryScheme | |
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... | |
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 fvMesh & | mesh () const |
Return mesh reference. More... | |
virtual void | updateMesh (const mapPolyMesh &mpm) |
Update mesh for topology changes. More... | |
Public Member Functions inherited from refCount | |
constexpr | refCount () noexcept |
Default construct, initializing count to 0. More... | |
int | use_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... | |
Protected Member Functions inherited from fvGeometryScheme | |
bool | setMeshPhi () const |
Set the mesh motion flux. 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_ |
Protected Attributes inherited from fvGeometryScheme | |
const fvMesh & | mesh_ |
Hold reference to mesh. More... | |
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. More... | |
Geometry calculation scheme with automatic stabilisation for high-aspect ratio cells.
Definition at line 50 of file highAspectRatioFvGeometryScheme.H.
highAspectRatioFvGeometryScheme | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from mesh.
Definition at line 342 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 157 of file highAspectRatioFvGeometryScheme.C.
References Foam::clamp(), delta, Foam::max(), and List< T >::setSize().
Referenced by highAspectRatioFvGeometryScheme::movePoints(), and averageNeighbourFvGeometryScheme::movePoints().
|
staticprotected |
Helper : calculate (weighted) average face and cell centres.
Definition at line 220 of file highAspectRatioFvGeometryScheme.C.
References Foam::ensightOutput::debug, Foam::endl(), f(), forAll, Foam::mag(), mesh, nPoints, p, pbm, Foam::constant::mathematical::pi(), Foam::Pout, pp(), List< T >::setSize(), 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 373 of file highAspectRatioFvGeometryScheme.C.
References highAspectRatioFvGeometryScheme::calcAspectRatioWeights(), primitiveMesh::cellCentres(), primitiveMesh::cellVolumes(), Foam::ensightOutput::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_, fvGeometryScheme::movePoints(), polyMesh::points(), Foam::Pout, primitiveMesh::resetGeometry(), and primitiveMesh::updateGeom().
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
protected |
Definition at line 56 of file highAspectRatioFvGeometryScheme.H.
|
protected |
Definition at line 58 of file highAspectRatioFvGeometryScheme.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.