Default geometry calculation scheme. Slight stabilisation for bad meshes. More...
#include <basicFvGeometryScheme.H>


Public Member Functions | |
| TypeName ("basic") | |
| Runtime type information. | |
| basicFvGeometryScheme (const fvMesh &mesh, const dictionary &dict) | |
| Construct from mesh. | |
| virtual | ~basicFvGeometryScheme ()=default |
| Destructor. | |
| virtual void | movePoints () |
| Do what is necessary if the mesh has moved. | |
| virtual tmp< surfaceScalarField > | weights () const |
| Return linear difference weighting factors. | |
| virtual tmp< surfaceScalarField > | deltaCoeffs () const |
| Return cell-centre difference coefficients. | |
| virtual tmp< surfaceScalarField > | nonOrthDeltaCoeffs () const |
| Return non-orthogonal cell-centre difference coefficients. | |
| virtual tmp< surfaceVectorField > | nonOrthCorrectionVectors () const |
| Return non-orthogonality correction vectors. | |
| 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 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 fvMesh & | mesh () 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. | |
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 fvMesh & | mesh_ |
| Hold reference to mesh. | |
Default geometry calculation scheme. Slight stabilisation for bad meshes.
Definition at line 46 of file basicFvGeometryScheme.H.
| basicFvGeometryScheme | ( | const fvMesh & | mesh, |
| const dictionary & | dict ) |
Construct from mesh.
Definition at line 38 of file basicFvGeometryScheme.C.
References dict, and fvGeometryScheme::mesh().

|
virtualdefault |
Destructor.
References points.
| TypeName | ( | "basic" | ) |
Runtime type information.
References dict, and fvGeometryScheme::mesh().

|
virtual |
Do what is necessary if the mesh has moved.
Reimplemented from fvGeometryScheme.
Reimplemented in averageNeighbourFvGeometryScheme, highAspectRatioFvGeometryScheme, solidBodyFvGeometryScheme, and stabilisedFvGeometryScheme.
Definition at line 50 of file basicFvGeometryScheme.C.
References Foam::endl(), fvGeometryScheme::mesh_, fvGeometryScheme::movePoints(), Foam::Pout, and primitiveMesh::updateGeom().

|
virtual |
Return linear difference weighting factors.
Implements fvGeometryScheme.
Definition at line 65 of file basicFvGeometryScheme.C.
References Foam::dimless, Foam::endl(), forAll, Foam::mag(), fvGeometryScheme::mesh_, tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, Foam::Pout, and weights().
Referenced by nonOrthDeltaCoeffs(), and weights().


|
virtual |
Return cell-centre difference coefficients.
Implements fvGeometryScheme.
Definition at line 145 of file basicFvGeometryScheme.C.
References deltaCoeffs(), Foam::dimLength, Foam::dimless, Foam::endl(), forAll, Foam::mag(), fvGeometryScheme::mesh_, tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, p, and Foam::Pout.
Referenced by deltaCoeffs().


|
virtual |
Return non-orthogonal cell-centre difference coefficients.
Implements fvGeometryScheme.
Definition at line 204 of file basicFvGeometryScheme.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), delta, Foam::dimLength, Foam::dimless, Foam::endl(), forAll, Foam::mag(), Foam::max(), fvGeometryScheme::mesh_, tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, nonOrthDeltaCoeffs(), p, fvsPatchFieldBase::patch(), Foam::Pout, and weights().
Referenced by nonOrthCorrectionVectors(), and nonOrthDeltaCoeffs().


|
virtual |
Return non-orthogonality correction vectors.
Implements fvGeometryScheme.
Definition at line 292 of file basicFvGeometryScheme.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), fvsPatchFieldBase::coupled(), delta, Foam::dimless, Foam::endl(), forAll, fvGeometryScheme::mesh_, tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, nonOrthDeltaCoeffs(), p, fvsPatchFieldBase::patch(), Foam::Pout, and Foam::Zero.

|
virtual |
Calculate geometry quantities using mesh topology and provided points. If oldPoints provided only does local update. Returns true if anything changed, false otherwise.
Implements fvGeometryScheme.
Reimplemented in averageNeighbourFvGeometryScheme, highAspectRatioFvGeometryScheme, solidBodyFvGeometryScheme, and stabilisedFvGeometryScheme.
Definition at line 387 of file basicFvGeometryScheme.C.
References primitiveMeshTools::makeCellCentresAndVols(), primitiveMeshTools::makeFaceCentresAndAreas(), fvGeometryScheme::mesh_, and points.
Referenced by highAspectRatioFvGeometryScheme::updateGeom(), and solidBodyFvGeometryScheme::updateGeom().

