The thermophysical properties of a liquid. More...
Public Member Functions | |
TypeName ("liquid") | |
declareRunTimeSelectionTable (autoPtr, liquidProperties,,(),()) | |
declareRunTimeSelectionTable (autoPtr, liquidProperties, dictionary,(const dictionary &dict),(dict)) | |
liquidProperties (scalar W, scalar Tc, scalar Pc, scalar Vc, scalar Zc, scalar Tt, scalar Pt, scalar Tb, scalar dipm, scalar omega, scalar delta) | |
Construct from components. More... | |
liquidProperties (const dictionary &dict) | |
Construct from dictionary. More... | |
virtual autoPtr< liquidProperties > | clone () const =0 |
Construct and return clone. More... | |
virtual | ~liquidProperties ()=default |
Destructor. More... | |
scalar | Y () const |
No of moles of this species in mixture. More... | |
scalar | Tc () const |
Critical temperature [K]. More... | |
scalar | Pc () const |
Critical pressure [Pa]. More... | |
scalar | Vc () const |
Critical volume [m^3/kmol]. More... | |
scalar | Zc () const |
Critical compressibility factor. More... | |
scalar | Tt () const |
Triple point temperature [K]. More... | |
scalar | Pt () const |
Triple point pressure [Pa]. More... | |
scalar | Tb () const |
Normal boiling temperature [K]. More... | |
scalar | dipm () const |
Dipole moment []. More... | |
scalar | omega () const |
Pitzer's acentric factor []. More... | |
scalar | delta () const |
Solubility parameter [(J/m^3)^(1/2)]. More... | |
scalar | limit (const scalar T) const |
Limit temperature to be within the range. 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 | 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 |
virtual scalar | pv (scalar p, scalar T) const =0 |
Vapour pressure [Pa]. More... | |
virtual scalar | hl (scalar p, scalar T) const =0 |
Heat of vapourisation [J/kg]. More... | |
virtual scalar | h (scalar p, scalar T) const =0 |
Liquid enthalpy [J/kg] - reference to 298.15 K. More... | |
virtual scalar | Cpg (scalar p, scalar T) const =0 |
Vapour heat capacity [J/(kg K)]. More... | |
virtual scalar | mu (scalar p, scalar T) const =0 |
Liquid viscosity [Pa s]. More... | |
virtual scalar | mug (scalar p, scalar T) const =0 |
Vapour viscosity [Pa s]. More... | |
virtual scalar | kappa (scalar p, scalar T) const =0 |
Liquid thermal conductivity [W/(m K)]. More... | |
scalar | alphah (const scalar p, const scalar T) const |
Liquid thermal diffusivity of enthalpy [kg/ms]. More... | |
virtual scalar | kappag (scalar p, scalar T) const =0 |
Vapour thermal conductivity [W/(m K)]. More... | |
virtual scalar | sigma (scalar p, scalar T) const =0 |
Surface tension [N/m]. More... | |
virtual scalar | D (scalar p, scalar T) const =0 |
Vapour diffusivity [m2/s]. More... | |
virtual scalar | D (scalar p, scalar T, scalar Wb) const =0 |
Vapour diffusivity [m2/s] with specified binary pair. More... | |
virtual scalar | pvInvert (scalar p) const |
Invert the vapour pressure relationship to retrieve the. More... | |
void | readIfPresent (const dictionary &dict) |
Read and set the properties present it the given dictionary. More... | |
template<class Func > | |
void | readIfPresent (Func &f, const word &name, const dictionary &dict) |
Read and set the function coefficients. More... | |
template<class Liquid > | |
void | readIfPresent (Liquid &l, const dictionary &dict) |
Read and set the function coefficients. More... | |
virtual void | writeData (Ostream &os) const =0 |
Write the function coefficients. More... | |
template<class Liquid > | |
void | writeData (const Liquid &l, Ostream &os) const |
Write the data for each of the property functions. More... | |
Public Member Functions inherited from thermophysicalProperties | |
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 ()=default |
Destructor. More... | |
scalar | W () const |
Molecular weight [kg/kmol]. More... | |
scalar | limit (const scalar T) const |
Limit temperature to be within the range. More... | |
virtual scalar | rho (scalar p, scalar T) const =0 |
Liquid density [kg/m^3]. More... | |
virtual scalar | Cp (const scalar p, const scalar T) const =0 |
Heat capacity at constant pressure [J/(kg K)]. More... | |
void | readIfPresent (const dictionary &dict) |
Read and set the properties present it the given dictionary. More... | |
Static Public Member Functions | |
template<class Derived > | |
static autoPtr< liquidProperties > | Clone (const Derived &prop) |
Clone liquidProperties. More... | |
static autoPtr< liquidProperties > | New (const word &name) |
Return a pointer to a new liquidProperties created from name. More... | |
static autoPtr< liquidProperties > | New (const dictionary &dict) |
Return a pointer to a new liquidProperties created from dictionary. More... | |
Static Public Member Functions inherited from thermophysicalProperties | |
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... | |
Static Public Attributes | |
static const bool | incompressible = true |
Is the equation of state is incompressible i.e. rho != f(p) More... | |
static const bool | isochoric = false |
Is the equation of state is isochoric i.e. rho = const. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const liquidProperties &l) |
Ostream Operator. More... | |
The thermophysical properties of a liquid.
Definition at line 47 of file liquidProperties.H.
liquidProperties | ( | scalar | W, |
scalar | Tc, | ||
scalar | Pc, | ||
scalar | Vc, | ||
scalar | Zc, | ||
scalar | Tt, | ||
scalar | Pt, | ||
scalar | Tb, | ||
scalar | dipm, | ||
scalar | omega, | ||
scalar | delta | ||
) |
Construct from components.
Definition at line 37 of file liquidProperties.C.
liquidProperties | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 65 of file liquidProperties.C.
|
virtualdefault |
Destructor.
TypeName | ( | "liquid" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
liquidProperties | , | ||
() | , | ||
() | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
liquidProperties | , | ||
dictionary | , | ||
(const dictionary &dict) | , | ||
(dict) | |||
) |
|
pure virtual |
|
inlinestatic |
Clone liquidProperties.
Definition at line 167 of file liquidProperties.H.
Referenced by liquid::clone(), C8H10::clone(), iC3H8O::clone(), nC3H8O::clone(), H2O::clone(), aC10H7CH3::clone(), IC8H18::clone(), C13H28::clone(), C3H6O::clone(), CH4N2O::clone(), CH3OH::clone(), C9H20::clone(), C8H18::clone(), C2H5OH::clone(), C7H8::clone(), C7H16::clone(), Ar::clone(), C6H14::clone(), C14H30::clone(), C3H8::clone(), bC10H7CH3::clone(), C2H6O::clone(), C2H6::clone(), C10H22::clone(), C16H34::clone(), N2::clone(), MB::clone(), C12H26::clone(), C6H6::clone(), C4H10O::clone(), and IDEA::clone().
|
static |
Return a pointer to a new liquidProperties created from name.
Definition at line 84 of file liquidProperties.C.
References DebugInFunction, Foam::exit(), Foam::FatalError, FatalErrorInLookup, Foam::name(), and Foam::nl.
Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::humidityTemperatureCoupledMixedFvPatchScalarField(), and liquidFilmThermo::initLiquid().
|
static |
Return a pointer to a new liquidProperties created from dictionary.
Definition at line 107 of file liquidProperties.C.
References DebugInFunction, dict, dictionary::dictName(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::found(), dictionary::get(), Foam::New(), Foam::nl, dictionary::optionalSubDict(), and dictionary::readIfPresent().
|
inline |
No of moles of this species in mixture.
Note Mixing of liquidProperties is not currently supported so Y = 1
Definition at line 27 of file liquidPropertiesI.H.
|
inline |
Critical temperature [K].
Definition at line 33 of file liquidPropertiesI.H.
|
inline |
Critical pressure [Pa].
Definition at line 39 of file liquidPropertiesI.H.
|
inline |
Critical volume [m^3/kmol].
Definition at line 45 of file liquidPropertiesI.H.
|
inline |
Critical compressibility factor.
Definition at line 51 of file liquidPropertiesI.H.
|
inline |
Triple point temperature [K].
Definition at line 57 of file liquidPropertiesI.H.
|
inline |
Triple point pressure [Pa].
Definition at line 63 of file liquidPropertiesI.H.
|
inline |
Normal boiling temperature [K].
Definition at line 69 of file liquidPropertiesI.H.
|
inline |
Dipole moment [].
Definition at line 75 of file liquidPropertiesI.H.
|
inline |
Pitzer's acentric factor [].
Definition at line 81 of file liquidPropertiesI.H.
|
inline |
Solubility parameter [(J/m^3)^(1/2)].
Definition at line 87 of file liquidPropertiesI.H.
|
inline |
Limit temperature to be within the range.
Definition at line 21 of file liquidPropertiesI.H.
References Foam::T().
|
inlinevirtual |
Liquid compressibility rho/p [s^2/m^2].
Note: currently it is assumed the liquid is incompressible
Implements thermophysicalProperties.
Definition at line 93 of file liquidPropertiesI.H.
|
inlinevirtual |
Return (Cp - Cv) [J/(kg K].
Note: currently it is assumed the liquid is incompressible so CpMCv = 0
Implements thermophysicalProperties.
Definition at line 99 of file liquidPropertiesI.H.
|
inlinevirtual |
Absolute Enthalpy [J/kg].
Implements thermophysicalProperties.
Definition at line 105 of file liquidPropertiesI.H.
References Foam::constant::universal::h, p, and Foam::T().
|
inlinevirtual |
Sensible enthalpy [J/kg].
Implements thermophysicalProperties.
Definition at line 111 of file liquidPropertiesI.H.
References Foam::constant::universal::h, p, and Foam::T().
|
inlinevirtual |
Chemical enthalpy [J/kg].
Implements thermophysicalProperties.
Definition at line 117 of file liquidPropertiesI.H.
|
virtual |
Implements thermophysicalProperties.
Definition at line 167 of file liquidProperties.C.
References NotImplemented.
|
pure virtual |
|
pure virtual |
Heat of vapourisation [J/kg].
Implemented in IDEA, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, CH4N2O, IC8H18, MB, N2, H2O, iC3H8O, nC3H8O, C8H10, and liquid.
Referenced by SprayParcel< ParcelType >::chi().
|
pure virtual |
Liquid enthalpy [J/kg] - reference to 298.15 K.
Implemented in IDEA, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, CH4N2O, IC8H18, MB, N2, H2O, iC3H8O, nC3H8O, C8H10, and liquid.
Referenced by SprayParcel< ParcelType >::chi().
|
pure virtual |
|
pure virtual |
Liquid viscosity [Pa s].
Implements thermophysicalProperties.
Implemented in IDEA, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, CH4N2O, IC8H18, MB, N2, H2O, iC3H8O, nC3H8O, C8H10, and liquid.
Referenced by ThermoSurfaceFilm< CloudType >::transferParcel().
|
pure virtual |
|
pure virtual |
Liquid thermal conductivity [W/(m K)].
Implements thermophysicalProperties.
Implemented in IDEA, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, CH4N2O, IC8H18, MB, N2, H2O, iC3H8O, nC3H8O, C8H10, and liquid.
|
inlinevirtual |
Liquid thermal diffusivity of enthalpy [kg/ms].
Implements thermophysicalProperties.
Definition at line 123 of file liquidPropertiesI.H.
References Cp, Foam::constant::electromagnetic::kappa, p, and Foam::T().
|
pure virtual |
|
pure virtual |
Surface tension [N/m].
Implemented in IDEA, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, CH4N2O, IC8H18, MB, N2, H2O, iC3H8O, nC3H8O, C8H10, and liquid.
Referenced by ThermoSurfaceFilm< CloudType >::transferParcel().
|
pure virtual |
|
pure virtual |
|
virtual |
Invert the vapour pressure relationship to retrieve the.
boiling temperature as a function of pressure
Definition at line 174 of file liquidProperties.C.
References Foam::ensightOutput::debug, Foam::constant::electromagnetic::e, Foam::endl(), Foam::nl, p, Foam::T(), and WarningInFunction.
Referenced by SprayParcel< ParcelType >::chi(), and liquidFilmThermo::Tb().
void readIfPresent | ( | const dictionary & | dict | ) |
Read and set the properties present it the given dictionary.
Definition at line 217 of file liquidProperties.C.
References dict, thermophysicalProperties::readIfPresent(), and dictionary::readIfPresent().
Referenced by aC10H7CH3::aC10H7CH3(), Ar::Ar(), bC10H7CH3::bC10H7CH3(), C10H22::C10H22(), C12H26::C12H26(), C13H28::C13H28(), C14H30::C14H30(), C16H34::C16H34(), C2H5OH::C2H5OH(), C2H6::C2H6(), C2H6O::C2H6O(), C3H6O::C3H6O(), C3H8::C3H8(), C4H10O::C4H10O(), C6H14::C6H14(), C6H6::C6H6(), C7H16::C7H16(), C7H8::C7H8(), C8H10::C8H10(), C8H18::C8H18(), C9H20::C9H20(), CH3OH::CH3OH(), CH4N2O::CH4N2O(), H2O::H2O(), iC3H8O::iC3H8O(), IC8H18::IC8H18(), IDEA::IDEA(), MB::MB(), N2::N2(), and nC3H8O::nC3H8O().
|
inline |
Read and set the function coefficients.
if present it the given dictionary
Definition at line 131 of file liquidPropertiesI.H.
References dict, f(), dictionary::found(), Foam::name(), and dictionary::subDict().
|
inline |
Read and set the function coefficients.
if present it the given dictionary
Definition at line 146 of file liquidPropertiesI.H.
References dict, and readIfPresent().
|
pure virtual |
Write the function coefficients.
Implements thermophysicalProperties.
Implemented in IDEA, aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H18, C9H20, CH3OH, CH4N2O, iC3H8O, IC8H18, MB, N2, nC3H8O, H2O, C8H10, and liquid.
Definition at line 233 of file liquidProperties.C.
References os(), token::SPACE, and thermophysicalProperties::writeData().
Referenced by Foam::operator<<(), liquid::writeData(), C8H10::writeData(), H2O::writeData(), C14H30::writeData(), C4H10O::writeData(), aC10H7CH3::writeData(), IC8H18::writeData(), iC3H8O::writeData(), C3H6O::writeData(), CH4N2O::writeData(), CH3OH::writeData(), C9H20::writeData(), C8H18::writeData(), C2H5OH::writeData(), C7H8::writeData(), C7H16::writeData(), Ar::writeData(), C6H14::writeData(), nC3H8O::writeData(), C3H8::writeData(), C13H28::writeData(), C2H6O::writeData(), C2H6::writeData(), C10H22::writeData(), C16H34::writeData(), N2::writeData(), bC10H7CH3::writeData(), C12H26::writeData(), C6H6::writeData(), MB::writeData(), and IDEA::writeData().
|
inline |
Write the data for each of the property functions.
Definition at line 170 of file liquidPropertiesI.H.
References Foam::endl(), Foam::nl, and os().
|
friend |
Ostream Operator.
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 194 of file liquidProperties.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 199 of file liquidProperties.H.