Loading...
Searching...
No Matches
liquidProperties Class Referenceabstract

The thermophysical properties of a liquid. More...

#include <liquidProperties.H>

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.
 liquidProperties (const dictionary &dict)
 Construct from dictionary.
virtual autoPtr< liquidPropertiesclone () const =0
 Construct and return clone.
virtual ~liquidProperties ()=default
 Destructor.
scalar Y () const
 No of moles of this species in mixture.
scalar Tc () const
 Critical temperature [K].
scalar Pc () const
 Critical pressure [Pa].
scalar Vc () const
 Critical volume [m^3/kmol].
scalar Zc () const
 Critical compressibility factor.
scalar Tt () const
 Triple point temperature [K].
scalar Pt () const
 Triple point pressure [Pa].
scalar Tb () const
 Normal boiling temperature [K].
scalar dipm () const
 Dipole moment [].
scalar omega () const
 Pitzer's acentric factor [].
scalar delta () const
 Solubility parameter [(J/m^3)^(1/2)].
scalar limit (const scalar T) const
 Limit temperature to be within the range.
scalar psi (scalar p, scalar T) const
 Liquid compressibility rho/p [s^2/m^2].
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K].
scalar Ha (const scalar p, const scalar T) const
 Absolute Enthalpy [J/kg].
scalar Hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg].
scalar Hc () const
 Chemical enthalpy [J/kg].
scalar S (const scalar p, const scalar T) const
virtual scalar pv (scalar p, scalar T) const =0
 Vapour pressure [Pa].
virtual scalar hl (scalar p, scalar T) const =0
 Heat of vapourisation [J/kg].
virtual scalar h (scalar p, scalar T) const =0
 Liquid enthalpy [J/kg] - reference to 298.15 K.
virtual scalar Cpg (scalar p, scalar T) const =0
 Vapour heat capacity [J/(kg K)].
virtual scalar mu (scalar p, scalar T) const =0
 Liquid viscosity [Pa s].
virtual scalar mug (scalar p, scalar T) const =0
 Vapour viscosity [Pa s].
virtual scalar kappa (scalar p, scalar T) const =0
 Liquid thermal conductivity [W/(m K)].
scalar alphah (const scalar p, const scalar T) const
 Liquid thermal diffusivity of enthalpy [kg/ms].
virtual scalar kappag (scalar p, scalar T) const =0
 Vapour thermal conductivity [W/(m K)].
virtual scalar sigma (scalar p, scalar T) const =0
 Surface tension [N/m].
virtual scalar D (scalar p, scalar T) const =0
 Vapour diffusivity [m2/s].
virtual scalar D (scalar p, scalar T, scalar Wb) const =0
 Vapour diffusivity [m2/s] with specified binary pair.
virtual scalar pvInvert (scalar p) const
 Invert the vapour pressure relationship to retrieve the.
void readIfPresent (const dictionary &dict)
 Read and set the properties present it the given dictionary.
template<class Func>
void readIfPresent (Func &f, const word &name, const dictionary &dict)
 Read and set the function coefficients.
template<class Liquid>
void readIfPresent (Liquid &l, const dictionary &dict)
 Read and set the function coefficients.
virtual void writeData (Ostream &os) const =0
 Write the function coefficients.
template<class Liquid>
void writeData (const Liquid &l, Ostream &os) const
 Write the data for each of the property functions.
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.
 thermophysicalProperties (const dictionary &dict)
 Construct from dictionary.
virtual ~thermophysicalProperties ()=default
 Destructor.
scalar W () const
 Molecular weight [kg/kmol].
scalar limit (const scalar T) const
 Limit temperature to be within the range.
virtual scalar rho (scalar p, scalar T) const =0
 Liquid density [kg/m^3].
virtual scalar Cp (const scalar p, const scalar T) const =0
 Heat capacity at constant pressure [J/(kg K)].
void readIfPresent (const dictionary &dict)
 Read and set the properties present it the given dictionary.

Static Public Member Functions

template<class Derived>
static autoPtr< liquidPropertiesClone (const Derived &prop)
 Clone liquidProperties.
static autoPtr< liquidPropertiesNew (const word &name)
 Return a pointer to a new liquidProperties created from name.
