Abstract base class for snGrad schemes. More...
Public Member Functions | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (tmp, snGradScheme, Mesh,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData)) | |
snGradScheme (const fvMesh &mesh) | |
Construct from mesh. More... | |
snGradScheme (const snGradScheme &) | |
Disallow default bitwise copy construction. More... | |
virtual | ~snGradScheme () |
Destructor. More... | |
const fvMesh & | mesh () const |
Return mesh reference. More... | |
virtual tmp< surfaceScalarField > | deltaCoeffs (const VolField< Type > &) const =0 |
Return the interpolation weighting factors for the given field. More... | |
virtual bool | corrected () const |
Return true if this scheme uses an explicit correction. More... | |
virtual tmp< SurfaceField< Type > > | correction (const VolField< Type > &) const |
Return the explicit correction to the snGrad. More... | |
virtual tmp< SurfaceField< Type > > | snGrad (const VolField< Type > &) const |
Return the snGrad of the given cell field. More... | |
tmp< SurfaceField< Type > > | snGrad (const tmp< VolField< Type >> &) const |
Return the snGrad of the given tmp cell field. More... | |
void | operator= (const snGradScheme &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from refCount | |
int | count () const |
Return the current reference count. More... | |
bool | unique () const |
Return true if the reference count is zero. More... | |
void | operator++ () |
Increment the reference count. More... | |
void | operator++ (int) |
Increment the reference count. More... | |
void | operator-- () |
Decrement the reference count. More... | |
void | operator-- (int) |
Decrement the reference count. More... | |
Static Public Member Functions | |
static tmp< snGradScheme< Type > > | New (const fvMesh &mesh, Istream &schemeData) |
Return new tmp interpolation scheme. More... | |
static tmp< SurfaceField< Type > > | snGrad (const VolField< Type > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad") |
Return the snGrad of the given cell field with the given deltaCoeffs. More... | |
static tmp< SurfaceField< Type > > | sndGrad (const VolField< Type > &, const word &snGradName="sndGrad") |
Return the sndGrad of the given cell field. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from refCount | |
refCount () | |
Construct null initialising count to 0. More... | |
Abstract base class for snGrad schemes.
Definition at line 60 of file snGradScheme.H.
|
inline |
Construct from mesh.
Definition at line 91 of file snGradScheme.H.
snGradScheme | ( | const snGradScheme< Type > & | ) |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 92 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 45 of file snGradScheme.C.
References Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, InfoInFunction, and Foam::nl.
Referenced by laplacianScheme< Type, GType >::laplacianScheme(), and Foam::fvc::snGrad().
|
inline |
Return mesh reference.
Definition at line 117 of file snGradScheme.H.
Referenced by CentredFitSnGradScheme< Type, Polynomial, Stencil >::correction(), CentredFitSnGradScheme< Type, Polynomial, Stencil >::deltaCoeffs(), correctedSnGrad< Type >::deltaCoeffs(), faceCorrectedSnGrad< Type >::deltaCoeffs(), orthogonalSnGrad< Type >::deltaCoeffs(), and uncorrectedSnGrad< Type >::deltaCoeffs().
|
static |
Return the snGrad of the given cell field with the given deltaCoeffs.
Definition at line 100 of file snGradScheme.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), fvPatchField< Type >::coupled(), DimensionedField< Type, GeoMesh >::dimensions(), forAll, DimensionedField< Type, GeoMesh >::mesh(), IOobject::name(), fvMesh::neighbour(), fvMesh::owner(), patchi, tmp< T >::ref(), and fvPatchField< Type >::snGrad().
|
static |
Return the sndGrad of the given cell field.
Definition at line 157 of file snGradScheme.C.
References DimensionedField< Type, GeoMesh >::mesh(), and Foam::fvc::snGrad().
|
pure virtual |
Return the interpolation weighting factors for the given field.
Implemented in phaseStabilisedSnGrad< Type >, uncorrectedSnGrad< Type >, orthogonalSnGrad< Type >, limitedSnGrad< Type >, faceCorrectedSnGrad< Type >, correctedSnGrad< Type >, and CentredFitSnGradScheme< Type, Polynomial, Stencil >.
|
inlinevirtual |
Return true if this scheme uses an explicit correction.
Reimplemented in uncorrectedSnGrad< Type >, phaseStabilisedSnGrad< Type >, orthogonalSnGrad< Type >, limitedSnGrad< Type >, faceCorrectedSnGrad< Type >, correctedSnGrad< Type >, and CentredFitSnGradScheme< Type, Polynomial, Stencil >.
Definition at line 147 of file snGradScheme.H.
|
inlinevirtual |
Return the explicit correction to the snGrad.
for the given field
Reimplemented in CentredFitSnGradScheme< Type, Polynomial, Stencil >, uncorrectedSnGrad< Type >, phaseStabilisedSnGrad< Type >, orthogonalSnGrad< Type >, limitedSnGrad< Type >, faceCorrectedSnGrad< Type >, and correctedSnGrad< Type >.
Definition at line 155 of file snGradScheme.H.
|
virtual |
Return the snGrad of the given cell field.
with explicit correction
Definition at line 169 of file snGradScheme.C.
References Foam::correction(), tmp< T >::ref(), and Foam::fvc::snGrad().
tmp< SurfaceField< Type > > snGrad | ( | const tmp< VolField< Type >> & | tvf | ) | const |
Return the snGrad of the given tmp cell field.
with explicit correction
Definition at line 190 of file snGradScheme.C.
References tmp< T >::clear(), and Foam::fvc::snGrad().
|
delete |
Disallow default bitwise assignment.