FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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.

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.

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:
  • src/finiteVolume/finiteVolume/gradSchemes/gaussGrad/gaussGrad.H
  • src/finiteVolume/finiteVolume/gradSchemes/gaussGrad/gaussGrad.C