boundedDdtScheme< Type > Class Template Reference

Bounded form of the selected ddt scheme. More...

Inheritance diagram for boundedDdtScheme< Type >:
Collaboration diagram for boundedDdtScheme< Type >:

Public Types

typedef ddtScheme< Type >::fluxFieldType fluxFieldType
 
- Public Types inherited from ddtScheme< Type >
typedef SurfaceField< typename flux< Type >::typefluxFieldType
 

Public Member Functions

 TypeName ("bounded")
 Runtime type information. More...
 
 boundedDdtScheme (const fvMesh &mesh, Istream &is)
 Construct from mesh and Istream. More...
 
 boundedDdtScheme (const boundedDdtScheme &)=delete
 Disallow default bitwise copy construction. More...
 
const fvMeshmesh () const
 Return mesh reference. More...
 
virtual tmp< VolField< Type > > fvcDdt (const dimensioned< Type > &)
 
virtual tmp< VolField< Type > > fvcDdt (const VolField< Type > &)
 
virtual tmp< VolField< Type > > fvcDdt (const dimensionedScalar &, const VolField< Type > &)
 
virtual tmp< VolField< Type > > fvcDdt (const volScalarField &, const VolField< Type > &)
 
virtual tmp< VolField< Type > > fvcDdt (const volScalarField &alpha, const volScalarField &rho, const VolField< Type > &psi)
 
virtual tmp< fvMatrix< Type > > fvmDdt (const VolField< Type > &)
 
virtual tmp< fvMatrix< Type > > fvmDdt (const dimensionedScalar &, const VolField< Type > &)
 
virtual tmp< fvMatrix< Type > > fvmDdt (const volScalarField &, const VolField< Type > &)
 
virtual tmp< fvMatrix< Type > > fvmDdt (const volScalarField &alpha, const volScalarField &rho, const VolField< Type > &psi)
 
virtual tmp< fluxFieldTypefvcDdtUfCorr (const VolField< Type > &U, const SurfaceField< Type > &Uf)
 
virtual tmp< fluxFieldTypefvcDdtPhiCorr (const VolField< Type > &U, const fluxFieldType &phi)
 
virtual tmp< fluxFieldTypefvcDdtUfCorr (const volScalarField &rho, const VolField< Type > &U, const SurfaceField< Type > &rhoUf)
 
virtual tmp< fluxFieldTypefvcDdtPhiCorr (const volScalarField &rho, const VolField< Type > &U, const fluxFieldType &phi)
 
virtual tmp< fluxFieldTypefvcDdtUfCorr (const volScalarField &alpha, const volScalarField &rho, const VolField< Type > &U, const SurfaceField< Type > &Uf)
 
virtual tmp< fluxFieldTypefvcDdtPhiCorr (const volScalarField &alpha, const volScalarField &rho, const VolField< Type > &U, const fluxFieldType &phi)
 
virtual tmp< surfaceScalarFieldmeshPhi (const VolField< Type > &)
 
virtual tmp< scalarFieldmeshPhi (const VolField< Type > &, const label patchi)
 
void operator= (const boundedDdtScheme &)=delete
 Disallow default bitwise assignment. More...
 
tmp< surfaceScalarFieldfvcDdtUfCorr (const VolField< scalar > &U, const SurfaceField< scalar > &Uf)
 
tmp< surfaceScalarFieldfvcDdtPhiCorr (const volScalarField &U, const surfaceScalarField &phi)
 
tmp< surfaceScalarFieldfvcDdtUfCorr (const volScalarField &rho, const volScalarField &U, const surfaceScalarField &Uf)
 
tmp< surfaceScalarFieldfvcDdtPhiCorr (const volScalarField &rho, const volScalarField &U, const surfaceScalarField &phi)
 
tmp< surfaceScalarFieldfvcDdtUfCorr (const volScalarField &alpha, const volScalarField &rho, const volScalarField &U, const surfaceScalarField &Uf)
 
tmp< surfaceScalarFieldfvcDdtPhiCorr (const volScalarField &alpha, const volScalarField &rho, const volScalarField &U, const surfaceScalarField &phi)
 
