Loading...
Searching...
No Matches
limitedSnGrad< Type > Class Template Reference

Surface gradient scheme with limited explicit non-orthogonal correction. More...

#include <limitedSnGrad.H>

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

Public Member Functions

 TypeName ("limited")
 Runtime type information.
 limitedSnGrad (const fvMesh &mesh)
 Construct from mesh.
 limitedSnGrad (const fvMesh &mesh, Istream &schemeData)
 Construct from mesh and data stream.
virtual ~limitedSnGrad ()=default
 Destructor.
virtual tmp< surfaceScalarFielddeltaCoeffs (const GeometricField< Type, fvPatchField, volMesh > &) const
 Return the interpolation weighting factors for the given field.
virtual bool corrected () const noexcept
 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 for the given field.
Public Member Functions inherited from snGradScheme< Type >
virtual const wordtype () 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 ()=default
 Destructor.
const fvMeshmesh () const
 Return const reference to mesh.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad (const GeometricField< Type, fvPatchField, volMesh > &) const
 Return the snGrad of the given cell field with explicit correction.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad (const tmp< GeometricField< Type, fvPatchField, volMesh > > &) const
 Return the snGrad of the given tmp cell field with explicit correction.
Public Member Functions inherited from refCount
constexpr refCount () noexcept
 Default construct, initializing count to 0.
int use_count () const noexcept
 Return the current reference count.
bool unique () const noexcept
 Return true if the reference count is zero.
void operator++ () noexcept
 Increment the reference count.
void operator++ (int) noexcept
 Increment the reference count.
void operator-- () noexcept
 Decrement the reference count.
void operator-- (int) noexcept
 Decrement the reference count.

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.
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 by using the given deltaCoeffs.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > sndGrad (const GeometricField< Type, fvPatchField, volMesh > &, const word &snGradName="sndGrad")
 Return the sndGrad of the given cell field.

Detailed Description

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

Surface gradient scheme with limited explicit 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 uncorrected snGrad, when set to 1 the full correction of the selected scheme is used and the scheme behaves as corrected snGrad, and when set to 0.5 the limiter is calculated such that the non-orthogonal component does not exceed the orthogonal component.

Usage
Minimal example by using system/fvSchemes:
snGradSchemes
{
    snGrad(<term>)       limited <corrected scheme> <coefficient>;

    // Backward compatibility
    snGrad(<term>)       limited <coefficient>;
}
Source files

Definition at line 75 of file limitedSnGrad.H.

Constructor & Destructor Documentation

◆ limitedSnGrad() [1/2]

template<class Type>
limitedSnGrad ( const fvMesh & mesh)
inline

Construct from mesh.

Definition at line 143 of file limitedSnGrad.H.

References snGradScheme< Type >::mesh().

Here is the call graph for this function:

◆ limitedSnGrad() [2/2]

template<class Type>
limitedSnGrad ( const fvMesh & mesh,
Istream & schemeData )
inline

Construct from mesh and data stream.

Definition at line 153 of file limitedSnGrad.H.

References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and snGradScheme< Type >::mesh().

Here is the call graph for this function:

◆ ~limitedSnGrad()

template<class Type>
virtual ~limitedSnGrad ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

template<class Type>
TypeName ( "limited" )

Runtime type information.

◆ deltaCoeffs()

template<class Type>
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 179 of file limitedSnGrad.H.

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

Referenced by correction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ corrected()

template<class Type>
virtual bool corrected ( ) const
inlinevirtualnoexcept

Return true if this scheme uses an explicit correction.

Reimplemented from snGradScheme< Type >.

Definition at line 190 of file limitedSnGrad.H.

References Foam::noexcept.

◆ correction()


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