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 |
Static Public Member Functions | |
static void | limitFace (typename outerProduct< vector, Type >::type &g, const Type &maxDelta, const Type &minDelta, const vector &dcf) |
cellMDLimitedGrad | ( | const fvMesh & | mesh, |
Istream & | schemeData | ||
) | [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.
void limitFace | ( | typename outerProduct< vector, Type >::type & | g, |
const Type & | maxDelta, | ||
const Type & | minDelta, | ||
const vector & | dcf | ||
) | [inline, static]
|
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().
tmp< GeometricField <typename outerProduct<vector, Type>::type, fvPatchField, volMesh> > grad | ( | const GeometricField< Type, fvPatchField, volMesh > & | ) | const [virtual]
|
Calculate and return the grad of the given field.
Implements gradScheme< Type >.
void limitFace | ( | vector & | g, |
const scalar & | maxDelta, | ||
const scalar & | minDelta, | ||
const vector & | dcf | ||
) | [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(), DimensionedField< Type, GeoMesh >::mesh(), mesh, Foam::min(), fvMesh::neighbour(), fvMesh::owner(), and fvPatchField< Type >::patchNeighbourField().