Loading...
Searching...
No Matches
PengRobinsonGas< Specie > Class Template Reference

PengRobinsonGas gas equation of state. More...

#include <PengRobinsonGas.H>

Inheritance diagram for PengRobinsonGas< Specie >:
Collaboration diagram for PengRobinsonGas< Specie >:

Public Member Functions

 PengRobinsonGas (const Specie &sp, const scalar &Tc, const scalar &Vc, const scalar &Zc, const scalar &Pc, const scalar &omega)
 Construct from components.
 PengRobinsonGas (const dictionary &dict)
 Construct from dictionary.
 PengRobinsonGas (const word &name, const PengRobinsonGas &)
 Construct as named copy.
autoPtr< PengRobinsonGasclone () const
 Construct and return a clone.
scalar rho (scalar p, scalar T) const
 Return density [kg/m^3].
scalar H (const scalar p, const scalar T) const
 Return enthalpy departure [J/kg].
scalar Cp (scalar p, scalar T) const
 Return Cp departure [J/(kg K].
scalar E (const scalar p, const scalar T) const
 Return internal energy departure [J/kg].
scalar Cv (scalar p, scalar T) const
 Return Cv departure [J/(kg K].
scalar S (const scalar p, const scalar T) const
 Return entropy [J/(kg K)].
scalar psi (scalar p, scalar T) const
 Return compressibility rho/p [s^2/m^2].
scalar Z (scalar p, scalar T) const
 Return compression factor [].
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K].
void write (Ostream &os) const
 Write to Ostream.
void operator+= (const PengRobinsonGas &)
void operator*= (const scalar)

Static Public Member Functions

static autoPtr< PengRobinsonGasNew (const dictionary &dict)
static word typeName ()
 Return the instantiated type name.

Static Public Attributes

static const bool incompressible = false
 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

PengRobinsonGas operator+ (const PengRobinsonGas &, const PengRobinsonGas &)
PengRobinsonGas operator* (const scalar s, const PengRobinsonGas &)
PengRobinsonGas operator== (const PengRobinsonGas &, const PengRobinsonGas &)
Ostreamoperator<< (Ostream &, const PengRobinsonGas &)

Detailed Description

template<class Specie>
class Foam::PengRobinsonGas< Specie >

PengRobinsonGas gas equation of state.

Source files

Definition at line 85 of file PengRobinsonGas.H.

Constructor & Destructor Documentation

◆ PengRobinsonGas() [1/3]

template<class Specie>
PengRobinsonGas ( const Specie & sp,
const scalar & Tc,
const scalar & Vc,
const scalar & Zc,
const scalar & Pc,
const scalar & omega )
inline

Construct from components.

Definition at line 27 of file PengRobinsonGasI.H.

Referenced by operator*, operator+, operator+=(), operator<<, operator==, and PengRobinsonGas().

Here is the caller graph for this function:

◆ PengRobinsonGas() [2/3]

template<class Specie>
PengRobinsonGas ( const dictionary & dict)

Construct from dictionary.

Definition at line 27 of file PengRobinsonGas.C.

References dict.

◆ PengRobinsonGas() [3/3]

template<class Specie>
PengRobinsonGas ( const word & name,
const PengRobinsonGas< Specie > & pg )
inline

Construct as named copy.

Definition at line 49 of file PengRobinsonGasI.H.

References Foam::name(), and PengRobinsonGas().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

template<class Specie>
Foam::autoPtr< Foam::PengRobinsonGas< Specie > > clone ( ) const
inline

Construct and return a clone.

Definition at line 66 of file PengRobinsonGasI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

template<class Specie>
Foam::autoPtr< Foam::PengRobinsonGas< Specie > > New ( const dictionary & dict)
inlinestatic

Definition at line 74 of file PengRobinsonGasI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

template<class Specie>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 161 of file PengRobinsonGas.H.

◆ rho()

template<class Specie>
Foam::scalar rho ( scalar p,
scalar T ) const
inline

Return density [kg/m^3].

Definition at line 86 of file PengRobinsonGasI.H.

References p, R, Foam::T(), and Z().

Here is the call graph for this function:

◆ H()

template<class Specie>
Foam::scalar H ( const scalar p,
const scalar T ) const
inline

Return enthalpy departure [J/kg].

Definition at line 98 of file PengRobinsonGasI.H.

References alpha, B, Foam::log(), p, Pr(), R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

Here is the call graph for this function:

◆ Cp()

template<class Specie>
Foam::scalar Cp ( scalar p,
scalar T ) const
inline

Return Cp departure [J/(kg K].

Definition at line 120 of file PengRobinsonGasI.H.

References A, alpha, B, b, Foam::log(), M, N(), p, Foam::pow3(), Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

Here is the call graph for this function:

◆ E()

template<class Specie>
Foam::scalar E ( const scalar p,
const scalar T ) const
inline

Return internal energy departure [J/kg].

Definition at line 151 of file PengRobinsonGasI.H.

References alpha, B, Foam::log(), p, Pr(), R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

Here is the call graph for this function:

◆ Cv()

template<class Specie>
Foam::scalar Cv ( scalar p,
scalar T ) const
inline

Return Cv departure [J/(kg K].

Definition at line 172 of file PengRobinsonGasI.H.

References B, b, Foam::log(), p, Foam::pow3(), Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

Here is the call graph for this function:

◆ S()

template<class Specie>
Foam::scalar S ( const scalar p,
const scalar T ) const
inline

Return entropy [J/(kg K)].

Definition at line 195 of file PengRobinsonGasI.H.

References B, Foam::log(), p, Pr(), R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

Referenced by Z().

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

◆ psi()

template<class Specie>
Foam::scalar psi ( scalar p,
scalar T ) const
inline

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

Definition at line 222 of file PengRobinsonGasI.H.

References p, R, Foam::T(), and Z().

Here is the call graph for this function:

◆ Z()

template<class Specie>
Foam::scalar Z ( scalar p,
scalar T ) const
inline

Return compression factor [].

Definition at line 235 of file PengRobinsonGasI.H.

References A, Foam::acos(), alpha, B, b, Foam::cbrt(), Foam::cos(), D, Foam::mag(), Foam::max(), p, Foam::constant::mathematical::pi(), Foam::pow3(), S(), Foam::sqr(), Foam::sqrt(), and Foam::T().

Referenced by Cp(), CpMCv(), Cv(), E(), H(), psi(), rho(), and S().

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

◆ CpMCv()

template<class Specie>
Foam::scalar CpMCv ( scalar p,
scalar T ) const
inline

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

Definition at line 297 of file PengRobinsonGasI.H.

References A, alpha, B, b, M, N(), p, R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

Here is the call graph for this function:

◆ write()

template<class Specie>
void write ( Ostream & os) const

Write to Ostream.

Definition at line 47 of file PengRobinsonGas.C.

References os().

Here is the call graph for this function:

◆ operator+=()

template<class Specie>
void operator+= ( const PengRobinsonGas< Specie > & )
inline

Definition at line 325 of file PengRobinsonGasI.H.

References Foam::mag(), PengRobinsonGas(), and Y.

Here is the call graph for this function:

◆ operator*=()

template<class Specie>
void operator*= ( const scalar s)
inline

Definition at line 348 of file PengRobinsonGasI.H.

References s().

Here is the call graph for this function:

◆ operator+

template<class Specie>
PengRobinsonGas operator+ ( const PengRobinsonGas< Specie > & ,
const PengRobinsonGas< Specie > &  )
friend

References PengRobinsonGas().

◆ operator*

template<class Specie>
PengRobinsonGas operator* ( const scalar s,
const PengRobinsonGas< Specie > &  )
friend

References PengRobinsonGas(), and s().

◆ operator==

template<class Specie>
PengRobinsonGas operator== ( const PengRobinsonGas< Specie > & ,
const PengRobinsonGas< Specie > &  )
friend

References PengRobinsonGas().

◆ operator<<

template<class Specie>
Ostream & operator<< ( Ostream & ,
const PengRobinsonGas< Specie > &  )
friend

References PengRobinsonGas().

Member Data Documentation

◆ incompressible

template<class Specie>
const bool incompressible = false
static

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

Definition at line 172 of file PengRobinsonGas.H.

◆ isochoric

template<class Specie>
const bool isochoric = false
static

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

Definition at line 177 of file PengRobinsonGas.H.


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