Public Member Functions | Private Member Functions | Private Attributes
CentredFitSnGradScheme< Type, Polynomial, Stencil > Class Template Reference
Inheritance diagram for CentredFitSnGradScheme< Type, Polynomial, Stencil >:
Inheritance graph
[legend]
Collaboration diagram for CentredFitSnGradScheme< Type, Polynomial, Stencil >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("CentredFitSnGradScheme")
 Runtime type information. More...
 
 CentredFitSnGradScheme (const fvMesh &mesh, Istream &is)
 Construct from mesh and Istream. 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...
 
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction (const GeometricField< Type, fvPatchField, volMesh > &vf) const
 Return the explicit correction to the face-interpolate. More...
 
- 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...
 

Private Member Functions

 CentredFitSnGradScheme (const CentredFitSnGradScheme &)
 Disallow default bitwise copy construct. More...
 
void operator= (const CentredFitSnGradScheme &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const scalar linearLimitFactor_
 Factor the fit is allowed to deviate from linear. More...
 
const scalar centralWeight_
 Weights for central stencil. 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 Polynomial, class Stencil>
class Foam::fv::CentredFitSnGradScheme< Type, Polynomial, Stencil >

Definition at line 53 of file CentredFitSnGradScheme.H.

Constructor & Destructor Documentation

◆ CentredFitSnGradScheme() [1/2]

CentredFitSnGradScheme ( const CentredFitSnGradScheme< Type, Polynomial, Stencil > &  )
private

Disallow default bitwise copy construct.

◆ CentredFitSnGradScheme() [2/2]

CentredFitSnGradScheme ( const fvMesh mesh,
Istream is 
)
inline

Construct from mesh and Istream.

Definition at line 86 of file CentredFitSnGradScheme.H.

Member Function Documentation

◆ operator=()

void operator= ( const CentredFitSnGradScheme< Type, Polynomial, Stencil > &  )
private

Disallow default bitwise assignment.

◆ TypeName()

TypeName ( "CentredFitSnGradScheme< Type, Polynomial, Stencil >"  )

Runtime type information.

◆ deltaCoeffs()

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 98 of file CentredFitSnGradScheme.H.

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

Here is the call graph for this function:

◆ corrected()

virtual bool corrected ( ) const
inlinevirtual

Return true if this scheme uses an explicit correction.

Reimplemented from snGradScheme< Type >.

Definition at line 106 of file CentredFitSnGradScheme.H.

◆ correction()

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

Field Documentation

◆ linearLimitFactor_

const scalar linearLimitFactor_
private

Factor the fit is allowed to deviate from linear.

This limits the amount of high-order correction and increases stability on bad meshes

Definition at line 62 of file CentredFitSnGradScheme.H.

Referenced by CentredFitSnGradScheme< Type, Polynomial, Stencil >::correction().

◆ centralWeight_

const scalar centralWeight_
private

Weights for central stencil.

Definition at line 65 of file CentredFitSnGradScheme.H.

Referenced by CentredFitSnGradScheme< Type, Polynomial, Stencil >::correction().


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