Loading...
Searching...
No Matches
ThermoPhaseModel< BasePhaseModel, ThermoType > Class Template Reference

Class which represents a phase with a thermodynamic model. Provides access to the thermodynamic variables. Note that the thermo model itself is not returned as this class could be substituted in the hierarchy for one which mirrors the functionality, but does not include a thermo model; an incompressible phase model, for example. More...

#include <ThermoPhaseModel.H>

Inheritance diagram for ThermoPhaseModel< BasePhaseModel, ThermoType >:
Collaboration diagram for ThermoPhaseModel< BasePhaseModel, ThermoType >:

Public Member Functions

 ThermoPhaseModel (const phaseSystem &fluid, const word &phaseName, const label index)
virtual ~ThermoPhaseModel ()
 Destructor.
virtual bool compressible () const
 Return whether the phase is compressible.
virtual const rhoThermothermo () const
 Return the thermophysical model.
virtual rhoThermothermoRef ()
 Access the thermophysical model.
virtual tmp< volScalarFieldrho () const
 Return the density field.
virtual tmp< volScalarFieldmu () const
 Return the laminar dynamic viscosity.
virtual tmp< scalarFieldmu (const label patchi) const
 Return the laminar dynamic viscosity on a patch.
virtual tmp< volScalarFieldnu () const
 Return the laminar kinematic viscosity.
virtual tmp< scalarFieldnu (const label patchi) const
 Return the laminar kinematic viscosity on a patch.
virtual tmp< volScalarFieldalpha () const
 Thermal diffusivity for enthalpy of mixture [kg/m/s].
virtual tmp< scalarFieldalpha (const label patchi) const
 Thermal diffusivity for enthalpy of mixture for patch [kg/m/s].
virtual tmp< volScalarFieldkappa () const
 Thermal diffusivity for temperature of mixture [J/m/s/K].
virtual tmp< scalarFieldkappa (const label patchi) const
 Thermal diffusivity for temperature of mixture.
virtual tmp< volScalarFieldalphahe () const
 Thermal diffusivity for energy of mixture [kg/m/s].
virtual tmp< scalarFieldalphahe (const label patchi) const
 Thermal diffusivity for energy of mixture for patch [kg/m/s].
virtual tmp< volScalarFieldkappaEff (const volScalarField &alphat) const
 Effective thermal turbulent diffusivity for temperature.
virtual tmp< scalarFieldkappaEff (const scalarField &alphat, const label patchi) const
 Effective thermal turbulent diffusivity for temperature.
virtual tmp< volScalarFieldalphaEff (const volScalarField &alphat) const
 Effective thermal turbulent diffusivity of mixture [kg/m/s].
virtual tmp< scalarFieldalphaEff (const scalarField &alphat, const label patchi) const
 Effective thermal turbulent diffusivity of mixture.

Protected Attributes

autoPtr< ThermoType > thermo_
 Thermophysical model.

Detailed Description

template<class BasePhaseModel, class ThermoType>
class Foam::ThermoPhaseModel< BasePhaseModel, ThermoType >

Class which represents a phase with a thermodynamic model. Provides access to the thermodynamic variables. Note that the thermo model itself is not returned as this class could be substituted in the hierarchy for one which mirrors the functionality, but does not include a thermo model; an incompressible phase model, for example.

Source files

Definition at line 53 of file ThermoPhaseModel.H.

Constructor & Destructor Documentation

◆ ThermoPhaseModel()

template<class BasePhaseModel, class ThermoType>
ThermoPhaseModel ( const phaseSystem & fluid,
const word & phaseName,
const label index )

Definition at line 35 of file ThermoPhaseModel.C.

References fluid, IOobject::groupName(), mesh, Foam::name(), name, Foam::New(), thermo_, and FieldBase::typeName.

Here is the call graph for this function:

◆ ~ThermoPhaseModel()

template<class BasePhaseModel, class ThermoType>
~ThermoPhaseModel ( )
virtual

Destructor.

Definition at line 57 of file ThermoPhaseModel.C.

Member Function Documentation

◆ compressible()

template<class BasePhaseModel, class ThermoType>
bool compressible ( ) const
virtual

Return whether the phase is compressible.

Definition at line 64 of file ThermoPhaseModel.C.

References thermo_.

◆ thermo()

template<class BasePhaseModel, class ThermoType>
const Foam::rhoThermo & thermo ( ) const
virtual

Return the thermophysical model.

Definition at line 72 of file ThermoPhaseModel.C.

References thermo_.

◆ thermoRef()

template<class BasePhaseModel, class ThermoType>
Foam::rhoThermo & thermoRef ( )
virtual

Access the thermophysical model.

Definition at line 80 of file ThermoPhaseModel.C.

References thermo_.

◆ rho()

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > rho ( ) const
virtual

Return the density field.

Definition at line 88 of file ThermoPhaseModel.C.

References thermo_.

◆ mu() [1/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > mu ( ) const
virtual

Return the laminar dynamic viscosity.

Definition at line 96 of file ThermoPhaseModel.C.

References thermo_.

◆ mu() [2/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::scalarField > mu ( const label patchi) const
virtual

Return the laminar dynamic viscosity on a patch.

Definition at line 104 of file ThermoPhaseModel.C.

References thermo_.

◆ nu() [1/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > nu ( ) const
virtual

Return the laminar kinematic viscosity.

Definition at line 115 of file ThermoPhaseModel.C.

References thermo_.

◆ nu() [2/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::scalarField > nu ( const label patchi) const
virtual

Return the laminar kinematic viscosity on a patch.

Definition at line 123 of file ThermoPhaseModel.C.

References thermo_.

◆ alpha() [1/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > alpha ( ) const
virtual

Thermal diffusivity for enthalpy of mixture [kg/m/s].

Definition at line 195 of file ThermoPhaseModel.C.

References thermo_.

◆ alpha() [2/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::scalarField > alpha ( const label patchi) const
virtual

Thermal diffusivity for enthalpy of mixture for patch [kg/m/s].

Definition at line 203 of file ThermoPhaseModel.C.

References thermo_.

◆ kappa() [1/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > kappa ( ) const
virtual

Thermal diffusivity for temperature of mixture [J/m/s/K].

Definition at line 134 of file ThermoPhaseModel.C.

References thermo_.

◆ kappa() [2/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::scalarField > kappa ( const label patchi) const
virtual

Thermal diffusivity for temperature of mixture.

for patch [J/m/s/K]

Definition at line 142 of file ThermoPhaseModel.C.

References thermo_.

◆ alphahe() [1/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > alphahe ( ) const
virtual

Thermal diffusivity for energy of mixture [kg/m/s].

Definition at line 153 of file ThermoPhaseModel.C.

References thermo_.

◆ alphahe() [2/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::scalarField > alphahe ( const label patchi) const
virtual

Thermal diffusivity for energy of mixture for patch [kg/m/s].

Definition at line 161 of file ThermoPhaseModel.C.

References thermo_.

◆ kappaEff() [1/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > kappaEff ( const volScalarField & alphat) const
virtual

Effective thermal turbulent diffusivity for temperature.

of mixture [J/m/s/K]

Definition at line 172 of file ThermoPhaseModel.C.

References thermo_.

◆ kappaEff() [2/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::scalarField > kappaEff ( const scalarField & alphat,
const label patchi ) const
virtual

Effective thermal turbulent diffusivity for temperature.

of mixture for patch [J/m/s/K]

Definition at line 183 of file ThermoPhaseModel.C.

References thermo_.

◆ alphaEff() [1/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::volScalarField > alphaEff ( const volScalarField & alphat) const
virtual

Effective thermal turbulent diffusivity of mixture [kg/m/s].

Definition at line 214 of file ThermoPhaseModel.C.

References thermo_.

◆ alphaEff() [2/2]

template<class BasePhaseModel, class ThermoType>
Foam::tmp< Foam::scalarField > alphaEff ( const scalarField & alphat,
const label patchi ) const
virtual

Effective thermal turbulent diffusivity of mixture.

for patch [kg/m/s]

Definition at line 225 of file ThermoPhaseModel.C.

References thermo_.

Member Data Documentation

◆ thermo_

template<class BasePhaseModel, class ThermoType>
autoPtr<ThermoType> thermo_
protected

The documentation for this class was generated from the following files:
  • src/phaseSystemModels/reactingEuler/multiphaseSystem/phaseModel/ThermoPhaseModel/ThermoPhaseModel.H
  • src/phaseSystemModels/reactingEuler/multiphaseSystem/phaseModel/ThermoPhaseModel/ThermoPhaseModel.C