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

gaussGrad< Type > Class Template Reference

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

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.

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.

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 53 of file gaussGrad.H.


Constructor & Destructor Documentation

gaussGrad ( const fvMesh &  mesh  )  [inline]

Construct from mesh.

Definition at line 80 of file gaussGrad.H.

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

Construct from Istream.

Definition at line 87 of file gaussGrad.H.


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 
) [inline, static]

Correct the boundary values of the gradient using the patchField.

snGrad functions

Definition at line 142 of file gaussGrad.C.


The documentation for this class was generated from the following files:
  • src/finiteVolume/finiteVolume/gradSchemes/gaussGrad/gaussGrad.H
  • src/finiteVolume/finiteVolume/gradSchemes/gaussGrad/gaussGrad.C
Copyright © 2000-2009 OpenCFD Ltd