Abstract base class for snGrad schemes. More...
#include <finiteVolume/snGradScheme.H>
Abstract base class for snGrad schemes.
Definition at line 61 of file snGradScheme.H.
Public Member Functions | |
virtual const word & | type () const =0 |
Runtime type information. | |
declareRunTimeSelectionTable (tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData)) | |
snGradScheme (const fvMesh &mesh) | |
Construct from mesh. | |
virtual | ~snGradScheme () |
const fvMesh & | mesh () const |
Return mesh reference. | |
virtual tmp< surfaceScalarField > | deltaCoeffs (const GeometricField< Type, fvPatchField, volMesh > &) const =0 |
Return the interpolation weighting factors for the given field. | |
virtual bool | corrected () const |
Return true if this scheme uses an explicit correction. | |
virtual tmp< GeometricField < Type, fvsPatchField, surfaceMesh > > | correction (const GeometricField< Type, fvPatchField, volMesh > &) const |
Return the explicit correction to the snGrad. | |
virtual tmp< GeometricField < Type, fvsPatchField, surfaceMesh > > | snGrad (const GeometricField< Type, fvPatchField, volMesh > &) const |
Return the snGrad of the given cell field. | |
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > | snGrad (const tmp< GeometricField< Type, fvPatchField, volMesh > > &) const |
Return the snGrad of the given tmp cell field. | |
![]() | |
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 tmp< snGradScheme< Type > > | New (const fvMesh &mesh, Istream &schemeData) |
Return new tmp interpolation scheme. | |
static tmp< GeometricField < Type, fvsPatchField, surfaceMesh > > | snGrad (const GeometricField< Type, fvPatchField, volMesh > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad") |
Return the snGrad of the given cell field with the given deltaCoeffs. |
|
inline |
Construct from mesh.
Definition at line 98 of file snGradScheme.H.
|
virtual |
Definition at line 96 of file snGradScheme.C.
|
pure virtual |
Runtime type information.
declareRunTimeSelectionTable | ( | tmp | , |
snGradScheme< Type > | , | ||
Mesh | , | ||
(const fvMesh &mesh, Istream &schemeData) | , | ||
(mesh, schemeData) | |||
) |
|
static |
Return new tmp interpolation scheme.
Definition at line 46 of file snGradScheme.C.
References Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, Foam::Info, and mesh.
Referenced by quadraticFitSnGrad< Type >::correction().
|
inline |
Return mesh reference.
Definition at line 122 of file snGradScheme.H.
Referenced by correctedSnGrad< Type >::corrected(), limitedSnGrad< Type >::corrected(), quadraticFitSnGrad< Type >::correction(), uncorrectedSnGrad< Type >::deltaCoeffs(), correctedSnGrad< Type >::deltaCoeffs(), quadraticFitSnGrad< Type >::deltaCoeffs(), and limitedSnGrad< Type >::deltaCoeffs().
|
static |
Return the snGrad of the given cell field with the given deltaCoeffs.
Definition at line 105 of file snGradScheme.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DimensionedField< Type, GeoMesh >::dimensions(), forAll, IOobject::instance(), DimensionedField< Type, GeoMesh >::mesh(), IOobject::name(), fvMesh::neighbour(), IOobject::NO_READ, IOobject::NO_WRITE, and fvMesh::owner().
Referenced by Foam::fvc::snGrad().
|
pure virtual |
Return the interpolation weighting factors for the given field.
Implemented in limitedSnGrad< Type >, quadraticFitSnGrad< Type >, correctedSnGrad< Type >, and uncorrectedSnGrad< Type >.
|
inlinevirtual |
Return true if this scheme uses an explicit correction.
Reimplemented in limitedSnGrad< Type >, quadraticFitSnGrad< Type >, correctedSnGrad< Type >, and uncorrectedSnGrad< Type >.
Definition at line 144 of file snGradScheme.H.
|
inlinevirtual |
Return the explicit correction to the snGrad.
for the given field
Reimplemented in limitedSnGrad< Type >, quadraticFitSnGrad< Type >, correctedSnGrad< Type >, and uncorrectedSnGrad< Type >.
Definition at line 152 of file snGradScheme.H.
|
virtual |
Return the snGrad of the given cell field.
Return the face-snGrad of the given cell field.
with explicit correction
Definition at line 159 of file snGradScheme.C.
References Foam::correction(), and Foam::fvc::snGrad().
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tvf | ) | const |
Return the snGrad of the given tmp cell field.
Return the face-snGrad of the given cell field.
with explicit correction
Definition at line 180 of file snGradScheme.C.
References Foam::fvc::snGrad().