FreeFOAM The Cross-Platform CFD Toolkit
gaussGrad< Type > Class Template Reference

Basic second-order gradient scheme using face-interpolation and Gauss' theorem. More...

#include <finiteVolume/gaussGrad.H>


Detailed Description

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

Basic second-order gradient scheme using face-interpolation and Gauss' theorem.

Source files

Definition at line 58 of file gaussGrad.H.

+ Inheritance diagram for gaussGrad< Type >:
+ Collaboration diagram for gaussGrad< Type >:

List of all members.

Public Member Functions

 TypeName ("Gauss")
 Runtime type information.
 gaussGrad (const fvMesh &mesh)
 Construct from mesh.
 gaussGrad (const fvMesh &mesh, Istream &is)
 Construct from Istream.
tmp< GeometricField< typename
outerProduct< vector, Type >
::type, fvPatchField, volMesh > > 
grad (const GeometricField< Type, fvPatchField, volMesh > &) const
 Return the gradient of the given field calculated.
- Public Member Functions inherited from gradScheme< Type >
virtual const wordtype () const =0
 Runtime type information.
 declareRunTimeSelectionTable (tmp, gradScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
 gradScheme (const fvMesh &mesh)
 Construct from mesh.
virtual ~gradScheme ()
const fvMeshmesh () const
 Return mesh reference.
- Public Member Functions inherited from refCount
 refCount ()
 Construct null with zero count.
int count () const
 Return the reference count.
bool okToDelete () const
 Return true if the reference count is zero.
void resetRefCount ()
 Reset the reference count to zero.
void operator++ ()
 Increment the reference count.
void operator++ (int)
 Increment the reference count.
void operator-- ()
 Decrement the reference count.
void operator-- (int)
 Decrement the reference count.

Static Public Member Functions

static tmp< GeometricField
< typename outerProduct
< vector, Type >::type,
fvPatchField, volMesh > > 
grad (const GeometricField< Type, fvsPatchField, surfaceMesh > &)
 Return the gradient of the given field.
static void correctBoundaryConditions (const GeometricField< Type, fvPatchField, volMesh > &, GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > &)
 Correct the boundary values of the gradient using the patchField.
- Static Public Member Functions inherited from gradScheme< Type >
static tmp< gradScheme< Type > > New (const fvMesh &mesh, Istream &schemeData)
 Return a pointer to a new gradScheme created on freestore.

Constructor & Destructor Documentation

gaussGrad ( const fvMesh mesh)
inline

Construct from mesh.

Definition at line 85 of file gaussGrad.H.

gaussGrad ( const fvMesh mesh,
Istream is 
)
inline

Construct from Istream.

Definition at line 92 of file gaussGrad.H.

References IOstream::eof(), gradScheme< Type >::mesh(), and gradScheme< Type >::New().


Member Function Documentation

TypeName ( "Gauss"  )

Runtime type information.

static tmp< GeometricField <typename outerProduct<vector, Type>::type, fvPatchField, volMesh> > grad ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  )
static

Return the gradient of the given field.

calculated using Gauss' theorem on the given surface field

tmp< GeometricField <typename outerProduct<vector, Type>::type, fvPatchField, volMesh> > grad ( const GeometricField< Type, fvPatchField, volMesh > &  ) const
virtual

Return the gradient of the given field calculated.

using Gauss' theorem on the interpolated field

Implements gradScheme< Type >.

void correctBoundaryConditions ( const GeometricField< Type, fvPatchField, volMesh > &  vsf,
GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > &  gGrad 
)
static

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