ThermoPhaseModel< BasePhaseModel, ThermoModel > 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, ThermoModel >:
Collaboration diagram for ThermoPhaseModel< BasePhaseModel, ThermoModel >:

Public Types

typedef ThermoModel thermoModel
 

Public Member Functions

 ThermoPhaseModel (const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
 
virtual ~ThermoPhaseModel ()
 Destructor. More...
 
virtual bool incompressible () const
 Return whether the phase is incompressible. More...
 
virtual bool isochoric () const
 Return whether the phase is constant density. 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...
 
- Public Member Functions inherited from viscosity
 TypeName ("viscosity")
 Runtime type information. More...
 
 viscosity ()
 Construct. More...
 
 viscosity (const viscosity &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~viscosity ()
 Destructor. More...
 
void operator= (const viscosity &)=delete
 Disallow default bitwise assignment. More...
 

Protected Attributes

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

Detailed Description

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

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

Member Typedef Documentation

◆ thermoModel

typedef ThermoModel thermoModel

Definition at line 70 of file ThermoPhaseModel.H.

Constructor & Destructor Documentation

◆ ThermoPhaseModel()

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

◆ ~ThermoPhaseModel()

virtual ~ThermoPhaseModel ( )
virtual

Destructor.

Member Function Documentation

◆ incompressible()

virtual bool incompressible ( ) const
virtual

Return whether the phase is incompressible.

◆ isochoric()

virtual bool isochoric ( ) const
virtual

Return whether the phase is constant density.

◆ thermo()

virtual const rhoThermo& thermo ( ) const
virtual

Return the thermophysical model.

◆ thermoRef()

virtual rhoThermo& thermoRef ( )
virtual

Access the thermophysical model.

◆ rho()

virtual tmp<volScalarField> rho ( ) const
virtual

Return the density field.

◆ mu() [1/2]

virtual tmp<volScalarField> mu ( ) const
virtual

Return the laminar dynamic viscosity.

◆ mu() [2/2]

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

Return the laminar dynamic viscosity on a patch.

◆ nu() [1/2]

virtual tmp<volScalarField> nu ( ) const
virtual

Return the laminar kinematic viscosity.

Implements viscosity.

◆ nu() [2/2]

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

Return the laminar kinematic viscosity on a patch.

Implements viscosity.

Member Data Documentation

◆ thermo_

autoPtr<ThermoModel> thermo_
protected

Thermophysical model.

Definition at line 65 of file ThermoPhaseModel.H.


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