liquidProperties Class Referenceabstract

The thermophysical properties of a liquid. More...

Inheritance diagram for liquidProperties:
Collaboration diagram for liquidProperties:

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< liquidPropertiesclone () const =0
 Construct and return clone. More...
 
virtual ~liquidProperties ()
 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 compressibilty 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 ascentric 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 rho/p [s^2/m^2]. More...
 
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K]. More...
 
scalar Hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg]. More...
 
scalar Hc () const
 Chemical enthalpy [J/kg]. More...
 
scalar Ha (const scalar p, const scalar T) const
 Absolute 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/m/s]. 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 diffussivity [m2/s]. More...
 
virtual scalar D (scalar p, scalar T, scalar Wb) const =0
 Vapour diffussivity [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...
 
void write (Ostream &os) const
 Write dictionary to Ostream. 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 ()
 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...
 
void write (Ostream &os) const
 Write dictionary to Ostream. More...
 

Static Public Member Functions

static autoPtr< liquidPropertiesNew (const word &name)
 Return a pointer to a new liquidProperties created from name. More...
 
static autoPtr< liquidPropertiesNew (const dictionary &dict)
 Return a pointer to a new liquidProperties created from dictionary. More...
 
- Static Public Member Functions inherited from thermophysicalProperties
static autoPtr< thermophysicalPropertiesNew (const word &name)
 Return a pointer to a new thermophysicalProperties created from name. More...
 
static autoPtr< thermophysicalPropertiesNew (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

Ostreamoperator<< (Ostream &os, const liquidProperties &l)
 Ostream Operator. More...
 

Detailed Description

The thermophysical properties of a liquid.

Source files

Definition at line 48 of file liquidProperties.H.

Constructor & Destructor Documentation

◆ liquidProperties() [1/2]

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 42 of file liquidProperties.C.

◆ liquidProperties() [2/2]

liquidProperties ( const dictionary dict)

Construct from dictionary.

Definition at line 70 of file liquidProperties.C.

References liquidProperties::New().

Here is the call graph for this function:

◆ ~liquidProperties()

virtual ~liquidProperties ( )
inlinevirtual

Destructor.

Definition at line 146 of file liquidProperties.H.

Member Function Documentation

◆ TypeName()

TypeName ( "liquid"  )

◆ declareRunTimeSelectionTable() [1/2]

declareRunTimeSelectionTable ( autoPtr  ,
liquidProperties  ,
()  ,
()   
)

◆ declareRunTimeSelectionTable() [2/2]

declareRunTimeSelectionTable ( autoPtr  ,
liquidProperties  ,
dictionary  ,
(const dictionary &dict ,
(dict  
)

◆ clone()

virtual autoPtr<liquidProperties> clone ( ) const
pure virtual

Construct and return clone.

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, C8H10, H2O, iC3H8O, and nC3H8O.

◆ New() [1/2]

Foam::autoPtr< Foam::liquidProperties > New ( const word name)
static

Return a pointer to a new liquidProperties created from name.

Definition at line 89 of file liquidProperties.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, and Foam::nl.

Referenced by liquidFilmThermo::initLiquid(), liquidProperties::liquidProperties(), and liquidProperties::New().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New() [2/2]

Foam::autoPtr< Foam::liquidProperties > New ( const dictionary dict)
static

Return a pointer to a new liquidProperties created from dictionary.

Definition at line 115 of file liquidProperties.C.

References dict, dictionaryName::dictName(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), InfoInFunction, dictionary::lookup(), liquidProperties::New(), Foam::nl, and dictionary::optionalSubDict().

Here is the call graph for this function:

◆ Y()

Foam::scalar Y ( ) const
inline

No of moles of this species in mixture.

Note Mixing of liquidProperties is not currently supported so Y = 1

Definition at line 32 of file liquidPropertiesI.H.

◆ Tc()

Foam::scalar Tc ( ) const
inline

Critical temperature [K].

Definition at line 38 of file liquidPropertiesI.H.

◆ Pc()

Foam::scalar Pc ( ) const
inline

Critical pressure [Pa].

Definition at line 44 of file liquidPropertiesI.H.

◆ Vc()

Foam::scalar Vc ( ) const
inline

Critical volume [m^3/kmol].

Definition at line 50 of file liquidPropertiesI.H.

◆ Zc()

Foam::scalar Zc ( ) const
inline

Critical compressibilty factor.

Definition at line 56 of file liquidPropertiesI.H.

◆ Tt()

Foam::scalar Tt ( ) const
inline

Triple point temperature [K].

Definition at line 62 of file liquidPropertiesI.H.

◆ Pt()

Foam::scalar Pt ( ) const
inline

Triple point pressure [Pa].

Definition at line 68 of file liquidPropertiesI.H.

◆ Tb()

Foam::scalar Tb ( ) const
inline

Normal boiling temperature [K].

Definition at line 74 of file liquidPropertiesI.H.

◆ dipm()

Foam::scalar dipm ( ) const
inline

Dipole moment [].

Definition at line 80 of file liquidPropertiesI.H.

◆ omega()

Foam::scalar omega ( ) const
inline

Pitzer's ascentric factor [].

Definition at line 86 of file liquidPropertiesI.H.

◆ delta()

Foam::scalar delta ( ) const
inline

Solubility parameter [(J/m^3)^(1/2)].

Definition at line 92 of file liquidPropertiesI.H.

◆ limit()

Foam::scalar limit ( const scalar  T) const
inline

Limit the temperature to be in the range Tlow_ to Thigh_.

Definition at line 26 of file liquidPropertiesI.H.

References Foam::T().

Here is the call graph for this function:

◆ psi()

Foam::scalar psi ( scalar  p,
scalar  T 
) const
inlinevirtual

Liquid compressibility rho/p [s^2/m^2].

Note: currently it is assumed the liquid is incompressible

Implements thermophysicalProperties.

Definition at line 98 of file liquidPropertiesI.H.

◆ CpMCv()

Foam::scalar CpMCv ( scalar  p,
scalar  T 
) const
inlinevirtual

Return (Cp - Cv) [J/(kg K].

Note: currently it is assumed the liquid is incompressible so CpMCv = 0

Implements thermophysicalProperties.

Definition at line 104 of file liquidPropertiesI.H.

◆ Hs()

Foam::scalar Hs ( const scalar  p,
const scalar  T 
) const
inlinevirtual

Sensible enthalpy [J/kg].

Implements thermophysicalProperties.

Definition at line 116 of file liquidPropertiesI.H.

References liquidProperties::h().

Here is the call graph for this function:

◆ Hc()

Foam::scalar Hc ( ) const
inlinevirtual

Chemical enthalpy [J/kg].

Implements thermophysicalProperties.

Definition at line 122 of file liquidPropertiesI.H.

◆ Ha()

Foam::scalar Ha ( const scalar  p,
const scalar  T 
) const
inlinevirtual

Absolute Enthalpy [J/kg].

Implements thermophysicalProperties.

Definition at line 110 of file liquidPropertiesI.H.

References liquidProperties::h().

Here is the call graph for this function:

◆ S()

Foam::scalar S ( const scalar  p,
const scalar  T 
) const
virtual

Implements thermophysicalProperties.

Definition at line 180 of file liquidProperties.C.

References NotImplemented.

◆ pv()

virtual scalar pv ( scalar  p,
scalar  T 
) const
pure virtual

Vapour pressure [Pa].

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, C8H10, H2O, iC3H8O, and nC3H8O.

Referenced by liquidFilmThermo::pv(), and liquidProperties::pvInvert().

Here is the caller graph for this function:

◆ hl()

virtual scalar hl ( scalar  p,
scalar  T 
) const
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, C8H10, H2O, iC3H8O, and nC3H8O.

Referenced by SprayParcel< ParcelType >::chi(), and liquidFilmThermo::hl().

Here is the caller graph for this function:

◆ h()

virtual scalar h ( scalar  p,
scalar  T 
) const
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, C8H10, H2O, iC3H8O, and nC3H8O.

Referenced by SprayParcel< ParcelType >::chi(), liquidProperties::Ha(), and liquidProperties::Hs().

Here is the caller graph for this function:

◆ Cpg()

virtual scalar Cpg ( scalar  p,
scalar  T 
) const
pure virtual

Vapour heat capacity [J/kg/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, C8H10, H2O, iC3H8O, and nC3H8O.

◆ mu()

virtual scalar mu ( scalar  p,
scalar  T 
) const
pure virtual

◆ mug()

virtual scalar mug ( scalar  p,
scalar  T 
) const
pure virtual

Vapour viscosity [Pa s].

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, C8H10, H2O, iC3H8O, and nC3H8O.

◆ kappa()

virtual scalar kappa ( scalar  p,
scalar  T 
) const
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, C8H10, H2O, iC3H8O, and nC3H8O.

Referenced by liquidProperties::alphah(), and liquidFilmThermo::kappa().

Here is the caller graph for this function:

◆ alphah()

Foam::scalar alphah ( const scalar  p,
const scalar  T 
) const
inlinevirtual

Liquid thermal diffusivity of enthalpy [kg/m/s].

Implements thermophysicalProperties.

Definition at line 128 of file liquidPropertiesI.H.

References thermophysicalProperties::Cp(), liquidProperties::kappa(), and liquidProperties::readIfPresent().

Here is the call graph for this function:

◆ kappag()

virtual scalar kappag ( scalar  p,
scalar  T 
) const
pure virtual

Vapour thermal conductivity [W/m/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, C8H10, H2O, iC3H8O, and nC3H8O.

◆ sigma()

virtual scalar sigma ( scalar  p,
scalar  T 
) const
pure virtual

◆ D() [1/2]

virtual scalar D ( scalar  p,
scalar  T 
) const
pure virtual

Vapour diffussivity [m2/s].

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, C8H10, H2O, iC3H8O, and nC3H8O.

Referenced by liquidFilmThermo::D().

Here is the caller graph for this function:

◆ D() [2/2]

virtual scalar D ( scalar  p,
scalar  T,
scalar  Wb 
) const
pure virtual

Vapour diffussivity [m2/s] with specified binary pair.

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, C8H10, H2O, iC3H8O, and nC3H8O.

◆ pvInvert()

Foam::scalar pvInvert ( scalar  p) const
virtual

Invert the vapour pressure relationship to retrieve the.

boiling temperuture as a function of pressure

Definition at line 187 of file liquidProperties.C.

References Foam::e, Foam::endl(), Foam::nl, liquidProperties::pv(), Foam::T(), and WarningInFunction.

Referenced by SprayParcel< ParcelType >::chi(), and liquidFilmThermo::Tb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readIfPresent() [1/3]

◆ readIfPresent() [2/3]

void readIfPresent ( Func &  f,
const word name,
const dictionary dict 
)
inline

Read and set the function coefficients.

if present it the given dictionary

Definition at line 136 of file liquidPropertiesI.H.

References dictionary::found(), liquidProperties::readIfPresent(), and dictionary::subDict().

Here is the call graph for this function:

◆ readIfPresent() [3/3]

void readIfPresent ( Liquid &  l,
const dictionary dict 
)
inline

Read and set the function coefficients.

if present it the given dictionary

Definition at line 151 of file liquidPropertiesI.H.

References liquidProperties::readIfPresent(), and liquidProperties::writeData().

Here is the call graph for this function:

◆ writeData() [1/2]

◆ write()

void write ( Ostream os) const

Write dictionary to Ostream.

Definition at line 263 of file liquidProperties.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), and thermophysicalProperties::write().

Here is the call graph for this function:

◆ writeData() [2/2]

void writeData ( const Liquid &  l,
Ostream os 
) const
inline

Write the data for each of the property functions.

Definition at line 175 of file liquidPropertiesI.H.

References Foam::endl(), and Foam::nl.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream os,
const liquidProperties l 
)
friend

Ostream Operator.

Member Data Documentation

◆ incompressible

const bool incompressible = true
static

Is the equation of state is incompressible i.e. rho != f(p)

Definition at line 153 of file liquidProperties.H.

◆ isochoric

const bool isochoric = false
static

Is the equation of state is isochoric i.e. rho = const.

Definition at line 156 of file liquidProperties.H.


The documentation for this class was generated from the following files: