Loading...
Searching...
No Matches
liquid Class Reference

Generic thermophysical properties class for a liquid in which the functions and coefficients for each property are run-time selected. More...

#include <liquid.H>

Inheritance diagram for liquid:
Collaboration diagram for liquid:

Public Member Functions

 TypeName ("liquid")
 Runtime type information.
 liquid (const dictionary &dict)
 Construct from dictionary.
 liquid (const liquid &rhs)
 Copy construct.
virtual autoPtr< liquidPropertiesclone () const
 Return a clone.
scalar rho (scalar p, scalar T) const
 Liquid density [kg/m^3].
scalar pv (scalar p, scalar T) const
 Vapour pressure [Pa].
scalar hl (scalar p, scalar T) const
 Heat of vapourisation [J/kg].
scalar Cp (scalar p, scalar T) const
 Liquid heat capacity [J/(kg K)].
scalar h (scalar p, scalar T) const
 Liquid Enthalpy [J/(kg)].
scalar Cpg (scalar p, scalar T) const
 Ideal gas heat capacity [J/(kg K)].
scalar B (scalar p, scalar T) const
 Second Virial Coefficient [m^3/kg].
scalar mu (scalar p, scalar T) const
 Liquid viscosity [Pa s].
scalar mug (scalar p, scalar T) const
 Vapour viscosity [Pa s].
scalar kappa (scalar p, scalar T) const
 Liquid thermal conductivity [W/(m K)].
scalar kappag (scalar p, scalar T) const
 Vapour thermal conductivity [W/(m K)].
scalar sigma (scalar p, scalar T) const
 Surface tension [N/m].
scalar D (scalar p, scalar T) const
 Vapour diffusivity [m2/s].
scalar D (scalar p, scalar T, scalar Wb) const
 Vapour diffusivity [m2/s] with specified binary pair.
void writeData (Ostream &os) const
 Write the function coefficients.
Public Member Functions inherited from liquidProperties
 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 ~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
scalar alphah (const scalar p, const scalar T) const
 Liquid thermal diffusivity of enthalpy [kg/ms].
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.
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.
void readIfPresent (const dictionary &dict)
 Read and set the properties present it the given dictionary.

Friends

class liquidProperties

Additional Inherited Members

Static Public Member Functions inherited from liquidProperties
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 inherited from liquidProperties
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.

Detailed Description

Generic thermophysical properties class for a liquid in which the functions and coefficients for each property are run-time selected.

Source files

Definition at line 50 of file liquid.H.

Constructor & Destructor Documentation

◆ liquid() [1/2]

liquid ( const dictionary & dict)
explicit

Construct from dictionary.

Definition at line 68 of file liquid.C.

References dict, liquidProperties, and Foam::NewOrNone().

Referenced by liquid(), and TypeName().

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

◆ liquid() [2/2]

liquid ( const liquid & rhs)

Copy construct.

Definition at line 88 of file liquid.C.

References clone(), liquid(), liquidProperties, and Foam::rhs().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "liquid" )

Runtime type information.

References dict, liquid(), and Foam::rhs().

Here is the call graph for this function:

◆ clone()

virtual autoPtr< liquidProperties > clone ( ) const
inlinevirtual

Return a clone.

Implements liquidProperties.

Definition at line 97 of file liquid.H.

References liquidProperties::Clone().

Referenced by liquid().

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

◆ rho()

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

◆ pv()

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

Vapour pressure [Pa].

Implements liquidProperties.

Definition at line 27 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ hl()

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

Heat of vapourisation [J/kg].

Implements liquidProperties.

Definition at line 33 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cp()

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

Liquid heat capacity [J/(kg K)].

Implements thermophysicalProperties.

Definition at line 39 of file liquidI.H.

References p, and Foam::T().

Referenced by HuaXu::CHFSubCool(), Tatsumoto::CHFSubCool(), Kutadeladze::qNucleate(), and alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs().

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

◆ h()

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

Liquid Enthalpy [J/(kg)].

Implements liquidProperties.

Definition at line 45 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cpg()

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

Ideal gas heat capacity [J/(kg K)].

Implements liquidProperties.

Definition at line 51 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ B()

Foam::scalar B ( scalar p,
scalar T ) const
inline

Second Virial Coefficient [m^3/kg].

Definition at line 57 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ mu()

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

Liquid viscosity [Pa s].

Implements liquidProperties.

Definition at line 63 of file liquidI.H.

References p, and Foam::T().

Referenced by Kutadeladze::qNucleate().

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

◆ mug()

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

Vapour viscosity [Pa s].

Implements liquidProperties.

Definition at line 69 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ kappa()

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

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

Implements liquidProperties.

Definition at line 75 of file liquidI.H.

References p, and Foam::T().

Referenced by BreenWestwater::htcFilmBoil(), and Kutadeladze::qNucleate().

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

◆ kappag()

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

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

Implements liquidProperties.

Definition at line 81 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ sigma()

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

Surface tension [N/m].

Implements liquidProperties.

Definition at line 87 of file liquidI.H.

References p, and Foam::T().

Referenced by Zuber::CHF(), HuaXu::CHFSubCool(), KocamustafaogullariIshii::dDeparture(), BreenWestwater::htcFilmBoil(), Jeschar::MHF(), and Kutadeladze::qNucleate().

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

◆ D() [1/2]

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

Vapour diffusivity [m2/s].

Implements liquidProperties.

Definition at line 93 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ D() [2/2]

Foam::scalar D ( scalar p,
scalar T,
scalar Wb ) const
inlinevirtual

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

Implements liquidProperties.

Definition at line 99 of file liquidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ writeData()

void writeData ( Ostream & os) const
virtual

Write the function coefficients.

Implements liquidProperties.

Definition at line 109 of file liquid.C.

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

Here is the call graph for this function:

◆ liquidProperties

friend class liquidProperties
friend

Definition at line 73 of file liquid.H.

References liquidProperties.

Referenced by liquid(), liquid(), and liquidProperties.


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