- Public Member Functions inherited from ddtScheme< Type >
virtual const wordtype () const =0
 Runtime type information. More...
 
 declareRunTimeSelectionTable (tmp, ddtScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
 
 ddtScheme (const fvMesh &mesh)
 Construct from mesh. More...
 
 ddtScheme (const fvMesh &mesh, Istream &)
 Construct from mesh and Istream. More...
 
 ddtScheme (const ddtScheme &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~ddtScheme ()
 Destructor. More...
 
const fvMeshmesh () const
 Return mesh reference. More...
 
virtual tmp< SurfaceField< Type > > fvcDdt (const SurfaceField< Type > &)
 
virtual tmp< surfaceScalarFieldfvcDdtPhiCoeff (const VolField< Type > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
 
virtual tmp< surfaceScalarFieldfvcDdtPhiCoeff (const VolField< Type > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr, const volScalarField &rho)
 
virtual tmp< surfaceScalarFieldfvcDdtPhiCoeff (const VolField< Type > &U, const fluxFieldType &phi)
 
virtual tmp< surfaceScalarFieldfvcDdtPhiCoeff (const VolField< Type > &U, const fluxFieldType &phi, const volScalarField &rho)
 
void operator= (const ddtScheme &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from refCount
int count () const
 Return the current reference count. More...
 
bool unique () const
 Return true if the reference count is zero. More...
 
void operator++ ()
 Increment the reference count. More...
 
void operator++ (int)
 Increment the reference count. More...
 
void operator-- ()
 Decrement the reference count. More...
 
void operator-- (int)
 Decrement the reference count. More...
 
void operator= (const refCount &)=delete
 Disallow bitwise assignment. More...
 

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. More...
 
- Protected Member Functions inherited from refCount
 refCount ()
 Construct null initialising count to 0. More...
 
 refCount (const refCount &)=delete
 Disallow copy. More...
 
- Protected Attributes inherited from ddtScheme< Type >
const fvMeshmesh_
 

Detailed Description

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

Bounded form of the selected ddt scheme.

Boundedness is achieved by subtracting ddt(phi)*vf or Sp(ddt(rho), vf) which is non-conservative if ddt(rho) != 0 but conservative otherwise.

Can be used for the ddt of bounded scalar properties to improve stability if insufficient convergence of the pressure equation causes temporary divergence of the flux field.

Source files

Definition at line 61 of file boundedDdtScheme.H.

Member Typedef Documentation

◆ fluxFieldType

Definition at line 153 of file boundedDdtScheme.H.

Constructor & Destructor Documentation

◆ boundedDdtScheme() [1/2]

boundedDdtScheme ( const fvMesh mesh,
Istream is 
)
inline

Construct from mesh and Istream.

Definition at line 79 of file boundedDdtScheme.H.

◆ boundedDdtScheme() [2/2]

boundedDdtScheme ( const boundedDdtScheme< Type > &  )
delete

Disallow default bitwise copy construction.

Member Function Documentation

◆ TypeName()

TypeName ( "bounded"  )

Runtime type information.

◆ mesh()

const fvMesh& mesh ( ) const
inline

Return mesh reference.

Definition at line 95 of file boundedDdtScheme.H.

References ddtScheme< Type >::mesh().

Here is the call graph for this function:

◆ fvcDdt() [1/5]

tmp< VolField< Type > > fvcDdt ( const dimensioned< Type > &  dt)
virtual

Implements ddtScheme< Type >.

Definition at line 46 of file boundedDdtScheme.C.

◆ fvcDdt() [2/5]

tmp< VolField< Type > > fvcDdt ( const VolField< Type > &  vf)
virtual

Implements ddtScheme< Type >.

Definition at line 57 of file boundedDdtScheme.C.

◆ fvcDdt() [3/5]

tmp< VolField< Type > > fvcDdt ( const dimensionedScalar rho,
const VolField< Type > &  vf 
)
virtual

Implements ddtScheme< Type >.

Definition at line 68 of file boundedDdtScheme.C.

References rho.

◆ fvcDdt() [4/5]

tmp< VolField< Type > > fvcDdt ( const volScalarField rho,
const VolField< Type > &  vf 
)
virtual

Implements ddtScheme< Type >.

Definition at line 80 of file boundedDdtScheme.C.

References Foam::fvc::ddt(), and rho.

Here is the call graph for this function:

◆ fvcDdt() [5/5]

tmp< VolField< Type > > fvcDdt ( const volScalarField alpha,
const volScalarField rho,
const VolField< Type > &  psi 
)
virtual

Implements ddtScheme< Type >.

Definition at line 92 of file boundedDdtScheme.C.

References alpha(), Foam::fvc::ddt(), and rho.

Here is the call graph for this function:

◆ fvmDdt() [1/4]

tmp< fvMatrix< Type > > fvmDdt ( const VolField< Type > &  vf)
virtual

Implements ddtScheme< Type >.

Definition at line 105 of file boundedDdtScheme.C.

◆ fvmDdt() [2/4]

tmp< fvMatrix< Type > > fvmDdt ( const dimensionedScalar rho,
const VolField< Type > &  vf 
)
virtual

Implements ddtScheme< Type >.

Definition at line 116 of file boundedDdtScheme.C.

References rho.

◆ fvmDdt() [3/4]

tmp< fvMatrix< Type > > fvmDdt ( const volScalarField rho,
const VolField< Type > &  vf 
)
virtual

Implements ddtScheme< Type >.

Definition at line 128 of file boundedDdtScheme.C.

References Foam::fvc::ddt(), rho, and Foam::fvm::Sp().

Here is the call graph for this function:

◆ fvmDdt() [4/4]

tmp< fvMatrix< Type > > fvmDdt ( const volScalarField alpha,
const volScalarField rho,
const VolField< Type > &  psi 
)
virtual

Implements ddtScheme< Type >.

Definition at line 140 of file boundedDdtScheme.C.

References alpha(), Foam::fvc::ddt(), rho, and Foam::fvm::Sp().

Here is the call graph for this function:

◆ fvcDdtUfCorr() [1/6]

tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtUfCorr ( const VolField< Type > &  U,
const SurfaceField< Type > &  Uf 
)
virtual

Implements ddtScheme< Type >.

Definition at line 155 of file boundedDdtScheme.C.

References U.

◆ fvcDdtPhiCorr() [1/6]

tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtPhiCorr ( const VolField< Type > &  U,
const fluxFieldType phi 
)
virtual

Implements ddtScheme< Type >.

Definition at line 167 of file boundedDdtScheme.C.

References U.

◆ fvcDdtUfCorr() [2/6]

tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtUfCorr ( const volScalarField rho,
const VolField< Type > &  U,
const SurfaceField< Type > &  rhoUf 
)
virtual

Implements ddtScheme< Type >.

Definition at line 179 of file boundedDdtScheme.C.

References rho, and U.

◆ fvcDdtPhiCorr() [2/6]

tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtPhiCorr ( const volScalarField rho,
const VolField< Type > &  U,
const fluxFieldType phi 
)
virtual

Implements ddtScheme< Type >.

Definition at line 192 of file boundedDdtScheme.C.

References rho, and U.

◆ fvcDdtUfCorr() [3/6]

virtual tmp<fluxFieldType> fvcDdtUfCorr ( const volScalarField alpha,
const volScalarField rho,
const VolField< Type > &  U,
const SurfaceField< Type > &  Uf 
)
inlinevirtual

Implements ddtScheme< Type >.

Definition at line 181 of file boundedDdtScheme.H.

References NotImplemented, and GeometricField< Type, PatchField, GeoMesh >::null().

Here is the call graph for this function:

◆ fvcDdtPhiCorr() [3/6]

virtual tmp<fluxFieldType> fvcDdtPhiCorr ( const volScalarField alpha,
const volScalarField rho,
const VolField< Type > &  U,
const fluxFieldType phi 
)
inlinevirtual

Implements ddtScheme< Type >.

Definition at line 193 of file boundedDdtScheme.H.

References NotImplemented, and GeometricField< Type, PatchField, GeoMesh >::null().

Here is the call graph for this function:

◆ meshPhi() [1/2]

tmp< surfaceScalarField > meshPhi ( const VolField< Type > &  vf)
virtual

Implements ddtScheme< Type >.

Definition at line 204 of file boundedDdtScheme.C.

◆ meshPhi() [2/2]

tmp< scalarField > meshPhi ( const VolField< Type > &  vf,
const label  patchi 
)
virtual

Implements ddtScheme< Type >.

Definition at line 214 of file boundedDdtScheme.C.

References patchi.

◆ operator=()

void operator= ( const boundedDdtScheme< Type > &  )
delete

Disallow default bitwise assignment.

◆ fvcDdtUfCorr() [4/6]

tmp< surfaceScalarField > fvcDdtUfCorr ( const VolField< scalar > &  U,
const SurfaceField< scalar > &  Uf 
)

◆ fvcDdtPhiCorr() [4/6]

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

◆ fvcDdtUfCorr() [5/6]

tmp< surfaceScalarField > fvcDdtUfCorr ( const volScalarField rho,
const volScalarField U,
const surfaceScalarField Uf 
)

◆ fvcDdtPhiCorr() [5/6]

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

◆ fvcDdtUfCorr() [6/6]

tmp< surfaceScalarField > fvcDdtUfCorr ( const volScalarField alpha,
const volScalarField rho,
const volScalarField U,
const surfaceScalarField Uf 
)

◆ fvcDdtPhiCorr() [6/6]

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

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