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

Second-oder CrankNicholson implicit ddt using the current and previous time-step fields as well as the previous time-step ddt. More...

#include <finiteVolume/CrankNicholsonDdtScheme.H>


Detailed Description

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

Second-oder CrankNicholson implicit ddt using the current and previous time-step fields as well as the previous time-step ddt.

Source files

Definition at line 56 of file CrankNicholsonDdtScheme.H.

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

List of all members.

Classes

class  DDt0Field
 Class to store the ddt0 fields on the objectRegistry for use in the.

Public Types

typedef ddtScheme< Type >
::fluxFieldType 
fluxFieldType
- Public Types inherited from ddtScheme< Type >

Public Member Functions

 TypeName ("CrankNicholson")
 Runtime type information.
 CrankNicholsonDdtScheme (const fvMesh &mesh)
 Construct from mesh.
 CrankNicholsonDdtScheme (const fvMesh &mesh, Istream &is)
 Construct from mesh and Istream.
const fvMeshmesh () const
 Return mesh reference.
tmp< GeometricField< Type,
fvPatchField, volMesh > > 
fvcDdt (const dimensioned< Type > &)
tmp< GeometricField< Type,
fvPatchField, volMesh > > 
fvcDdt (const GeometricField< Type, fvPatchField, volMesh > &)
tmp< GeometricField< Type,
fvPatchField, volMesh > > 
fvcDdt (const dimensionedScalar &, const GeometricField< Type, fvPatchField, volMesh > &)
tmp< GeometricField< Type,
fvPatchField, volMesh > > 
fvcDdt (const volScalarField &, const GeometricField< Type, fvPatchField, volMesh > &)
tmp< fvMatrix< Type > > fvmDdt (GeometricField< Type, fvPatchField, volMesh > &)
tmp< fvMatrix< Type > > fvmDdt (const dimensionedScalar &, GeometricField< Type, fvPatchField, volMesh > &)
tmp< fvMatrix< Type > > fvmDdt (const volScalarField &, GeometricField< Type, fvPatchField, volMesh > &)
tmp< fluxFieldTypefvcDdtPhiCorr (const volScalarField &rA, const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
tmp< fluxFieldTypefvcDdtPhiCorr (const volScalarField &rA, const volScalarField &rho, const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
tmp< surfaceScalarFieldmeshPhi (const GeometricField< Type, fvPatchField, volMesh > &)
template<>
tmp< surfaceScalarFieldfvcDdtPhiCorr (const volScalarField &rA, const volScalarField &U, const surfaceScalarField &phi)
template<>
tmp< surfaceScalarFieldfvcDdtPhiCorr (const volScalarField &rA, const volScalarField &rho, const volScalarField &U, const surfaceScalarField &phi)
- Public Member Functions inherited from ddtScheme< Type >
virtual const wordtype () const =0
 Runtime type information.
 declareRunTimeSelectionTable (tmp, ddtScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
 ddtScheme (const fvMesh &mesh)
 Construct from mesh.
 ddtScheme (const fvMesh &mesh, Istream &)
 Construct from mesh and Istream.
virtual ~ddtScheme ()
tmp< surfaceScalarFieldfvcDdtPhiCoeff (const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
tmp< surfaceScalarFieldfvcDdtPhiCoeff (const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
tmp< surfaceScalarFieldfvcDdtPhiCoeff (const volScalarField &rho, const GeometricField< Type, fvPatchField, volMesh > &rhoU, const fluxFieldType &phi)
- 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.

Additional Inherited Members

- Static Public Member Functions inherited from ddtScheme< Type >
static tmp< ddtScheme< Type > > New (const fvMesh &mesh, Istream &schemeData)
 Return a pointer to a new ddtScheme created on freestore.
- Protected Member Functions inherited from ddtScheme< Type >
 ddtScheme (const ddtScheme &)
 Disallow copy construct.
void operator= (const ddtScheme &)
 Disallow default bitwise assignment.
- Protected Attributes inherited from ddtScheme< Type >
const fvMeshmesh_

Member Typedef Documentation

Reimplemented from ddtScheme< Type >.

Definition at line 230 of file CrankNicholsonDdtScheme.H.


Constructor & Destructor Documentation

CrankNicholsonDdtScheme ( const fvMesh mesh)
inline

Construct from mesh.

Definition at line 158 of file CrankNicholsonDdtScheme.H.

CrankNicholsonDdtScheme ( const fvMesh mesh,
Istream is 
)
inline

Construct from mesh and Istream.

Definition at line 165 of file CrankNicholsonDdtScheme.H.

References Foam::exit(), Foam::FatalIOError, and FatalIOErrorIn.


Member Function Documentation

TypeName ( "CrankNicholson"  )

Runtime type information.

const fvMesh& mesh ( ) const
inline

Return mesh reference.

Reimplemented from ddtScheme< Type >.

Definition at line 186 of file CrankNicholsonDdtScheme.H.

tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt ( const dimensioned< Type > &  dt)
virtual
tmp< surfaceScalarField > meshPhi ( const GeometricField< Type, fvPatchField, volMesh > &  vf)
virtual

Implements ddtScheme< Type >.

Definition at line 1172 of file CrankNicholsonDdtScheme.C.

References Foam::dimVolume, and mesh.

tmp< surfaceScalarField > fvcDdtPhiCorr ( const volScalarField rA,
const volScalarField U,
const surfaceScalarField phi 
)
tmp< surfaceScalarField > fvcDdtPhiCorr ( const volScalarField rA,
const volScalarField rho,
const volScalarField U,
const surfaceScalarField phi 
)

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