The thermophysical properties of a liquid. More...
Public Member Functions | |
TypeName ("liquid") | |
declareRunTimeSelectionTable (autoPtr, liquidProperties,,(),()) | |
declareRunTimeSelectionTable (autoPtr, liquidProperties, dictionary,(const dictionary &dict),(dict)) | |
liquidProperties (const word &name, 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 () |
Destructor. More... | |
virtual const word & | name () const |
Return the name of the liquid. More... | |
scalar | Y () const |
Mass fraction of this specie 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 the temperature to be in the range Tlow_ to Thigh_. More... | |
scalar | psi (scalar p, scalar T) const |
Liquid compressibility [s^2/m^2]. More... | |
scalar | CpMCv (scalar p, scalar T) const |
Return (Cp - Cv) [J/(kg K]. More... | |
virtual scalar | Hf () const =0 |
Liquid heat of formation [J/kg]. More... | |
virtual scalar | Hs (scalar p, scalar T) const =0 |
Liquid sensible enthalpy [J/kg]. More... | |
virtual scalar | Ha (scalar p, scalar T) const =0 |
Liquid absolute enthalpy [J/kg]. More... | |
scalar | Es (scalar p, const scalar T) const |
Sensible internal energy [J/kg]. More... | |
scalar | Ea (scalar p, scalar T) const |
Absolute internal energy [J/kg]. More... | |
scalar | S (const scalar p, const scalar T) const |
Liquid entropy [J/kg/K]. More... | |
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 | 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... | |
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 [m^2/s]. More... | |
virtual scalar | D (scalar p, scalar T, scalar Wb) const =0 |
Vapour diffusivity [m^2/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 | write (Ostream &os) const =0 |
Write the function coefficients. More... | |
template<class Liquid > | |
void | write (const Liquid &l, Ostream &os) const |
Write the data for each of the property functions. More... | |
![]() | |
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... | |
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 | 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 | |
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 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 52 of file liquidProperties.H.
liquidProperties | ( | const word & | name, |
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 40 of file liquidProperties.C.
liquidProperties | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 70 of file liquidProperties.C.
References liquidProperties::New().
|
inlinevirtual |
Destructor.
Definition at line 154 of file liquidProperties.H.
TypeName | ( | "liquid" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
liquidProperties | , | ||
() | , | ||
() | |||
) |
declareRunTimeSelectionTable | ( | autoPtr | , |
liquidProperties | , | ||
dictionary | , | ||
(const dictionary &dict) | , | ||
(dict) | |||
) |
|
pure virtual |
|
static |
Return a pointer to a new liquidProperties created from name.
Definition at line 90 of file liquidProperties.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, and Foam::nl.
Referenced by liquidProperties::liquidProperties().
|
static |
Return a pointer to a new liquidProperties created from dictionary.
Definition at line 116 of file liquidProperties.C.
References dict, dictionaryName::dictName(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), InfoInFunction, dictionary::lookup(), and Foam::nl.
|
virtual |
Return the name of the liquid.
Implements thermophysicalProperties.
Definition at line 148 of file liquidProperties.C.
|
inline |
Mass fraction of this specie in mixture.
Note Mixing of liquidProperties is not currently supported so Y = 1
Definition at line 34 of file liquidPropertiesI.H.
|
inline |
Critical temperature [K].
Definition at line 40 of file liquidPropertiesI.H.
|
inline |
Critical pressure [Pa].
Definition at line 46 of file liquidPropertiesI.H.
|
inline |
Critical volume [m^3/kmol].
Definition at line 52 of file liquidPropertiesI.H.
|
inline |
Critical compressibility factor.
Definition at line 58 of file liquidPropertiesI.H.
|
inline |
Triple point temperature [K].
Definition at line 64 of file liquidPropertiesI.H.
|
inline |
Triple point pressure [Pa].
Definition at line 70 of file liquidPropertiesI.H.
|
inline |
Normal boiling temperature [K].
Definition at line 76 of file liquidPropertiesI.H.
|
inline |
Dipole moment [].
Definition at line 82 of file liquidPropertiesI.H.
|
inline |
Pitzer's acentric factor [].
Definition at line 88 of file liquidPropertiesI.H.
|
inline |
Solubility parameter [(J/m^3)^(1/2)].
Definition at line 94 of file liquidPropertiesI.H.
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 28 of file liquidPropertiesI.H.
References Foam::T().
|
inlinevirtual |
Liquid compressibility [s^2/m^2].
Note: currently it is assumed the liquid is incompressible
Implements thermophysicalProperties.
Definition at line 100 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 106 of file liquidPropertiesI.H.
|
pure virtual |
Liquid heat of formation [J/kg].
Implements thermophysicalProperties.
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.
|
pure virtual |
Liquid sensible enthalpy [J/kg].
currently pressure effects are neglected
Implements thermophysicalProperties.
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 ThermoSurfaceFilm< CloudType >::absorbInteraction(), and liquidProperties::Es().
|
pure virtual |
Liquid absolute enthalpy [J/kg].
currently pressure effects are neglected
Implements thermophysicalProperties.
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 liquidProperties::Ea().
|
inline |
Sensible internal energy [J/kg].
currently pressure effects are neglected
Definition at line 112 of file liquidPropertiesI.H.
References liquidProperties::Hs().
|
inline |
Absolute internal energy [J/kg].
currently pressure effects are neglected
Definition at line 118 of file liquidPropertiesI.H.
References liquidProperties::Ha(), and liquidProperties::readIfPresent().
|
virtual |
Liquid entropy [J/kg/K].
Implements thermophysicalProperties.
Definition at line 154 of file liquidProperties.C.
References NotImplemented.
|
pure virtual |
Vapour pressure [Pa].
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 waxSolventEvaporation::correctModel(), and liquidProperties::pvInvert().
|
pure virtual |
Heat of vapourisation [J/kg].
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().
|
pure virtual |
|
pure virtual |
Liquid viscosity [Pa s].
Implements thermophysicalProperties.
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 ThermoSurfaceFilm< CloudType >::drySplashInteraction(), and ThermoSurfaceFilm< CloudType >::wetSplashInteraction().
|
pure virtual |
|
pure virtual |
Liquid thermal conductivity [W/m/K].
Implements thermophysicalProperties.
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.
|
pure virtual |
|
pure virtual |
Surface tension [N/m].
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 ThermoSurfaceFilm< CloudType >::drySplashInteraction(), and ThermoSurfaceFilm< CloudType >::wetSplashInteraction().
|
pure virtual |
Vapour diffusivity [m^2/s].
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 waxSolventEvaporation::correctModel().
|
pure virtual |
|
virtual |
Invert the vapour pressure relationship to retrieve the.
boiling temperature as a function of pressure
Definition at line 161 of file liquidProperties.C.
References Foam::e, Foam::endl(), Foam::nl, liquidProperties::pv(), Foam::T(), and WarningInFunction.
Referenced by SprayParcel< ParcelType >::chi(), and waxSolventEvaporation::correctModel().
void readIfPresent | ( | const dictionary & | dict | ) |
Read and set the properties present it the given dictionary.
Definition at line 204 of file liquidProperties.C.
References 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(), liquidProperties::Ea(), H2O::H2O(), iC3H8O::iC3H8O(), IC8H18::IC8H18(), IDEA::IDEA(), MB::MB(), N2::N2(), nC3H8O::nC3H8O(), NH3::NH3(), and liquidProperties::readIfPresent().
|
inline |
Read and set the function coefficients.
if present it the given dictionary
Definition at line 126 of file liquidPropertiesI.H.
References dictionary::found(), liquidProperties::readIfPresent(), and dictionary::subDict().
|
inline |
Read and set the function coefficients.
if present it the given dictionary
Definition at line 141 of file liquidPropertiesI.H.
References liquidProperties::readIfPresent(), and liquidProperties::write().
|
pure virtual |
Write the function coefficients.
Implements thermophysicalProperties.
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, iC3H8O, IC8H18, MB, N2, nC3H8O, C8H10, H2O, NH3, and liquid.
Definition at line 220 of file liquidProperties.C.
References thermophysicalProperties::write(), and Foam::writeEntry().
Referenced by Foam::operator<<(), liquidProperties::readIfPresent(), liquid::write(), NH3::write(), H2O::write(), C8H10::write(), C14H30::write(), C4H10O::write(), N2::write(), IC8H18::write(), iC3H8O::write(), C3H6O::write(), aC10H7CH3::write(), CH3OH::write(), C9H20::write(), C8H18::write(), C2H5OH::write(), C7H8::write(), Ar::write(), C6H6::write(), nC3H8O::write(), C7H16::write(), C3H8::write(), C13H28::write(), C2H6O::write(), C2H6::write(), C16H34::write(), C10H22::write(), MB::write(), bC10H7CH3::write(), C12H26::write(), C6H14::write(), CH4N2O::write(), and IDEA::write().
|
inline |
Write the data for each of the property functions.
Definition at line 165 of file liquidPropertiesI.H.
References Foam::writeEntry().
|
friend |
Ostream Operator.
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 161 of file liquidProperties.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 164 of file liquidProperties.H.