Opm::PengRobinsonParams< Scalar > Class Template Reference

Stores and provides access to the Peng-Robinson parameters. More...

#include <PengRobinsonParams.hpp>

Inheritance diagram for Opm::PengRobinsonParams< Scalar >:
Inheritance graph

Public Member Functions

Scalar a () const
 Returns the attractive parameter 'a' of the Peng-Robinson fluid. More...
 
Scalar b () const
 Returns the repulsive parameter 'b' of the Peng-Robinson fluid. More...
 
void checkDefined () const
 If run under valgrind, this method produces an warning if the parameters where not determined correctly. More...
 
void setA (Scalar value)
 Set the attractive parameter 'a' of the Peng-Robinson fluid. More...
 
void setB (Scalar value)
 Set the repulsive parameter 'b' of the Peng-Robinson fluid. More...
 

Protected Attributes

Scalar a_
 
Scalar b_
 

Detailed Description

template<class Scalar>
class Opm::PengRobinsonParams< Scalar >

Stores and provides access to the Peng-Robinson parameters.

See:

R. Reid, et al.: The Properties of Gases and Liquids, 4th edition, McGraw-Hill, 1987, pp. 43-44

Member Function Documentation

◆ a()

◆ b()

◆ checkDefined()

template<class Scalar >
void Opm::PengRobinsonParams< Scalar >::checkDefined ( ) const
inline

If run under valgrind, this method produces an warning if the parameters where not determined correctly.

References Opm::PengRobinsonParams< Scalar >::a_, Opm::PengRobinsonParams< Scalar >::b_, and Opm::Valgrind::CheckDefined().

◆ setA()

template<class Scalar >
void Opm::PengRobinsonParams< Scalar >::setA ( Scalar  value)
inline

◆ setB()

template<class Scalar >
void Opm::PengRobinsonParams< Scalar >::setB ( Scalar  value)
inline

Member Data Documentation

◆ a_

◆ b_


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