OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

limitedSnGrad< Type > Class Template Reference

Central-difference snGrad scheme with limited non-orthogonal correction. More...

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

List of all members.


Public Member Functions

 TypeName ("limited")
 Runtime type information.
 limitedSnGrad (const fvMesh &mesh)
 Construct from mesh.
 limitedSnGrad (const fvMesh &mesh, Istream &is)
 Construct from mesh and data stream.
virtual ~limitedSnGrad ()
virtual tmp< surfaceScalarField > deltaCoeffs (const GeometricField< Type, fvPatchField, volMesh > &) const
 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 limitedSnGrad.

Detailed Description

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

Central-difference snGrad scheme with limited non-orthogonal correction.

The limiter is controlled by a coefficient with a value between 0 and 1 which when 0 switches the correction off and the scheme behaves as uncorrectedSnGrad, when set to 1 the full correction is applied and the scheme behaves as correctedSnGrad and when set to 0.5 the limiter is calculated such that the non-orthogonal contribution does not exceed the orthogonal part.

Source files

Definition at line 57 of file limitedSnGrad.H.


Constructor & Destructor Documentation

limitedSnGrad ( const fvMesh &  mesh  )  [inline]

Construct from mesh.

Definition at line 81 of file limitedSnGrad.H.

limitedSnGrad ( const fvMesh &  mesh,
Istream &  is 
) [inline]

Construct from mesh and data stream.

Definition at line 88 of file limitedSnGrad.H.

~limitedSnGrad (  )  [inline, virtual]

Definition at line 49 of file limitedSnGrad.C.


Member Function Documentation

TypeName ( "limited"   ) 

Runtime type information.

virtual tmp<surfaceScalarField> deltaCoeffs ( const GeometricField< Type, fvPatchField, volMesh > &   )  const [inline, virtual]

Return the interpolation weighting factors for the given field.

Implements snGradScheme< Type >.

Definition at line 115 of file limitedSnGrad.H.

virtual bool corrected (  )  const [inline, virtual]

Return true if this scheme uses an explicit correction.

Reimplemented from snGradScheme< Type >.

Definition at line 123 of file limitedSnGrad.H.

References surfaceInterpolation::deltaCoeffs(), and snGradScheme< Type >::mesh().

Here is the call graph for this function:

tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction ( const GeometricField< Type, fvPatchField, volMesh > &  vf  )  const [inline, virtual]

Return the explicit correction to the limitedSnGrad.

for the given field

Reimplemented from snGradScheme< Type >.

Definition at line 58 of file limitedSnGrad.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd