faceLimitedGrad gradient scheme applied to a runTime selected base gradient scheme. More...
#include <finiteVolume/faceLimitedGrad.H>
faceLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.
The scalar limiter based on limiting the extrapolated face values between the face-neighbour cell values and is applied to all components of the gradient.
Definition at line 60 of file faceLimitedGrad.H.
Public Member Functions | |
TypeName ("faceLimited") | |
RunTime type information. | |
faceLimitedGrad (const fvMesh &mesh, Istream &schemeData) | |
Construct from mesh and schemeData. | |
tmp< GeometricField< typename outerProduct< vector, Type > ::type, fvPatchField, volMesh > > | grad (const GeometricField< Type, fvPatchField, volMesh > &) const |
Calculate and return the grad of the given field. | |
template<> | |
tmp< volVectorField > | grad (const volScalarField &vsf) const |
template<> | |
tmp< volTensorField > | grad (const volVectorField &vvf) const |
![]() | |
virtual const word & | type () const =0 |
Runtime type information. | |
declareRunTimeSelectionTable (tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData)) | |
gradScheme (const fvMesh &mesh) | |
Construct from mesh. | |
virtual | ~gradScheme () |
const fvMesh & | mesh () const |
Return mesh reference. | |
![]() | |
refCount () | |
Construct null with zero count. | |
int | count () const |
Return the reference count. | |
bool | okToDelete () const |
Return true if the reference count is zero. | |
void | resetRefCount () |
Reset the reference count to zero. | |
void | operator++ () |
Increment the reference count. | |
void | operator++ (int) |
Increment the reference count. | |
void | operator-- () |
Decrement the reference count. | |
void | operator-- (int) |
Decrement the reference count. |
Additional Inherited Members | |
![]() | |
static tmp< gradScheme< Type > > | New (const fvMesh &mesh, Istream &schemeData) |
Return a pointer to a new gradScheme created on freestore. |
|
inline |
Construct from mesh and schemeData.
Definition at line 99 of file faceLimitedGrad.H.
References Foam::exit(), Foam::FatalIOError, and FatalIOErrorIn.
TypeName | ( | "faceLimited" | ) |
RunTime type information.
|
virtual |
Calculate and return the grad of the given field.
Implements gradScheme< Type >.
tmp< volVectorField > grad | ( | const volScalarField & | vsf | ) | const |
Definition at line 74 of file faceLimitedGrads.C.
References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvMesh::C(), fvMesh::Cf(), gaussGrad< Type >::correctBoundaryConditions(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), fvPatchField< Type >::coupled(), Foam::endl(), fvPatchField< Type >::fixesValue(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::Info, GeometricField< Type, PatchField, GeoMesh >::internalField(), Foam::MULES::limiter(), Foam::max(), mesh, DimensionedField< Type, GeoMesh >::mesh(), Foam::min(), IOobject::name(), fvMesh::neighbour(), fvMesh::owner(), patchi, fvPatchField< Type >::patchNeighbourField(), and List< T >::size().
tmp< volTensorField > grad | ( | const volVectorField & | vvf | ) | const |
Definition at line 208 of file faceLimitedGrads.C.
References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvMesh::C(), fvMesh::Cf(), gaussGrad< Type >::correctBoundaryConditions(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), fvPatchField< Type >::coupled(), Foam::endl(), fvPatchField< Type >::fixesValue(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::Info, GeometricField< Type, PatchField, GeoMesh >::internalField(), Foam::MULES::limiter(), Foam::magSqr(), Foam::max(), mesh, DimensionedField< Type, GeoMesh >::mesh(), Foam::min(), IOobject::name(), fvMesh::neighbour(), fvMesh::owner(), patchi, fvPatchField< Type >::patchNeighbourField(), and List< T >::size().