Public Member Functions | Protected Attributes | List of all members
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 hierarcy 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 >:
Inheritance graph
[legend]
Collaboration diagram for ThermoPhaseModel< BasePhaseModel, ThermoType >:
Collaboration graph
[legend]

Public Member Functions

 ThermoPhaseModel (const phaseSystem &fluid, const word &phaseName, const label index, const bool createThermo=true)
 
virtual ~ThermoPhaseModel ()
 Destructor. More...
 
virtual const rhoThermothermo () const
 Return const access to the thermophysical model. More...
 
virtual rhoThermothermo ()
 Return non-const access to 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
 Access the laminar dynamic viscosity. More...
 
virtual tmp< volScalarFieldnu () const
 Return the laminar kinematic viscosity. More...
 
virtual tmp< scalarFieldnu (const label patchi) const
 Access the laminar kinematic viscosity. More...
 
virtual tmp< volScalarFieldkappa () const
 Return the laminar thermal conductivity. More...
 
virtual tmp< scalarFieldkappa (const label patchi) const
 Access the laminar thermal conductivity. More...
 
virtual tmp< volScalarFieldkappaEff (const volScalarField &alphat) const
 Return the laminar thermal conductivity. More...
 
virtual tmp< scalarFieldkappaEff (const scalarField &alphat, const label patchi) const
 Access the laminar thermal conductivity. More...
 
virtual tmp< volScalarFieldalpha () const
 Return the thermal diffusivity for enthalpy. More...
 
virtual tmp< scalarFieldalpha (const label patchi) const
 Return the thermal diffusivity for enthalpy on a patch. More...
 
virtual tmp< volScalarFieldalphaEff (const volScalarField &alphat) const
 Return the thermal diffusivity for enthalpy. More...
 
virtual tmp< scalarFieldalphaEff (const scalarField &alphat, const label patchi) const
 Return the thermal diffusivity for enthalpy on a patch. More...
 

Protected Attributes

autoPtr< ThermoType > thermoPtr_
 Thermophysical model. More...
 
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 hierarcy for one which mirrors the functionality, but does not include a thermo model; an incompressible phase model, for example.

Source files

Definition at line 55 of file ThermoPhaseModel.H.

Constructor & Destructor Documentation

ThermoPhaseModel ( const phaseSystem fluid,
const word phaseName,
const label  index,
const bool  createThermo = true 
)
virtual ~ThermoPhaseModel ( )
virtual

Destructor.

Member Function Documentation

virtual const rhoThermo& thermo ( ) const
virtual

Return const access to the thermophysical model.

virtual rhoThermo& thermo ( )
virtual

Return non-const access to the thermophysical model.

for correction

virtual tmp<volScalarField> rho ( ) const
virtual

Return the density field.

virtual tmp<volScalarField> mu ( ) const
virtual

Return the laminar dynamic viscosity.

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

Access the laminar dynamic viscosity.

virtual tmp<volScalarField> nu ( ) const
virtual

Return the laminar kinematic viscosity.

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

Access the laminar kinematic viscosity.

virtual tmp<volScalarField> kappa ( ) const
virtual

Return the laminar thermal conductivity.

virtual tmp<scalarField> kappa ( const label  patchi) const
virtual

Access the laminar thermal conductivity.

virtual tmp<volScalarField> kappaEff ( const volScalarField alphat) const
virtual

Return the laminar thermal conductivity.

virtual tmp<scalarField> kappaEff ( const scalarField alphat,
const label  patchi 
) const
virtual

Access the laminar thermal conductivity.

virtual tmp<volScalarField> alpha ( ) const
virtual

Return the thermal diffusivity for enthalpy.

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

Return the thermal diffusivity for enthalpy on a patch.

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

Return the thermal diffusivity for enthalpy.

virtual tmp<scalarField> alphaEff ( const scalarField alphat,
const label  patchi 
) const
virtual

Return the thermal diffusivity for enthalpy on a patch.

Member Data Documentation

autoPtr<ThermoType> thermoPtr_
protected

Thermophysical model.

Definition at line 64 of file ThermoPhaseModel.H.

ThermoType* thermo_
protected

Thermophysical model.

Definition at line 67 of file ThermoPhaseModel.H.


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