thermophysicalProperties Class Referenceabstract

Base-class for thermophysical properties of solids, liquids and gases providing an interface compatible with the templated thermodynamics packages. More...

Inheritance diagram for thermophysicalProperties:

Public Member Functions

 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...
 
virtual const wordname () const =0
 Return the name of the liquid. 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 psi (scalar p, scalar T) const =0
 Liquid compressibility [s^2/m^2]. More...
 
virtual scalar CpMCv (scalar p, scalar T) const =0
 Return (Cp - Cv) [J/(kg K]. More...
 
virtual scalar Cp (const scalar p, const scalar T) const =0
 Heat capacity at constant pressure [J/kg/K]. More...
 
virtual scalar Hs (const scalar p, const scalar T) const =0
 Sensible enthalpy [J/kg]. More...
 
virtual scalar Hf () const =0
 Enthalpy of formation [J/kg]. More...
 
virtual scalar Ha (const scalar p, const scalar T) const =0
 Absolute enthalpy [J/kg]. More...
 
virtual scalar S (const scalar p, const scalar T) const =0
 
virtual scalar mu (scalar p, scalar T) const =0
 Liquid viscosity [Pa s]. More...
 
virtual scalar kappa (scalar p, scalar T) const =0
 Liquid thermal conductivity [W/m/K]. More...
 
void readIfPresent (const dictionary &dict)
 Read and set the properties present it the given dictionary. More...
 
virtual void write (Ostream &os) const =0
 Write the function coefficients. More...
 

Static Public Member Functions

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...
 

Friends

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

Detailed Description

Base-class for thermophysical properties of solids, liquids and gases providing an interface compatible with the templated thermodynamics packages.

Source files

Definition at line 56 of file thermophysicalProperties.H.

Constructor & Destructor Documentation

◆ thermophysicalProperties() [1/2]

thermophysicalProperties ( scalar  W)

Construct from molecular weight.

Definition at line 39 of file thermophysicalProperties.C.

◆ thermophysicalProperties() [2/2]

Construct from dictionary.

Definition at line 45 of file thermophysicalProperties.C.

◆ ~thermophysicalProperties()

virtual ~thermophysicalProperties ( )
inlinevirtual

Destructor.

Definition at line 110 of file thermophysicalProperties.H.

Member Function Documentation

◆ TypeName()

TypeName ( "thermophysicalProperties"  )

◆ declareRunTimeSelectionTable() [1/2]

declareRunTimeSelectionTable ( autoPtr  ,
thermophysicalProperties  ,
()  ,
()   
)

◆ declareRunTimeSelectionTable() [2/2]

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

◆ New() [1/2]

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

Return a pointer to a new thermophysicalProperties created from name.

Definition at line 54 of file thermophysicalProperties.C.

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

Here is the call graph for this function:

◆ New() [2/2]

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

Return a pointer to a new thermophysicalProperties.

created from dictionary

Definition at line 81 of file thermophysicalProperties.C.

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

Here is the call graph for this function:

◆ name()

virtual const word& name ( ) const
pure virtual

Return the name of the liquid.

Implemented in liquidProperties.

◆ W()

Foam::scalar W ( ) const
inline

Molecular weight [kg/kmol].

Definition at line 34 of file thermophysicalPropertiesI.H.

◆ limit()

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

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

Definition at line 28 of file thermophysicalPropertiesI.H.

References Foam::T().

Here is the call graph for this function:

◆ rho()

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

Liquid density [kg/m^3].

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

Referenced by SprayParcel< ParcelType >::chi().

Here is the caller graph for this function:

◆ psi()

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

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

Note: currently it is assumed the liquid is incompressible

Implemented in liquidProperties.

◆ CpMCv()

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

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

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

Implemented in liquidProperties.

◆ Cp()

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

Heat capacity at constant pressure [J/kg/K].

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

◆ Hs()

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

◆ Hf()

virtual scalar Hf ( ) const
pure virtual

◆ Ha()

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

◆ S()

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

Implemented in liquidProperties.

◆ mu()

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

◆ kappa()

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

Liquid thermal conductivity [W/m/K].

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

◆ readIfPresent()

void readIfPresent ( const dictionary dict)

Read and set the properties present it the given dictionary.

Definition at line 112 of file thermophysicalProperties.C.

References dict, and dictionary::readIfPresent().

Referenced by liquidProperties::readIfPresent().

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

◆ write()

void write ( Ostream os) const
pure virtual

Write the function coefficients.

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

Definition at line 118 of file thermophysicalProperties.C.

References Foam::writeEntry().

Referenced by Foam::operator<<(), and liquidProperties::write().

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

Friends And Related Function Documentation

◆ operator<<

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

Ostream Operator.


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