phasePressureModel Class Reference

Particle-particle phase-pressure RAS model. More...

Inheritance diagram for phasePressureModel:
[legend]
Collaboration diagram for phasePressureModel:
[legend]

Public Member Functions

 TypeName ("phasePressure")
 Runtime type information. More...
 
 phasePressureModel (const volScalarField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const phaseModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
 Construct from components. More...
 
virtual ~phasePressureModel ()=default
 Destructor. More...
 
virtual bool read ()
 Re-read model coefficients if they have changed. More...
 
virtual tmp< volScalarFieldnuEff () const
 Return the effective viscosity. More...
 
virtual tmp< scalarFieldnuEff (const label patchi) const
 Return the effective viscosity on patch. More...
 
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate. More...
 
virtual tmp< volScalarFieldomega () const
 Return the specific dissipation rate. More...
 
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor. More...
 
virtual tmp< volScalarFieldpPrime () const
 Return the phase-pressure'. More...
 
virtual tmp< surfaceScalarFieldpPrimef () const
 Return the face-phase-pressure'. More...
 
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor. More...
 
virtual tmp< volSymmTensorFielddevRhoReff (const volVectorField &U) const
 Return the effective stress tensor based on a given velocity field. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual void correct ()
 Solve the kinetic theory equations and correct the viscosity. More...
 
 TypeName ("phasePressure")
 Runtime type information. More...
 
 phasePressureModel (const volScalarField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const phaseModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
 Construct from components. More...
 
virtual ~phasePressureModel ()=default
 Destructor. More...
 
virtual bool read ()
 Re-read model coefficients if they have changed. More...
 
virtual tmp< volScalarFieldnuEff () const
 Return the effective viscosity. More...
 
virtual tmp< scalarFieldnuEff (const label patchi) const
 Return the effective viscosity on patch. More...
 
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate. More...
 
virtual tmp< volScalarFieldomega () const
 Return the specific dissipation rate. More...
 
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor. More...
 
virtual tmp< volScalarFieldpPrime () const
 Return the phase-pressure'. More...
 
virtual tmp< surfaceScalarFieldpPrimef () const
 Return the face-phase-pressure'. More...
 
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor. More...
 
virtual tmp< volSymmTensorFielddevRhoReff (const volVectorField &U) const
 Return the effective stress tensor based on a given velocity field. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual void correct ()
 Solve the kinetic theory equations and correct the viscosity. More...
 
- Public Member Functions inherited from eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >
 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components. More...
 
virtual ~eddyViscosity ()=default
 Destructor. More...
 
virtual bool read ()=0
 Re-read model coefficients if they have changed. More...
 
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity. More...
 
virtual tmp< scalarFieldnut (const label patchi) const
 Return the turbulence viscosity on patch. More...
 
virtual tmp< volScalarFieldk () const=0
 Return the turbulence kinetic energy. More...
 
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor. More...
 
virtual void validate ()
 Validate the turbulence fields after construction. More...
 
virtual void correct ()=0
 Solve the turbulence equations and correct the turbulence viscosity. More...
 
- Public Member Functions inherited from linearViscousStress< BasicTurbulenceModel >
 linearViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components. More...
 
virtual ~linearViscousStress ()=default
 Destructor. More...
 
virtual bool read ()=0
 Re-read model coefficients if they have changed. More...
 
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor. More...
 
virtual tmp< volSymmTensorFielddevRhoReff (const volVectorField &U) const
 Return the effective stress tensor based on a given velocity field. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual void correct ()=0
 Solve the turbulence equations and correct the turbulence viscosity. More...
 
- Public Member Functions inherited from eddyViscosity< RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > > >
 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components. More...
 
virtual ~eddyViscosity ()=default
 Destructor. More...
 
virtual bool read ()=0
 Re-read model coefficients if they have changed. More...
 
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity. More...
 
virtual tmp< scalarFieldnut (const label patchi) const
 Return the turbulence viscosity on patch. More...
 
virtual tmp< volScalarFieldk () const=0
 Return the turbulence kinetic energy. More...
 
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor. More...
 
virtual void validate ()
 Validate the turbulence fields after construction. More...
 
virtual void correct ()=0
 Solve the turbulence equations and correct the turbulence viscosity. More...
 

Additional Inherited Members

- Public Types inherited from eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >
typedef BasicTurbulenceModel::alphaField alphaField
 
typedef BasicTurbulenceModel::rhoField rhoField
 
typedef BasicTurbulenceModel::transportModel transportModel
 
- Public Types inherited from linearViscousStress< BasicTurbulenceModel >
typedef BasicTurbulenceModel::alphaField alphaField
 
typedef BasicTurbulenceModel::rhoField rhoField
 
typedef BasicTurbulenceModel::transportModel transportModel
 
- Public Types inherited from eddyViscosity< RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > > >
typedef BasicTurbulenceModel::alphaField alphaField
 
typedef BasicTurbulenceModel::rhoField rhoField
 
typedef BasicTurbulenceModel::transportModel transportModel
 
virtual void correctNut ()=0
 
virtual void correctNut ()=0
 
- Protected Attributes inherited from eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >
volScalarField nut_
 
- Protected Attributes inherited from eddyViscosity< RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > > >
volScalarField nut_
 

Detailed Description

Particle-particle phase-pressure RAS model.

The derivative of the phase-pressure with respect to the phase-fraction is evaluated as

g0*min(exp(preAlphaExp*(alpha - alphaMax)), expMax)

The default model coefficients correspond to the following:

    phasePressureCoeffs
    {
        preAlphaExp     500;
        expMax          1000;
        alphaMax        0.62;
        g0              1000;
    }
Source files

Definition at line 73 of file phasePressureModel.H.

Constructor & Destructor Documentation

◆ phasePressureModel() [1/2]

phasePressureModel ( const volScalarField alpha,
const volScalarField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const phaseModel transport,
const word propertiesName = turbulenceModel::propertiesName,
const word type = typeName 
)

Construct from components.

◆ ~phasePressureModel() [1/2]

virtual ~phasePressureModel ( )
virtualdefault

Destructor.

◆ phasePressureModel() [2/2]

phasePressureModel ( const volScalarField alpha,
const volScalarField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const phaseModel transport,
const word propertiesName = turbulenceModel::propertiesName,
const word type = typeName 
)

Construct from components.

◆ ~phasePressureModel() [2/2]

virtual ~phasePressureModel ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName() [1/2]

TypeName ( "phasePressure"  )

Runtime type information.

◆ read() [1/2]

bool read ( )
virtual

Re-read model coefficients if they have changed.

Implements eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >.

Definition at line 77 of file phasePressureModel.C.

References phasePressureModel::read(), and dimensioned< Type >::readIfPresent().

Referenced by phasePressureModel::read().

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

◆ nuEff() [1/4]

virtual tmp< volScalarField > nuEff ( ) const
inlinevirtual

Return the effective viscosity.

Definition at line 142 of file phasePressureModel.H.

References eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >::nut().

Here is the call graph for this function:

◆ nuEff() [2/4]

virtual tmp< scalarField > nuEff ( const label  patchi) const
inlinevirtual

Return the effective viscosity on patch.

Definition at line 148 of file phasePressureModel.H.

References eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >::nut().

Here is the call graph for this function:

◆ k() [1/2]

Foam::tmp< Foam::volScalarField > k ( ) const
virtual

Return the turbulence kinetic energy.

Implements eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >.

Definition at line 100 of file phasePressureModel.C.

References NotImplemented.

◆ epsilon() [1/2]

Foam::tmp< Foam::volScalarField > epsilon ( ) const
virtual

Return the turbulence kinetic energy dissipation rate.

Definition at line 108 of file phasePressureModel.C.

References NotImplemented.

◆ omega() [1/2]

Foam::tmp< Foam::volScalarField > omega ( ) const
virtual

Return the specific dissipation rate.

Definition at line 116 of file phasePressureModel.C.

References NotImplemented.

◆ R() [1/2]

Foam::tmp< Foam::volSymmTensorField > R ( ) const
virtual

Return the Reynolds stress tensor.

Reimplemented from eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >.

Definition at line 124 of file phasePressureModel.C.

References IOobject::groupName(), IOobject::NO_READ, IOobject::NO_WRITE, and Foam::Zero.

Here is the call graph for this function:

◆ pPrime() [1/2]

Foam::tmp< Foam::volScalarField > pPrime ( ) const
virtual

Return the phase-pressure'.

(derivative of phase-pressure w.r.t. phase-fraction)

Definition at line 146 of file phasePressureModel.C.

References coupled(), Foam::exp(), forAll, Foam::min(), and tmp< T >::ref().

Here is the call graph for this function:

◆ pPrimef() [1/2]

Foam::tmp< Foam::surfaceScalarField > pPrimef ( ) const
virtual

Return the face-phase-pressure'.

(derivative of phase-pressure w.r.t. phase-fraction)

Definition at line 174 of file phasePressureModel.C.

References coupled(), Foam::exp(), forAll, Foam::fvc::interpolate(), Foam::min(), and tmp< T >::ref().

Here is the call graph for this function:

◆ devRhoReff() [1/4]

Foam::tmp< Foam::volSymmTensorField > devRhoReff ( ) const
virtual

Return the effective stress tensor.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 202 of file phasePressureModel.C.

◆ devRhoReff() [2/4]

Foam::tmp< Foam::volSymmTensorField > devRhoReff ( const volVectorField U) const
virtual

Return the effective stress tensor based on a given velocity field.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 209 of file phasePressureModel.C.

References IOobject::groupName(), IOobject::NO_READ, IOobject::NO_WRITE, U, and Foam::Zero.

Here is the call graph for this function:

◆ divDevRhoReff() [1/2]

Foam::tmp< Foam::fvVectorMatrix > divDevRhoReff ( volVectorField U) const
virtual

Return the source term for the momentum equation.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 239 of file phasePressureModel.C.

References U.

◆ correct() [1/2]

void correct ( )
virtual

Solve the kinetic theory equations and correct the viscosity.

Implements eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >.

Definition at line 255 of file phasePressureModel.C.

◆ TypeName() [2/2]

TypeName ( "phasePressure"  )

Runtime type information.

◆ read() [2/2]

virtual bool read ( )
virtual

Re-read model coefficients if they have changed.

Implements eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >.

◆ nuEff() [3/4]

virtual tmp< volScalarField > nuEff ( ) const
inlinevirtual

Return the effective viscosity.

Definition at line 146 of file phasePressureModel.H.

References eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >::nut().

Here is the call graph for this function:

◆ nuEff() [4/4]

virtual tmp< scalarField > nuEff ( const label  patchi) const
inlinevirtual

Return the effective viscosity on patch.

Definition at line 152 of file phasePressureModel.H.

References eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >::nut().

Here is the call graph for this function:

◆ k() [2/2]

virtual tmp< volScalarField > k ( ) const
virtual

◆ epsilon() [2/2]

virtual tmp< volScalarField > epsilon ( ) const
virtual

Return the turbulence kinetic energy dissipation rate.

◆ omega() [2/2]

virtual tmp< volScalarField > omega ( ) const
virtual

Return the specific dissipation rate.

◆ R() [2/2]

virtual tmp< volSymmTensorField > R ( ) const
virtual

Return the Reynolds stress tensor.

Reimplemented from eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >.

◆ pPrime() [2/2]

virtual tmp< volScalarField > pPrime ( ) const
virtual

Return the phase-pressure'.

(derivative of phase-pressure w.r.t. phase-fraction)

◆ pPrimef() [2/2]

virtual tmp< surfaceScalarField > pPrimef ( ) const
virtual

Return the face-phase-pressure'.

(derivative of phase-pressure w.r.t. phase-fraction)

◆ devRhoReff() [3/4]

virtual tmp< volSymmTensorField > devRhoReff ( ) const
virtual

Return the effective stress tensor.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

◆ devRhoReff() [4/4]

virtual tmp< volSymmTensorField > devRhoReff ( const volVectorField U) const
virtual

Return the effective stress tensor based on a given velocity field.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

◆ divDevRhoReff() [2/2]

virtual tmp< fvVectorMatrix > divDevRhoReff ( volVectorField U) const
virtual

Return the source term for the momentum equation.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

◆ correct() [2/2]

virtual void correct ( )
virtual

Solve the kinetic theory equations and correct the viscosity.

Implements eddyViscosity< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >.


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