| 
    
    
     Opm::PengRobinson< Scalar > Class Template Reference   Implements the Peng-Robinson equation of state for liquids and gases. More... 
 
 
 Detailed Descriptiontemplate<class Scalar>
 | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
      
  | 
  inlinestaticprotected | 
The Ambrose-Walton method to estimate the vapor pressure.
See:
D. Ambrose, J. Walton: "Vapor Pressures up to Their Critical Temperatures of Normal Alkanes and 1-Alkanols", Pure Appl. Chem., 61, 1395-1403, 1989
References Opm::Component< ScalarT, Implementation >::criticalPressure(), Opm::Component< ScalarT, Implementation >::criticalTemperature(), Opm::LocalAd::exp(), Opm::LocalAd::pow(), and Opm::LocalAd::sqrt().
Referenced by Opm::PengRobinson< Scalar >::computeVaporPressure().
      
  | 
  inlinestatic | 
Returns the fugacity coefficient for a given pressure and molar volume.
This is the fugacity coefficient times the pressure. The mole fraction of a component in a pure fluid is obviously always 100%, so it is not required.
| params | Parameters | 
      
  | 
  inlinestatic | 
Returns the fugacity coefficient for a given pressure and molar volume.
This is the same value as computeFugacity() because the mole fraction of a component in a pure fluid is obviously always 100%.
| params | Parameters | 
References Opm::LocalAd::exp(), Opm::LocalAd::pow(), and Opm::LocalAd::sqrt().
      
  | 
  inlinestatic | 
Computes molar volumes where the Peng-Robinson EOS is true.
References Opm::LocalAd::abs(), Valgrind::CheckDefined(), Opm::PengRobinson< Scalar >::findExtrema_(), Opm::PengRobinson< Scalar >::handleCriticalFluid_(), Opm::invertCubicPolynomial(), Opm::LocalAd::max(), Opm::LocalAd::min(), and Valgrind::SetUndefined().
Referenced by Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateMolarVolume_().
      
  | 
  inlinestatic | 
Predicts the vapor pressure for the temperature given in setTP().
Initially, the vapor pressure is roughly estimated by using the Ambrose-Walton method, then the Newton method is used to make difference between the gas and liquid phase fugacity zero.
References Opm::LocalAd::abs(), Opm::PengRobinson< Scalar >::ambroseWalton_(), Opm::Component< ScalarT, Implementation >::criticalPressure(), Opm::Component< ScalarT, Implementation >::criticalTemperature(), Opm::PengRobinson< Scalar >::fugacityDifference_(), and OPM_OPTIM_UNUSED.
      
  | 
  inlinestaticprotected | 
References Opm::LocalAd::abs(), Opm::PengRobinson< Scalar >::findExtrema_(), and OPM_OPTIM_UNUSED.
Referenced by Opm::PengRobinson< Scalar >::handleCriticalFluid_().
      
  | 
  inlinestaticprotected | 
References Opm::LocalAd::abs().
Referenced by Opm::PengRobinson< Scalar >::computeMolarVolume(), and Opm::PengRobinson< Scalar >::findCriticalPoint_().
      
  | 
  inlinestaticprotected | 
Returns the difference between the liquid and the gas phase fugacities in [bar].
| params | Parameters | 
| T | Temperature [K] | 
| p | Pressure [bar] | 
| VmLiquid | Molar volume of the liquid phase [cm^3/mol] | 
| VmGas | Molar volume of the gas phase [cm^3/mol] | 
Referenced by Opm::PengRobinson< Scalar >::computeVaporPressure().
      
  | 
  inlinestaticprotected | 
References Opm::PengRobinson< Scalar >::findCriticalPoint_(), Opm::LocalAd::max(), and Opm::LocalAd::min().
Referenced by Opm::PengRobinson< Scalar >::computeMolarVolume().
      
  | 
  inlinestatic | 
Referenced by Opm::FluidSystems::Spe5< Scalar >::init().