correctedSnGrad< Type > Class Template Reference

Simple central-difference snGrad scheme with non-orthogonal correction. More...

Inheritance diagram for correctedSnGrad< Type >:
Collaboration diagram for correctedSnGrad< Type >:

Public Member Functions

 TypeName ("corrected")
 Runtime type information. More...
 
 correctedSnGrad (const fvMesh &mesh)
 Construct from mesh. More...
 
 correctedSnGrad (const fvMesh &mesh, Istream &)
 Construct from mesh and data stream. More...
 
virtual ~correctedSnGrad ()
 Destructor. More...
 
virtual tmp< surfaceScalarFielddeltaCoeffs (const GeometricField< Type, fvPatchField, volMesh > &) const
 Return the interpolation weighting factors for the given field. More...
 
virtual bool corrected () const
 Return true if this scheme uses an explicit correction. More...
 
tmp< GeometricField< Type,
fvsPatchField, surfaceMesh > > 
fullGradCorrection (const GeometricField< Type, fvPatchField, volMesh > &) const
 Return the explicit correction to the correctedSnGrad. More...
 
virtual tmp< GeometricField
< Type, fvsPatchField,
surfaceMesh > > 
correction (const GeometricField< Type, fvPatchField, volMesh > &) const
 Return the explicit correction to the correctedSnGrad. More...
 
template<>
tmp< surfaceScalarFieldcorrection (const volScalarField &vsf) const
 
template<>
tmp< surfaceVectorFieldcorrection (const volVectorField &vvf) const
 
template<>
Foam::tmp
< Foam::surfaceScalarField
correction (const volScalarField &vsf) const
 
template<>
Foam::tmp
< Foam::surfaceVectorField
correction (const volVectorField &vvf) const
 
- Public Member Functions inherited from snGradScheme< Type >
virtual const wordtype () 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...
 
virtual ~snGradScheme ()
 Destructor. More...
 
const fvMeshmesh () const
 Return mesh reference. More...
 
virtual tmp< GeometricField
< Type, fvsPatchField,
surfaceMesh > > 
snGrad (const GeometricField< Type, fvPatchField, volMesh > &) const
 Return the snGrad of the given cell field. More...
 
tmp< GeometricField< Type,
fvsPatchField, surfaceMesh > > 
snGrad (const tmp< GeometricField< Type, fvPatchField, volMesh > > &) const
 Return the snGrad of the given tmp cell field. More...
 
- Public Member Functions inherited from refCount
 refCount ()
 Construct null with zero count. More...
 
int count () const
 Return the reference count. More...
 
bool okToDelete () const
 Return true if the reference count is zero. More...
 
void resetRefCount ()
 Reset the reference count to 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from snGradScheme< Type >
static tmp< snGradScheme< Type > > New (const fvMesh &mesh, Istream &schemeData)
 Return new tmp interpolation scheme. More...
 
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. More...
 
static tmp< GeometricField
< Type, fvsPatchField,
surfaceMesh > > 
sndGrad (const GeometricField< Type, fvPatchField, volMesh > &, const word &snGradName="sndGrad")
 Return the sndGrad of the given cell field. More...
 

Detailed Description

template<class Type>
class Foam::fv::correctedSnGrad< Type >

Simple central-difference snGrad scheme with non-orthogonal correction.

Source files

Definition at line 55 of file correctedSnGrad.H.

Constructor & Destructor Documentation

correctedSnGrad ( const fvMesh mesh)
inline

Construct from mesh.

Definition at line 74 of file correctedSnGrad.H.

correctedSnGrad ( const fvMesh mesh,
Istream  
)
inline

Construct from mesh and data stream.

Definition at line 81 of file correctedSnGrad.H.

~correctedSnGrad ( )
virtual

Destructor.

Definition at line 36 of file correctedSnGrad.C.

Member Function Documentation

TypeName ( "corrected"  )

Runtime type information.

virtual tmp<surfaceScalarField> deltaCoeffs ( const GeometricField< Type, fvPatchField, volMesh > &  ) const
inlinevirtual

Return the interpolation weighting factors for the given field.

Implements snGradScheme< Type >.

Definition at line 95 of file correctedSnGrad.H.

References mesh.

virtual bool corrected ( ) const
inlinevirtual

Return true if this scheme uses an explicit correction.

Reimplemented from snGradScheme< Type >.

Definition at line 103 of file correctedSnGrad.H.

References correctedSnGrad< Type >::corrected().

Referenced by correctedSnGrad< Type >::corrected().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > fullGradCorrection ( const GeometricField< Type, fvPatchField, volMesh > &  vf) const

Return the explicit correction to the correctedSnGrad.

for the given field using the gradient of the field

Definition at line 45 of file correctedSnGrad.C.

References Foam::fvc::grad(), fvSchemes::gradScheme(), Foam::MULES::interpolate(), mesh, IOobject::name(), and surfaceInterpolation::nonOrthCorrectionVectors().

Here is the call graph for this function:

Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > correction ( const GeometricField< Type, fvPatchField, volMesh > &  vf) const
virtual

Return the explicit correction to the correctedSnGrad.

for the given field using the gradients of the field components

Reimplemented from snGradScheme< Type >.

Definition at line 71 of file correctedSnGrad.C.

References GeometricField< Type, PatchField, GeoMesh >::component(), DimensionedField< Type, GeoMesh >::dimensions(), IOobject::instance(), mesh, IOobject::name(), surfaceInterpolation::nonOrthDeltaCoeffs(), and GeometricField< Type, PatchField, GeoMesh >::replace().

Here is the call graph for this function:

tmp< surfaceScalarField > correction ( const volScalarField vsf) const
tmp< surfaceVectorField > correction ( const volVectorField vvf) const
Foam::tmp< Foam::surfaceScalarField > correction ( const volScalarField vsf) const

Definition at line 43 of file correctedSnGrads.C.

Foam::tmp< Foam::surfaceVectorField > correction ( const volVectorField vvf) const

Definition at line 54 of file correctedSnGrads.C.


The documentation for this class was generated from the following files: