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...

Inheritance diagram for ThermoPhaseModel< BasePhaseModel, ThermoType >:
[legend]
Collaboration diagram for ThermoPhaseModel< BasePhaseModel, ThermoType >:
[legend]

Public Member Functions

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

Protected Attributes

autoPtr< ThermoType > thermo_
 Thermophysical model. More...
 

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 57 of file ThermoPhaseModel.H.

Constructor & Destructor Documentation

◆ ThermoPhaseModel()

ThermoPhaseModel ( const phaseSystem fluid,
const word phaseName,
const label  index 
)

Definition at line 42 of file ThermoPhaseModel.C.

References IOobject::groupName(), Foam::name(), Foam::New(), ThermoPhaseModel< BasePhaseModel, ThermoType >::thermo_, and ensightPTraits< Type >::typeName.

Here is the call graph for this function:

◆ ~ThermoPhaseModel()

~ThermoPhaseModel
virtual

Destructor.

Definition at line 64 of file ThermoPhaseModel.C.

Member Function Documentation

◆ compressible()

bool compressible
virtual

Return whether the phase is compressible.

Definition at line 71 of file ThermoPhaseModel.C.

◆ thermo()

const Foam::rhoThermo & thermo
virtual

Return the thermophysical model.

Definition at line 79 of file ThermoPhaseModel.C.

◆ thermoRef()

Foam::rhoThermo & thermoRef
virtual

Access the thermophysical model.

Definition at line 87 of file ThermoPhaseModel.C.

◆ rho()

Return the density field.

Definition at line 95 of file ThermoPhaseModel.C.

◆ mu() [1/2]

Return the laminar dynamic viscosity.

Definition at line 103 of file ThermoPhaseModel.C.

◆ mu() [2/2]

Foam::tmp< Foam::scalarField > mu ( const label  patchi) const
virtual

Return the laminar dynamic viscosity on a patch.

Definition at line 111 of file ThermoPhaseModel.C.

◆ nu() [1/2]

Return the laminar kinematic viscosity.

Definition at line 122 of file ThermoPhaseModel.C.

◆ nu() [2/2]

Foam::tmp< Foam::scalarField > nu ( const label  patchi) const
virtual

Return the laminar kinematic viscosity on a patch.

Definition at line 130 of file ThermoPhaseModel.C.

◆ alpha() [1/2]

Foam::tmp< Foam::volScalarField > alpha
virtual

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

Definition at line 202 of file ThermoPhaseModel.C.

◆ alpha() [2/2]

Foam::tmp< Foam::scalarField > alpha ( const label  patchi) const
virtual

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

Definition at line 210 of file ThermoPhaseModel.C.

◆ kappa() [1/2]

Foam::tmp< Foam::volScalarField > kappa
virtual

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

Definition at line 141 of file ThermoPhaseModel.C.

◆ kappa() [2/2]

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 149 of file ThermoPhaseModel.C.

◆ alphahe() [1/2]

Foam::tmp< Foam::volScalarField > alphahe
virtual

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

Definition at line 160 of file ThermoPhaseModel.C.

◆ alphahe() [2/2]

Foam::tmp< Foam::scalarField > alphahe ( const label  patchi) const
virtual

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

Definition at line 168 of file ThermoPhaseModel.C.

◆ kappaEff() [1/2]

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 179 of file ThermoPhaseModel.C.

◆ kappaEff() [2/2]

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 190 of file ThermoPhaseModel.C.

◆ alphaEff() [1/2]

Foam::tmp< Foam::volScalarField > alphaEff ( const volScalarField alphat) const
virtual

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

Definition at line 221 of file ThermoPhaseModel.C.

◆ alphaEff() [2/2]

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 232 of file ThermoPhaseModel.C.

Member Data Documentation

◆ thermo_

autoPtr<ThermoType> thermo_
protected

Thermophysical model.

Definition at line 66 of file ThermoPhaseModel.H.

Referenced by ThermoPhaseModel< BasePhaseModel, ThermoType >::ThermoPhaseModel().


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