Loading...
Searching...
No Matches
boundedDdtScheme< Type > Class Template Reference

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

#include <boundedDdtScheme.H>

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

Public Types

typedef ddtScheme< Type >::fluxFieldType fluxFieldType
Public Types inherited from ddtScheme< Type >
typedef GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMeshfluxFieldType

Public Member Functions

 TypeName ("bounded")
 Runtime type information.
 boundedDdtScheme (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< GeometricField< Type, fvPatchField, volMesh > > fvcDdt (const volScalarField &alpha, const volScalarField &rho, const GeometricField< Type, fvPatchField, volMesh > &psi)
tmp< fvMatrix< Type > > fvmDdt (const GeometricField< Type, fvPatchField, volMesh > &)
tmp< fvMatrix< Type > > fvmDdt (const dimensionedScalar &, const GeometricField< Type, fvPatchField, volMesh > &)
tmp< fvMatrix< Type > > fvmDdt (const volScalarField &, const GeometricField< Type, fvPatchField, volMesh > &)
tmp< fvMatrix< Type > > fvmDdt (const volScalarField &alpha, const volScalarField &rho, const GeometricField< Type, fvPatchField, volMesh > &psi)
tmp< fluxFieldTypefvcDdtUfCorr (const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
tmp< fluxFieldTypefvcDdtPhiCorr (const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
tmp< fluxFieldTypefvcDdtUfCorr (const volScalarField &rho, const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
tmp< fluxFieldTypefvcDdtPhiCorr (const volScalarField &rho, const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
tmp< surfaceScalarFieldmeshPhi (const GeometricField< Type, fvPatchField, volMesh > &)
tmp< surfaceScalarFieldfvcDdtUfCorr (const GeometricField< scalar, fvPatchField, volMesh > &U, const GeometricField< scalar, fvsPatchField, surfaceMesh > &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)
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 &is)
 Construct from mesh and Istream.
virtual ~ddtScheme ()=default
 Destructor.
const fvMeshmesh () const
 Return mesh reference.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > fvcDdt (const GeometricField< Type, fvsPatchField, surfaceMesh > &)
tmp< surfaceScalarFieldfvcDdtPhiCoeff (const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
tmp< surfaceScalarFieldfvcDdtPhiCoeffExperimental (const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
tmp< surfaceScalarFieldfvcDdtPhiCoeff (const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr, const volScalarField &rho)
tmp< surfaceScalarFieldfvcDdtPhiCoeff (const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
tmp< surfaceScalarFieldfvcDdtPhiCoeff (const GeometricField< Type, fvPatchField, volMesh > &rhoU, const fluxFieldType &phi, const volScalarField &rho)
Public Member Functions inherited from refCount
constexpr refCount () noexcept
 Default construct, initializing count to 0.
int use_count () const noexcept
 Return the current reference count.
bool unique () const noexcept
 Return true if the reference count is zero.
void operator++ () noexcept
 Increment the reference count.
void operator++ (int) noexcept
 Increment the reference count.
void operator-- () noexcept
 Decrement the reference count.
void operator-- (int) noexcept
 Decrement the reference count.
Public Member Functions inherited from ddtSchemeBase
 ddtSchemeBase ()
 ddtSchemeBase ()

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.
Static Public Attributes inherited from ddtSchemeBase
static bool experimentalDdtCorr
 Flag to use experimental ddtCorr from org version Default is off for backwards compatibility.
Protected Member Functions inherited from ddtScheme< Type >
 ddtScheme (const ddtScheme &)=delete
 No copy construct.
void operator= (const ddtScheme &)=delete
 No copy assignment.
Protected Attributes inherited from ddtScheme< Type >
const fvMeshmesh_
scalar ddtPhiCoeff_
 Input for fvcDdtPhiCoeff.

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 62 of file boundedDdtScheme.H.

Member Typedef Documentation

◆ fluxFieldType

template<class Type>
typedef ddtScheme<Type>::fluxFieldType fluxFieldType

Definition at line 170 of file boundedDdtScheme.H.

Constructor & Destructor Documentation

◆ boundedDdtScheme()

template<class Type>
boundedDdtScheme ( const fvMesh & mesh,
Istream & is )
inline

Construct from mesh and Istream.

Definition at line 97 of file boundedDdtScheme.H.

References ddtScheme< Type >::ddtScheme(), mesh(), and ddtScheme< Type >::New().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

template<class Type>
TypeName ( "bounded" )

Runtime type information.

◆ mesh()

template<class Type>
const fvMesh & mesh ( ) const
inline

Return mesh reference.

Definition at line 112 of file boundedDdtScheme.H.

References ddtScheme< Type >::mesh().

Referenced by boundedDdtScheme().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fvcDdt() [1/5]

template<class Type>
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt ( const dimensioned< Type > & dt)
virtual

Implements ddtScheme< Type >.

Definition at line 41 of file boundedDdtScheme.C.

◆ fvcDdt() [2/5]

template<class Type>
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt ( const GeometricField< Type, fvPatchField, volMesh > & vf)
virtual

Implements ddtScheme< Type >.

Definition at line 52 of file boundedDdtScheme.C.

References tmp< T >::ref().

Here is the call graph for this function:

◆ fvcDdt() [3/5]

template<class Type>
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt ( const dimensionedScalar & rho,
const GeometricField< Type, fvPatchField, volMesh > & vf )
virtual

Implements ddtScheme< Type >.

Definition at line 63 of file boundedDdtScheme.C.

References tmp< T >::ref(), and rho.

Here is the call graph for this function:

◆ fvcDdt() [4/5]

template<class Type>
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt ( const volScalarField & rho,
const GeometricField< Type, fvPatchField, volMesh > & vf )
virtual

Implements ddtScheme< Type >.

Definition at line 75 of file boundedDdtScheme.C.

References Foam::fvc::ddt(), tmp< T >::ref(), and rho.

Here is the call graph for this function:

◆ fvcDdt() [5/5]

template<class Type>
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt ( const volScalarField & alpha,
const volScalarField & rho,
const GeometricField< Type, fvPatchField, volMesh > & psi )
virtual

Implements ddtScheme< Type >.

Definition at line 87 of file boundedDdtScheme.C.

References alpha, Foam::fvc::ddt(), tmp< T >::ref(), and rho.

Here is the call graph for this function:

◆ fvmDdt() [1/4]

template<class Type>
tmp< fvMatrix< Type > > fvmDdt ( const GeometricField< Type, fvPatchField, volMesh > & vf)
virtual

Implements ddtScheme< Type >.

Definition at line 100 of file boundedDdtScheme.C.

References tmp< T >::ref().

Here is the call graph for this function:

◆ fvmDdt() [2/4]

template<class Type>
tmp< fvMatrix< Type > > fvmDdt ( const dimensionedScalar & rho,
const GeometricField< Type, fvPatchField, volMesh > & vf )
virtual

Implements ddtScheme< Type >.

Definition at line 111 of file boundedDdtScheme.C.

References tmp< T >::ref(), and rho.

Here is the call graph for this function:

◆ fvmDdt() [3/4]

template<class Type>
tmp< fvMatrix< Type > > fvmDdt ( const volScalarField & rho,
const GeometricField< Type, fvPatchField, volMesh > & vf )
virtual

Implements ddtScheme< Type >.

Definition at line 123 of file boundedDdtScheme.C.

References Foam::fvc::ddt(), tmp< T >::ref(), rho, and Foam::fvm::Sp().

Here is the call graph for this function:

◆ fvmDdt() [4/4]

template<class Type>
tmp< fvMatrix< Type > > fvmDdt ( const volScalarField & alpha,
const volScalarField & rho,
const GeometricField< Type, fvPatchField, volMesh > & psi )
virtual

Implements ddtScheme< Type >.

Definition at line 135 of file boundedDdtScheme.C.

References alpha, Foam::fvc::ddt(), tmp< T >::ref(), rho, and Foam::fvm::Sp().

Here is the call graph for this function:

◆ fvcDdtUfCorr() [1/4]

template<class Type>
tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtUfCorr ( const GeometricField< Type, fvPatchField, volMesh > & U,
const GeometricField< Type, fvsPatchField, surfaceMesh > & Uf )
virtual

Implements ddtScheme< Type >.

Definition at line 150 of file boundedDdtScheme.C.

References tmp< T >::ref(), U, and Uf.

Here is the call graph for this function:

◆ fvcDdtPhiCorr() [1/4]

template<class Type>
tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtPhiCorr ( const GeometricField< Type, fvPatchField, volMesh > & U,
const fluxFieldType & phi )
virtual

Implements ddtScheme< Type >.

Definition at line 162 of file boundedDdtScheme.C.

References phi, tmp< T >::ref(), and U.

Here is the call graph for this function:

◆ fvcDdtUfCorr() [2/4]

template<class Type>
tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtUfCorr ( const volScalarField & rho,
const GeometricField< Type, fvPatchField, volMesh > & U,
const GeometricField< Type, fvsPatchField, surfaceMesh > & Uf )
virtual

Implements ddtScheme< Type >.

Definition at line 174 of file boundedDdtScheme.C.

References tmp< T >::ref(), rho, U, and Uf.

Here is the call graph for this function:

◆ fvcDdtPhiCorr() [2/4]

template<class Type>
tmp< typename boundedDdtScheme< Type >::fluxFieldType > fvcDdtPhiCorr ( const volScalarField & rho,
const GeometricField< Type, fvPatchField, volMesh > & U,
const fluxFieldType & phi )
virtual

Implements ddtScheme< Type >.

Definition at line 187 of file boundedDdtScheme.C.

References phi, tmp< T >::ref(), rho, and U.

Here is the call graph for this function:

◆ meshPhi()

template<class Type>
tmp< surfaceScalarField > meshPhi ( const GeometricField< Type, fvPatchField, volMesh > & vf)
virtual

Implements ddtScheme< Type >.

Definition at line 199 of file boundedDdtScheme.C.

References tmp< T >::ref().

Here is the call graph for this function:

◆ fvcDdtUfCorr() [3/4]

tmp< surfaceScalarField > fvcDdtUfCorr ( const GeometricField< scalar, fvPatchField, volMesh > & U,
const GeometricField< scalar, fvsPatchField, surfaceMesh > & Uf )

References U, and Uf.

◆ fvcDdtPhiCorr() [3/4]

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

References phi, and U.

◆ fvcDdtUfCorr() [4/4]

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

References rho, U, and Uf.

◆ fvcDdtPhiCorr() [4/4]

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

References phi, rho, and U.


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