static autoPtr< liquidPropertiesNew (const dictionary &dict)
 Return a pointer to a new liquidProperties created from dictionary.
Static Public Member Functions inherited from thermophysicalProperties
static autoPtr< thermophysicalPropertiesNew (const word &name)
 Return a pointer to a new thermophysicalProperties created from name.
static autoPtr< thermophysicalPropertiesNew (const dictionary &dict)
 Return a pointer to a new thermophysicalProperties.

Static Public Attributes

static const bool incompressible = true
 Is the equation of state is incompressible i.e. rho != f(p).
static const bool isochoric = false
 Is the equation of state is isochoric i.e. rho = const.

Friends

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

Detailed Description

The thermophysical properties of a liquid.

Source files

Definition at line 47 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 36 of file liquidProperties.C.

References delta(), dipm(), omega(), Pc(), Pt(), Tb(), Tc(), thermophysicalProperties::thermophysicalProperties(), Tt(), Vc(), thermophysicalProperties::W(), and Zc().

Referenced by declareRunTimeSelectionTable(), declareRunTimeSelectionTable(), and operator<<.

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

◆ liquidProperties() [2/2]

liquidProperties ( const dictionary & dict)

Construct from dictionary.

Definition at line 65 of file liquidProperties.C.

References dict, and thermophysicalProperties::thermophysicalProperties().

Here is the call graph for this function:

◆ ~liquidProperties()

virtual ~liquidProperties ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "liquid" )

◆ declareRunTimeSelectionTable() [1/2]

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

References liquidProperties().

Here is the call graph for this function:

◆ declareRunTimeSelectionTable() [2/2]

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

References delta(), dict, dipm(), liquidProperties(), omega(), Pc(), Pt(), Tb(), Tc(), Tt(), Vc(), thermophysicalProperties::W(), and Zc().

Here is the call graph for this function:

◆ clone()

virtual autoPtr< liquidProperties > clone ( ) const
pure virtual

Construct and return clone.

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

◆ Clone()

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

References DebugInFunction, Foam::exit(), Foam::FatalError, FatalErrorInLookup, Foam::name(), and Foam::nl.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::humidityTemperatureCoupledMixedFvPatchScalarField(), liquidFilmThermo::initLiquid(), and liquidMixtureProperties::liquidMixtureProperties().

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

References DebugInFunction, dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::New(), and Foam::nl.

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 27 of file liquidPropertiesI.H.

◆ Tc()

Foam::scalar Tc ( ) const
inline

Critical temperature [K].

Definition at line 33 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ Pc()

Foam::scalar Pc ( ) const
inline

Critical pressure [Pa].

Definition at line 39 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ Vc()

Foam::scalar Vc ( ) const
inline

Critical volume [m^3/kmol].

Definition at line 45 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ Zc()

Foam::scalar Zc ( ) const
inline

Critical compressibility factor.

Definition at line 51 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ Tt()

Foam::scalar Tt ( ) const
inline

Triple point temperature [K].

Definition at line 57 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ Pt()

Foam::scalar Pt ( ) const
inline

Triple point pressure [Pa].

Definition at line 63 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ Tb()

Foam::scalar Tb ( ) const
inline

Normal boiling temperature [K].

Definition at line 69 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ dipm()

Foam::scalar dipm ( ) const
inline

Dipole moment [].

Definition at line 75 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ omega()

Foam::scalar omega ( ) const
inline

Pitzer's acentric factor [].

Definition at line 81 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ delta()

Foam::scalar delta ( ) const
inline

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

Definition at line 87 of file liquidPropertiesI.H.

Referenced by declareRunTimeSelectionTable(), and liquidProperties().

Here is the caller graph for this function:

◆ limit()

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

Limit temperature to be within the range.

Definition at line 21 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 93 of file liquidPropertiesI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ 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 99 of file liquidPropertiesI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Ha()

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

Absolute Enthalpy [J/kg].

Implements thermophysicalProperties.

Definition at line 105 of file liquidPropertiesI.H.

References h, p, and Foam::T().

Here is the call graph for this function:

◆ Hs()

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

Sensible enthalpy [J/kg].

Implements thermophysicalProperties.

Definition at line 111 of file liquidPropertiesI.H.

References h, p, and Foam::T().

Here is the call graph for this function:

◆ Hc()

Foam::scalar Hc ( ) const
inlinevirtual

Chemical enthalpy [J/kg].

Implements thermophysicalProperties.

Definition at line 117 of file liquidPropertiesI.H.

◆ S()

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

Implements thermophysicalProperties.

Definition at line 167 of file liquidProperties.C.

References NotImplemented, p, and Foam::T().

Here is the call graph for this function:

◆ pv()

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

Vapour pressure [Pa].

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Referenced by pvInvert().

Here is the call graph for this function:
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 aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Referenced by SprayParcel< ReactingParcel< ThermoParcel< KinematicParcel< particle > > > >::chi().

Here is the call graph for this function:
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 aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Referenced by SprayParcel< ReactingParcel< ThermoParcel< KinematicParcel< particle > > > >::chi().

Here is the call graph for this function:
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 aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Here is the call graph for this function:

◆ mu()

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

Liquid viscosity [Pa s].

Implements thermophysicalProperties.

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Referenced by ThermoSurfaceFilm< CloudType >::transferParcel().

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

◆ mug()

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

Vapour viscosity [Pa s].

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Here is the call graph for this function:

◆ kappa()

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

Liquid thermal conductivity [W/(m K)].

Implements thermophysicalProperties.

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Referenced by alphah().

Here is the call graph for this function:
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/ms].

Implements thermophysicalProperties.

Definition at line 123 of file liquidPropertiesI.H.

References Cp, kappa(), p, and Foam::T().

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 aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Here is the call graph for this function:

◆ sigma()

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

Surface tension [N/m].

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Referenced by ThermoSurfaceFilm< CloudType >::transferParcel().

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

◆ D() [1/2]

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

Vapour diffusivity [m2/s].

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References p, and Foam::T().

Here is the call graph for this function:

◆ D() [2/2]

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

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

Implemented in aC10H7CH3, Ar, bC10H7CH3, C10H22, C12H26, C13H28, C14H30, C16H34, C2H5OH, C2H6, C2H6O, C3H6O, C3H8, C4H10O, C6H14, C6H6, C7H16, C7H8, C8H10, C8H18, C9H20, CH3OH, CH4N2O, H2O, iC3H8O, IC8H18, IDEA, liquid, MB, N2, and nC3H8O.

References dict, f(), Foam::name(), os(), p, and Foam::T().

Here is the call graph for this function:

◆ pvInvert()

Foam::scalar pvInvert ( scalar p) const
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::endl(), Foam::nl, p, pv(), Foam::T(), and WarningInFunction.

Referenced by SprayParcel< ReactingParcel< ThermoParcel< KinematicParcel< particle > > > >::chi().

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

◆ readIfPresent() [1/3]

◆ readIfPresent() [2/3]

template<class Func>
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 130 of file liquidPropertiesI.H.

References dict, f(), and Foam::name().

Here is the call graph for this function:

◆ readIfPresent() [3/3]

template<class Liquid>
void readIfPresent ( Liquid & l,
const dictionary & dict )
inline

Read and set the function coefficients.

if present it the given dictionary

Definition at line 145 of file liquidPropertiesI.H.

References dict, and readIfPresent().

Here is the call graph for this function:

◆ writeData() [1/2]

◆ writeData() [2/2]

template<class Liquid>
void writeData ( const Liquid & l,
Ostream & os ) const
inline

Write the data for each of the property functions.

Definition at line 169 of file liquidPropertiesI.H.

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

Here is the call graph for this function:

◆ operator<<

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

Ostream Operator.

References liquidProperties(), and os().

Member Data Documentation

◆ incompressible

const bool incompressible = true
static

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

Definition at line 194 of file liquidProperties.H.

◆ isochoric

const bool isochoric = false
static

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

Definition at line 199 of file liquidProperties.H.


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/thermophysicalProperties/liquidProperties/liquidProperties/liquidProperties.H
  • src/thermophysicalModels/thermophysicalProperties/liquidProperties/liquidProperties/liquidProperties.C
  • src/thermophysicalModels/thermophysicalProperties/liquidProperties/liquidProperties/liquidPropertiesI.H