phasePressureModel Class Reference

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

Inheritance diagram for phasePressureModel:
Collaboration diagram for phasePressureModel:

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 viscosity &viscosity, const word &type=typeName)
 Construct from components. More...
 
 phasePressureModel (const phasePressureModel &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~phasePressureModel ()
 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 turbulence specific dissipation rate. More...
 
virtual tmp< volSymmTensorFieldsigma () const
 Return the stress tensor [m^2/s^2]. More...
 
virtual tmp< volScalarFieldpPrime () const
 Return the phase-pressure'. More...
 
virtual tmp< surfaceScalarFieldpPrimef () const
 Return the face-phase-pressure'. More...
 
virtual tmp< volSymmTensorFielddevTau () const
 Return the effective stress tensor. More...
 
virtual tmp< fvVectorMatrixdivDevTau (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...
 
void operator= (const phasePressureModel &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >
 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
 Construct from components. More...
 
virtual ~eddyViscosity ()
 Destructor. 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 void validate ()
 Validate the turbulence fields after construction. More...
 
- Public Member Functions inherited from linearViscousStress< BasicMomentumTransportModel >
 linearViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
 Construct from components. More...
 
virtual ~linearViscousStress ()
 Destructor. More...
 
virtual tmp< fvVectorMatrixdivDevTau (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 

Additional Inherited Members

- Public Types inherited from eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
- Public Types inherited from linearViscousStress< BasicMomentumTransportModel >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
- Protected Attributes inherited from eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >
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;
        g0              1000;
    }
Source files

Definition at line 68 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 viscosity viscosity,
const word type = typeName 
)

Construct from components.

Definition at line 30 of file phasePressureModel.C.

References DimensionedField< Type, GeoMesh >::dimensions(), eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >::nut_, and Foam::type().

Here is the call graph for this function:

◆ phasePressureModel() [2/2]

phasePressureModel ( const phasePressureModel )
delete

Disallow default bitwise copy construction.

◆ ~phasePressureModel()

~phasePressureModel ( )
virtual

Destructor.

Definition at line 74 of file phasePressureModel.C.

Member Function Documentation

◆ TypeName()

TypeName ( "phasePressure"  )

Runtime type information.

◆ read()

bool read ( )
virtual

Re-read model coefficients if they have changed.

Implements eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >.

Definition at line 80 of file phasePressureModel.C.

References Foam::read().

Here is the call graph for this function:

◆ nuEff() [1/2]

virtual tmp<volScalarField> nuEff ( ) const
inlinevirtual

Return the effective viscosity.

Definition at line 128 of file phasePressureModel.H.

References eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >::nut().

Here is the call graph for this function:

◆ nuEff() [2/2]

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

Return the effective viscosity on patch.

Definition at line 134 of file phasePressureModel.H.

References eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >::nut().

Here is the call graph for this function:

◆ k()

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

Return the turbulence kinetic energy.

Implements eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >.

Definition at line 102 of file phasePressureModel.C.

References NotImplemented.

◆ epsilon()

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

Return the turbulence kinetic energy dissipation rate.

Definition at line 110 of file phasePressureModel.C.

References NotImplemented.

◆ omega()

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

Return the turbulence specific dissipation rate.

Definition at line 118 of file phasePressureModel.C.

References NotImplemented.

◆ sigma()

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

Return the stress tensor [m^2/s^2].

Reimplemented from eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >.

Definition at line 126 of file phasePressureModel.C.

References IOobject::groupName(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::Zero.

Here is the call graph for this function:

◆ pPrime()

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 Foam::exp(), forAll, IOobject::groupName(), Foam::min(), GeometricField< Type, PatchField, GeoMesh >::New(), patchi, and tmp< T >::ref().

Here is the call graph for this function:

◆ pPrimef()

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

Return the face-phase-pressure'.

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

Definition at line 178 of file phasePressureModel.C.

References Foam::exp(), forAll, IOobject::groupName(), Foam::fvc::interpolate(), Foam::min(), GeometricField< Type, PatchField, GeoMesh >::New(), patchi, and tmp< T >::ref().

Here is the call graph for this function:

◆ devTau()

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

Return the effective stress tensor.

Reimplemented from linearViscousStress< BasicMomentumTransportModel >.

Definition at line 211 of file phasePressureModel.C.

References IOobject::groupName(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::Zero.

Here is the call graph for this function:

◆ divDevTau()

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

Return the source term for the momentum equation.

Reimplemented from linearViscousStress< BasicMomentumTransportModel >.

Definition at line 231 of file phasePressureModel.C.

References U.

◆ correct()

void correct ( )
virtual

Solve the kinetic theory equations and correct the viscosity.

Implements eddyViscosity< RASModel< phaseCompressible::momentumTransportModel > >.

Definition at line 247 of file phasePressureModel.C.

◆ operator=()

void operator= ( const phasePressureModel )
delete

Disallow default bitwise assignment.


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