Implements the Peng-Robinson equation of state for a mixture.  
 More...
#include <PengRobinsonMixture.hpp>
|  | 
| template<class MutableParams , class FluidState > | 
| static int | computeMolarVolumes (Scalar *Vm, const MutableParams ¶ms, unsigned phaseIdx, const FluidState &fs) | 
|  | Computes molar volumes where the Peng-Robinson EOS is true.  More... 
 | 
|  | 
| template<class FluidState , class Params > | 
| static Scalar | computeFugacityCoefficient (const FluidState &fs, const Params ¶ms, unsigned phaseIdx, unsigned compIdx) | 
|  | Returns the fugacity coefficient of an individual component in the phase.  More... 
 | 
|  | 
template<class Scalar, class StaticParameters>
class Opm::PengRobinsonMixture< Scalar, StaticParameters >
Implements the Peng-Robinson equation of state for a mixture. 
template<class Scalar , class StaticParameters > 
template<class FluidState , class Params > 
  
  | 
        
          | static Scalar Opm::PengRobinsonMixture< Scalar, StaticParameters >::computeFugacityCoefficient | ( | const FluidState & | fs, |  
          |  |  | const Params & | params, |  
          |  |  | unsigned | phaseIdx, |  
          |  |  | unsigned | compIdx |  
          |  | ) |  |  |  | inlinestatic | 
 
Returns the fugacity coefficient of an individual component in the phase. 
The fugacity coefficient  of a component
 of a component  is defined as
 is defined as 
![\[ f_i = \phi_i x_i \;, \]](form_66.png) 
 where  is the component's fugacity and
 is the component's fugacity and  is the component's mole fraction.
 is the component's mole fraction.
See:
R. Reid, et al.: The Properties of Gases and Liquids, 4th edition, McGraw-Hill, 1987, pp. 42-44, 143-145 
References Opm::LocalAd::exp(), Opm::LocalAd::max(), Opm::LocalAd::min(), Opm::LocalAd::pow(), and Opm::LocalAd::sqrt().
Referenced by Opm::FluidSystems::Spe5< Scalar >::fugacityCoefficient().
 
 
template<class Scalar , class StaticParameters > 
template<class MutableParams , class FluidState > 
  
  | 
        
          | static int Opm::PengRobinsonMixture< Scalar, StaticParameters >::computeMolarVolumes | ( | Scalar * | Vm, |  
          |  |  | const MutableParams & | params, |  
          |  |  | unsigned | phaseIdx, |  
          |  |  | const FluidState & | fs |  
          |  | ) |  |  |  | inlinestatic | 
 
Computes molar volumes where the Peng-Robinson EOS is true. 
- Returns
- Number of solutions. 
 
 
The documentation for this class was generated from the following file: