cellMDLimitedGrad gradient scheme applied to a runTime selected base gradient scheme. More...
#include <finiteVolume/cellMDLimitedGrad.H>
cellMDLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.
The scalar limiter based on limiting the extrapolated face values between the maximum and minimum cell and cell neighbour values and is applied to the gradient in each face direction separately.
Definition at line 60 of file cellMDLimitedGrad.H.
Public Member Functions | |
TypeName ("cellMDLimited") | |
RunTime type information. | |
cellMDLimitedGrad (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<> | |
void | limitFace (vector &g, const scalar &maxDelta, const scalar &minDelta, const vector &dcf) |
template<> | |
tmp< volTensorField > | grad (const volVectorField &vsf) 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. |
Static Public Member Functions | |
static void | limitFace (typename outerProduct< vector, Type >::type &g, const Type &maxDelta, const Type &minDelta, const vector &dcf) |
![]() | |
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 90 of file cellMDLimitedGrad.H.
References Foam::exit(), Foam::FatalIOError, and FatalIOErrorIn.
TypeName | ( | "cellMDLimited" | ) |
RunTime type information.
|
inlinestatic |
Definition at line 156 of file cellMDLimitedGrad.H.
References VectorSpace< Form, Cmpt, nCmpt >::component(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by faceMDLimitedGrad< Type >::grad(), and Foam::fv::makeFvGradScheme().
|
virtual |
Calculate and return the grad of the given field.
Implements gradScheme< Type >.
|
inline |
Definition at line 134 of file cellMDLimitedGrad.H.
References Foam::magSqr().
tmp< volTensorField > grad | ( | const volVectorField & | vsf | ) | const |
Definition at line 193 of file cellMDLimitedGrads.C.
References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvMesh::C(), fvMesh::Cf(), gaussGrad< Type >::correctBoundaryConditions(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), fvPatchField< Type >::coupled(), forAll, GeometricField< Type, PatchField, GeoMesh >::internalField(), Foam::max(), mesh, DimensionedField< Type, GeoMesh >::mesh(), Foam::min(), fvMesh::neighbour(), fvMesh::owner(), patchi, and fvPatchField< Type >::patchNeighbourField().