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

Abstract base class for div schemes. More...

#include <finiteVolume/divScheme.H>


Detailed Description

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

Abstract base class for div schemes.

Source files

Definition at line 65 of file divScheme.H.

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

List of all members.

Public Member Functions

virtual const wordtype () const =0
 Runtime type information.
 declareRunTimeSelectionTable (tmp, divScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
 divScheme (const fvMesh &mesh)
 Construct from mesh.
 divScheme (const fvMesh &mesh, Istream &is)
 Construct from mesh and Istream.
virtual ~divScheme ()
const fvMeshmesh () const
 Return mesh reference.
virtual tmp< GeometricField
< typename innerProduct
< vector, Type >::type,
fvPatchField, volMesh > > 
fvcDiv (const GeometricField< Type, fvPatchField, volMesh > &)=0
- 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< divScheme< Type > > New (const fvMesh &mesh, Istream &schemeData)
 Return a pointer to a new divScheme created on freestore.

Protected Member Functions

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

Protected Attributes

const fvMeshmesh_
tmp
< surfaceInterpolationScheme
< Type > > 
tinterpScheme_

Constructor & Destructor Documentation

divScheme ( const divScheme< Type > &  )
protected

Disallow copy construct.

divScheme ( const fvMesh mesh)
inline

Construct from mesh.

Definition at line 108 of file divScheme.H.

divScheme ( const fvMesh mesh,
Istream is 
)
inline

Construct from mesh and Istream.

Definition at line 115 of file divScheme.H.

~divScheme ( )
virtual

Definition at line 95 of file divScheme.C.


Member Function Documentation

void operator= ( const divScheme< Type > &  )
protected

Disallow default bitwise assignment.

virtual const word& type ( ) const
pure virtual

Runtime type information.

declareRunTimeSelectionTable ( tmp  ,
divScheme< Type >  ,
Istream  ,
(const fvMesh &mesh, Istream &schemeData)  ,
(mesh, schemeData)   
)
tmp< divScheme< Type > > New ( const fvMesh mesh,
Istream schemeData 
)
static

Return a pointer to a new divScheme created on freestore.

Definition at line 47 of file divScheme.C.

References Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, Foam::Info, and mesh.

const fvMesh& mesh ( ) const
inline

Return mesh reference.

Definition at line 140 of file divScheme.H.

References divScheme< Type >::mesh_.

virtual tmp< GeometricField <typename innerProduct<vector, Type>::type, fvPatchField, volMesh> > fvcDiv ( const GeometricField< Type, fvPatchField, volMesh > &  )
pure virtual

Implemented in gaussDivScheme< Type >.

Referenced by Foam::fvc::div().


Member Data Documentation

const fvMesh& mesh_
protected

Definition at line 74 of file divScheme.H.

Referenced by divScheme< Type >::mesh().

tmp<surfaceInterpolationScheme<Type> > tinterpScheme_
protected

Definition at line 75 of file divScheme.H.


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