Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose > Class Template Reference

Binary coefficients for brine and CO2. More...

#include <Brine_CO2.hpp>

Static Public Member Functions

template<class Evaluation >
static Evaluation gasDiffCoeff (const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
 Binary diffusion coefficent [m^2/s] of water in the CO2 phase. More...
 
template<class Evaluation >
static Evaluation liquidDiffCoeff (const Evaluation &, const Evaluation &)
 Binary diffusion coefficent [m^2/s] of CO2 in the brine phase. More...
 
template<class Evaluation >
static void calculateMoleFractions (const Evaluation &temperature, const Evaluation &pg, Scalar salinity, const int knownPhaseIdx, Evaluation &xlCO2, Evaluation &ygH2O, bool extrapolate=false)
 Returns the mol (!) fraction of CO2 in the liquid phase and the mol_ (!) fraction of H2O in the gas phase for a given temperature, pressure, CO2 density and brine salinity. More...
 
template<class Evaluation >
static Evaluation henry (const Evaluation &temperature, bool extrapolate=false)
 Henry coefficent $\mathrm{[N/m^2]}$ for CO2 in brine. More...
 
template<class Evaluation >
static Evaluation fugacityCoefficientCO2 (const Evaluation &temperature, const Evaluation &pg, bool extrapolate=false)
 Returns the fugacity coefficient of the CO2 component in a water-CO2 mixture. More...
 
template<class Evaluation >
static Evaluation fugacityCoefficientH2O (const Evaluation &temperature, const Evaluation &pg, bool extrapolate=false)
 Returns the fugacity coefficient of the H2O component in a water-CO2 mixture. More...
 

Detailed Description

template<class Scalar, class H2O, class CO2, bool verbose = true>
class Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >

Binary coefficients for brine and CO2.

Member Function Documentation

◆ calculateMoleFractions()

template<class Scalar , class H2O , class CO2 , bool verbose = true>
template<class Evaluation >
static void Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::calculateMoleFractions ( const Evaluation &  temperature,
const Evaluation &  pg,
Scalar  salinity,
const int  knownPhaseIdx,
Evaluation &  xlCO2,
Evaluation &  ygH2O,
bool  extrapolate = false 
)
inlinestatic

Returns the mol (!) fraction of CO2 in the liquid phase and the mol_ (!) fraction of H2O in the gas phase for a given temperature, pressure, CO2 density and brine salinity.

Implemented according to "Spycher and Pruess 2005" applying the activity coefficient expression of "Duan and Sun 2003" and the correlations for pure water given in "Spycher, Pruess and Ennis-King 2003"

Parameters
temperaturethe temperature [K]
pgthe gas phase pressure [Pa]
salinitythe salinity [kg NaCl / kg solution]
knownPhaseIdxindicates which phases are present
xlCO2mole fraction of CO2 in brine [mol/mol]
ygH2Omole fraction of water in the gas phase [mol/mol]

Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::fugacityCoefficient().

◆ fugacityCoefficientCO2()

template<class Scalar , class H2O , class CO2 , bool verbose = true>
template<class Evaluation >
static Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::fugacityCoefficientCO2 ( const Evaluation &  temperature,
const Evaluation &  pg,
bool  extrapolate = false 
)
inlinestatic

Returns the fugacity coefficient of the CO2 component in a water-CO2 mixture.

(given in Spycher, Pruess and Ennis-King (2003))

Parameters
Tthe temperature [K]
pgthe gas phase pressure [Pa]

References Opm::Valgrind::CheckDefined(), Opm::exp(), Opm::CO2< Scalar, CO2Tables >::gasDensity(), Opm::log(), Opm::CO2< Scalar, CO2Tables >::molarMass(), Opm::pow(), and Opm::IdealGas< Scalar >::R.

Referenced by Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::henry().

◆ fugacityCoefficientH2O()

template<class Scalar , class H2O , class CO2 , bool verbose = true>
template<class Evaluation >
static Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::fugacityCoefficientH2O ( const Evaluation &  temperature,
const Evaluation &  pg,
bool  extrapolate = false 
)
inlinestatic

Returns the fugacity coefficient of the H2O component in a water-CO2 mixture.

(given in Spycher, Pruess and Ennis-King (2003))

Parameters
temperaturethe temperature [K]
pgthe gas phase pressure [Pa]

References Opm::exp(), Opm::CO2< Scalar, CO2Tables >::gasDensity(), Opm::log(), Opm::CO2< Scalar, CO2Tables >::molarMass(), Opm::pow(), and Opm::IdealGas< Scalar >::R.

◆ gasDiffCoeff()

template<class Scalar , class H2O , class CO2 , bool verbose = true>
template<class Evaluation >
static Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::gasDiffCoeff ( const Evaluation &  temperature,
const Evaluation &  pressure,
bool  extrapolate = false 
)
inlinestatic

Binary diffusion coefficent [m^2/s] of water in the CO2 phase.

According to "Diffusion of Water in Liquid and Supercritical Carbon Dioxide: An NMR Study",Bin Xu et al., 2002

Parameters
temperaturethe temperature [K]
pressurethe phase pressure [Pa]

References Opm::CO2< Scalar, CO2Tables >::gasViscosity().

Referenced by Opm::Co2GasPvt< Scalar >::diffusionCoefficient(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::diffusionCoefficient().

◆ henry()

template<class Scalar , class H2O , class CO2 , bool verbose = true>
template<class Evaluation >
static Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::henry ( const Evaluation &  temperature,
bool  extrapolate = false 
)
inlinestatic

◆ liquidDiffCoeff()

template<class Scalar , class H2O , class CO2 , bool verbose = true>
template<class Evaluation >
static Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::liquidDiffCoeff ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Binary diffusion coefficent [m^2/s] of CO2 in the brine phase.

Parameters
temperaturethe temperature [K]
pressurethe phase pressure [Pa]

Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::diffusionCoefficient().


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