Wrapper class providing run-time selection of thermophysicalProperties for the templated thermodynamics packages. More...
Public Member Functions | |
thermophysicalPropertiesSelector (const word &name) | |
Construct from name. More... | |
thermophysicalPropertiesSelector (const dictionary &dict) | |
Construct from dictionary. More... | |
const ThermophysicalProperties & | properties () const |
Return reference to the selected physical properties class. More... | |
scalar | W () const |
Molecular weight [kg/kmol]. More... | |
scalar | limit (const scalar T) const |
Limit the temperature to be in the range Tlow_ to Thigh_. More... | |
scalar | rho (scalar p, scalar T) const |
Liquid density [kg/m^3]. More... | |
scalar | psi (scalar p, scalar T) const |
Liquid compressibility rho/p [s^2/m^2]. More... | |
scalar | CpMCv (scalar p, scalar T) const |
Return (Cp - Cv) [J/(kg K]. More... | |
scalar | Cp (const scalar p, const scalar T) const |
Heat capacity at constant pressure [J/(kg K)]. More... | |
scalar | Ha (const scalar p, const scalar T) const |
Absolute Enthalpy [J/kg]. More... | |
scalar | Hs (const scalar p, const scalar T) const |
Sensible enthalpy [J/kg]. More... | |
scalar | Hc () const |
Chemical enthalpy [J/kg]. More... | |
scalar | S (const scalar p, const scalar T) const |
void | write (Ostream &os) const |
Write to Ostream. More... | |
scalar | mu (scalar p, scalar T) const |
Liquid viscosity [Pa s]. More... | |
scalar | kappa (scalar p, scalar T) const |
Liquid thermal conductivity [W/(m K)]. More... | |
scalar | alphah (const scalar p, const scalar T) const |
Liquid thermal diffusivity of enthalpy [kg/ms]. More... | |
Static Public Member Functions | |
static word | typeName () |
Return the instantiated type name. More... | |
Static Public Attributes | |
static const bool | incompressible |
Is the equation of state is incompressible i.e. rho != f(p) More... | |
static const bool | isochoric |
Is the equation of state is isochoric i.e. rho = const. More... | |
Wrapper class providing run-time selection of thermophysicalProperties for the templated thermodynamics packages.
Definition at line 51 of file thermophysicalPropertiesSelector.H.
thermophysicalPropertiesSelector | ( | const word & | name | ) |
Construct from name.
Definition at line 33 of file thermophysicalPropertiesSelector.C.
thermophysicalPropertiesSelector | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 44 of file thermophysicalPropertiesSelector.C.
References UILList< LListBase, T >::first(), dictionary::isDict(), Foam::name(), Foam::New(), dictionary::subDict(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::write().
|
inlinestatic |
Return the instantiated type name.
Definition at line 83 of file thermophysicalPropertiesSelector.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::alphah(), thermophysicalPropertiesSelector< ThermophysicalProperties >::Cp(), thermophysicalPropertiesSelector< ThermophysicalProperties >::CpMCv(), thermophysicalPropertiesSelector< ThermophysicalProperties >::Ha(), thermophysicalPropertiesSelector< ThermophysicalProperties >::Hc(), thermophysicalPropertiesSelector< ThermophysicalProperties >::Hs(), thermophysicalPropertiesSelector< ThermophysicalProperties >::kappa(), thermophysicalPropertiesSelector< ThermophysicalProperties >::limit(), thermophysicalPropertiesSelector< ThermophysicalProperties >::mu(), p, thermophysicalPropertiesSelector< ThermophysicalProperties >::properties(), thermophysicalPropertiesSelector< ThermophysicalProperties >::psi(), thermophysicalPropertiesSelector< ThermophysicalProperties >::rho(), thermophysicalPropertiesSelector< ThermophysicalProperties >::S(), Foam::T(), thermophysicalPropertiesSelector< ThermophysicalProperties >::W(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::write().
|
inline |
Return reference to the selected physical properties class.
Definition at line 31 of file thermophysicalPropertiesSelectorI.H.
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Molecular weight [kg/kmol].
Definition at line 38 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::limit().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 47 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::rho().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::W().
|
inline |
Liquid density [kg/m^3].
Definition at line 58 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::psi().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::limit(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Liquid compressibility rho/p [s^2/m^2].
Note: currently it is assumed the liquid is incompressible
Definition at line 70 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::CpMCv().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::rho(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Return (Cp - Cv) [J/(kg K].
Note: currently it is assumed the liquid is incompressible so CpMCv 0
Definition at line 82 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::Cp().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::psi(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Heat capacity at constant pressure [J/(kg K)].
Definition at line 94 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::Ha().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::CpMCv(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Absolute Enthalpy [J/kg].
Definition at line 106 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::Hs().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::Cp(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Sensible enthalpy [J/kg].
Definition at line 118 of file thermophysicalPropertiesSelectorI.H.
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::Ha(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Chemical enthalpy [J/kg].
Definition at line 129 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::S().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Definition at line 138 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::mu().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::Hc(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 65 of file thermophysicalPropertiesSelector.C.
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::thermophysicalPropertiesSelector(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Liquid viscosity [Pa s].
Definition at line 150 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::kappa().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::S(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Liquid thermal conductivity [W/(m K)].
Definition at line 162 of file thermophysicalPropertiesSelectorI.H.
References thermophysicalPropertiesSelector< ThermophysicalProperties >::alphah().
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::mu(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
inline |
Liquid thermal diffusivity of enthalpy [kg/ms].
Definition at line 174 of file thermophysicalPropertiesSelectorI.H.
Referenced by thermophysicalPropertiesSelector< ThermophysicalProperties >::kappa(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::typeName().
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 72 of file thermophysicalPropertiesSelector.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 76 of file thermophysicalPropertiesSelector.H.