cellLimitedGrad gradient scheme applied to a runTime selected base gradient scheme. More...
#include <finiteVolume/cellLimitedGrad.H>
cellLimitedGrad gradient scheme applied to a runTime selected base gradient scheme.
The scalar limiter based on limiting the extrapolated face values between the maximum and minumum cell and cell neighbour values and is applied to all components of the gradient.
Definition at line 60 of file cellLimitedGrad.H.
Public Member Functions | |
TypeName ("cellLimited") | |
RunTime type information.
| |
cellLimitedGrad (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 &vsf) const |
Static Public Member Functions | |
static void | limitFace (Type &limiter, const Type &maxDelta, const Type &minDelta, const Type &extrapolate) |
cellLimitedGrad | ( | const fvMesh & | mesh, |
Istream & | schemeData | ||
) | [inline]
|
Construct from mesh and schemeData.
Definition at line 90 of file cellLimitedGrad.H.
References Foam::exit(), Foam::FatalIOError, and FatalIOErrorIn.
TypeName | ( | "cellLimited" | ) |
RunTime type information.
void limitFace | ( | Type & | limiter, |
const Type & | maxDelta, | ||
const Type & | minDelta, | ||
const Type & | extrapolate | ||
) | [inline, static]
|
Definition at line 71 of file cellLimitedGrads.C.
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 >.
tmp< volVectorField > grad | ( | const volScalarField & | vsf ) | const |
Definition at line 95 of file cellLimitedGrads.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(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::Info, GeometricField< Type, PatchField, GeoMesh >::internalField(), Foam::MULES::limiter(), Foam::max(), DimensionedField< Type, GeoMesh >::mesh(), mesh, Foam::min(), IOobject::name(), fvMesh::neighbour(), fvMesh::owner(), and fvPatchField< Type >::patchNeighbourField().
tmp< volTensorField > grad | ( | const volVectorField & | vsf ) | const |
Definition at line 247 of file cellLimitedGrads.C.
References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvMesh::C(), fvMesh::Cf(), Foam::cmptMultiply(), gaussGrad< Type >::correctBoundaryConditions(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), fvPatchField< Type >::coupled(), Foam::endl(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::Info, GeometricField< Type, PatchField, GeoMesh >::internalField(), Foam::MULES::limiter(), Foam::max(), DimensionedField< Type, GeoMesh >::mesh(), mesh, Foam::min(), IOobject::name(), fvMesh::neighbour(), Vector< Cmpt >::one, fvMesh::owner(), fvPatchField< Type >::patchNeighbourField(), and y.