Base-class for thermophysical properties of solids, liquids and gases providing an interface compatible with the templated thermodynamics packages. More...
Public Member Functions | |
TypeName ("thermophysicalProperties") | |
declareRunTimeSelectionTable (autoPtr, thermophysicalProperties,,(),()) | |
declareRunTimeSelectionTable (autoPtr, thermophysicalProperties, dictionary,(const dictionary &dict),(dict)) | |
thermophysicalProperties (scalar W) | |
Construct from molecular weight. More... | |
thermophysicalProperties (const dictionary &dict) | |
Construct from dictionary. More... | |
virtual | ~thermophysicalProperties () |
Destructor. More... | |
virtual const word & | name () const =0 |
Return the name of the liquid. 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... | |
virtual scalar | rho (scalar p, scalar T) const =0 |
Liquid density [kg/m^3]. More... | |
virtual scalar | psi (scalar p, scalar T) const =0 |
Liquid compressibility [s^2/m^2]. More... | |
virtual scalar | CpMCv (scalar p, scalar T) const =0 |
Return (Cp - Cv) [J/(kg K]. More... | |
virtual scalar | Cp (const scalar p, const scalar T) const =0 |
Heat capacity at constant pressure [J/kg/K]. More... | |
virtual scalar | Hs (const scalar p, const scalar T) const =0 |
Sensible enthalpy [J/kg]. More... | |
virtual scalar | Hf () const =0 |
Enthalpy of formation [J/kg]. More... | |
virtual scalar | Ha (const scalar p, const scalar T) const =0 |
Absolute enthalpy [J/kg]. More... | |
virtual scalar | S (const scalar p, const scalar T) const =0 |
virtual scalar | mu (scalar p, scalar T) const =0 |
Liquid viscosity [Pa s]. More... | |
virtual scalar | kappa (scalar p, scalar T) const =0 |
Liquid thermal conductivity [W/m/K]. More... | |
void | readIfPresent (const dictionary &dict) |
Read and set the properties present it the given dictionary. More... | |
virtual void | write (Ostream &os) const =0 |
Write the function coefficients. More... | |
Static Public Member Functions | |
static autoPtr< thermophysicalProperties > | New (const word &name) |
Return a pointer to a new thermophysicalProperties created from name. More... | |
static autoPtr< thermophysicalProperties > | New (const dictionary &dict) |
Return a pointer to a new thermophysicalProperties. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const thermophysicalProperties &l) |
Ostream Operator. More... | |
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatible with the templated thermodynamics packages.
Definition at line 56 of file thermophysicalProperties.H.
thermophysicalProperties | ( | scalar | W | ) |
Construct from molecular weight.
Definition at line 39 of file thermophysicalProperties.C.
thermophysicalProperties | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 45 of file thermophysicalProperties.C.
References thermophysicalProperties::New().
|
inlinevirtual |
Destructor.
Definition at line 110 of file thermophysicalProperties.H.
References thermophysicalProperties::Cp(), thermophysicalProperties::CpMCv(), thermophysicalProperties::Ha(), thermophysicalProperties::Hf(), thermophysicalProperties::Hs(), thermophysicalProperties::kappa(), thermophysicalProperties::limit(), thermophysicalProperties::mu(), thermophysicalProperties::name(), p, thermophysicalProperties::psi(), thermophysicalProperties::readIfPresent(), thermophysicalProperties::rho(), thermophysicalProperties::S(), Foam::T(), thermophysicalProperties::W(), and thermophysicalProperties::write().
TypeName | ( | "thermophysicalProperties" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
thermophysicalProperties | , | ||
() | , | ||
() | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
thermophysicalProperties | , | ||
dictionary | , | ||
(const dictionary &dict) | , | ||
(dict) | |||
) |
|
static |
Return a pointer to a new thermophysicalProperties created from name.
Definition at line 55 of file thermophysicalProperties.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, and Foam::nl.
Referenced by thermophysicalProperties::thermophysicalProperties().
|
static |
Return a pointer to a new thermophysicalProperties.
created from dictionary
Definition at line 82 of file thermophysicalProperties.C.
References dict, dictionaryName::dictName(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, and Foam::nl.
|
pure virtual |
Return the name of the liquid.
Implemented in liquidProperties.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
inline |
Molecular weight [kg/kmol].
Definition at line 34 of file thermophysicalPropertiesI.H.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 28 of file thermophysicalPropertiesI.H.
References Foam::T().
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Liquid density [kg/m^3].
Implemented in IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, IC8H18, MB, N2, C8H10, H2O, iC3H8O, nC3H8O, NH3, and liquid.
Referenced by SprayParcel< ParcelType >::chi(), and thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Liquid compressibility [s^2/m^2].
Note: currently it is assumed the liquid is incompressible
Implemented in liquidProperties.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Return (Cp - Cv) [J/(kg K].
Note: currently it is assumed the liquid is incompressible so CpMCv 0
Implemented in liquidProperties.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Heat capacity at constant pressure [J/kg/K].
Implemented in IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, IC8H18, MB, N2, C8H10, H2O, iC3H8O, nC3H8O, NH3, and liquid.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Sensible enthalpy [J/kg].
Implemented in liquidProperties, IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, IC8H18, MB, N2, C8H10, H2O, iC3H8O, nC3H8O, NH3, and liquid.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Enthalpy of formation [J/kg].
Implemented in liquidProperties, IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, IC8H18, MB, N2, C8H10, H2O, iC3H8O, nC3H8O, NH3, and liquid.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Absolute enthalpy [J/kg].
Implemented in liquidProperties, IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, IC8H18, MB, N2, C8H10, H2O, iC3H8O, nC3H8O, NH3, and liquid.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Implemented in liquidProperties.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Liquid viscosity [Pa s].
Implemented in liquidProperties, IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, IC8H18, MB, N2, C8H10, H2O, iC3H8O, nC3H8O, NH3, and liquid.
Referenced by thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Liquid thermal conductivity [W/m/K].
Implemented in liquidProperties, IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, IC8H18, MB, N2, C8H10, H2O, iC3H8O, nC3H8O, NH3, and liquid.
Referenced by thermophysicalProperties::~thermophysicalProperties().
void readIfPresent | ( | const dictionary & | dict | ) |
Read and set the properties present it the given dictionary.
Definition at line 112 of file thermophysicalProperties.C.
References dictionary::readIfPresent().
Referenced by liquidProperties::readIfPresent(), and thermophysicalProperties::~thermophysicalProperties().
|
pure virtual |
Write the function coefficients.
Implemented in liquidProperties, IDEA, CH4N2O, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, iC3H8O, IC8H18, MB, N2, nC3H8O, C8H10, H2O, NH3, and liquid.
Definition at line 118 of file thermophysicalProperties.C.
References Foam::writeEntry().
Referenced by Foam::operator<<(), liquidProperties::write(), and thermophysicalProperties::~thermophysicalProperties().
|
friend |
Ostream Operator.