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...
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 rhoThermo & | thermo () const |
Return the thermophysical model. More... | |
virtual rhoThermo & | thermo () |
Access the thermophysical model. More... | |
virtual const rhoFluidThermo & | fluidThermo () const |
Return the thermophysical model. More... | |
virtual rhoFluidThermo & | fluidThermo () |
Access the thermophysical model. More... | |
virtual const volScalarField & | rho () const |
Return the density field. More... | |
virtual volScalarField & | rho () |
Access the the density field. More... | |
virtual tmp< volScalarField > | mu () const |
Return the laminar dynamic viscosity. More... | |
virtual tmp< scalarField > | mu (const label patchi) const |
Return the laminar dynamic viscosity on a patch. More... | |
virtual tmp< volScalarField > | nu () const |
Return the laminar kinematic viscosity. More... | |
virtual tmp< scalarField > | nu (const label patchi) const |
Return the laminar kinematic viscosity on a patch. More... | |
![]() | |
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... | |
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.
Definition at line 56 of file ThermoPhaseModel.H.
typedef ThermoModel thermoModel |
Definition at line 71 of file ThermoPhaseModel.H.
ThermoPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const bool | referencePhase, | ||
const label | index | ||
) |
Definition at line 32 of file ThermoPhaseModel.C.
References IOobject::groupName(), Foam::name(), ThermoPhaseModel< BasePhaseModel, ThermoModel >::thermo_, and Field< Type >::typeName.
|
virtual |
Destructor.
Definition at line 56 of file ThermoPhaseModel.C.
|
virtual |
Return whether the phase is incompressible.
Definition at line 63 of file ThermoPhaseModel.C.
|
virtual |
Return whether the phase is constant density.
Definition at line 70 of file ThermoPhaseModel.C.
|
virtual |
Return the thermophysical model.
Definition at line 78 of file ThermoPhaseModel.C.
|
virtual |
Access the thermophysical model.
Definition at line 86 of file ThermoPhaseModel.C.
|
virtual |
Return the thermophysical model.
Definition at line 94 of file ThermoPhaseModel.C.
|
virtual |
Access the thermophysical model.
Definition at line 102 of file ThermoPhaseModel.C.
|
virtual |
Return the density field.
Definition at line 110 of file ThermoPhaseModel.C.
|
virtual |
Access the the density field.
Definition at line 118 of file ThermoPhaseModel.C.
|
virtual |
Return the laminar dynamic viscosity.
Definition at line 126 of file ThermoPhaseModel.C.
|
virtual |
Return the laminar dynamic viscosity on a patch.
Definition at line 134 of file ThermoPhaseModel.C.
References patchi.
|
virtual |
Return the laminar kinematic viscosity.
Implements viscosity.
Definition at line 145 of file ThermoPhaseModel.C.
|
virtual |
Return the laminar kinematic viscosity on a patch.
Implements viscosity.
Definition at line 153 of file ThermoPhaseModel.C.
References patchi.
|
protected |
Thermophysical model.
Definition at line 66 of file ThermoPhaseModel.H.
Referenced by ThermoPhaseModel< BasePhaseModel, ThermoModel >::ThermoPhaseModel().