opm-common
Loading...
Searching...
No Matches
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, class CO2Params>
static OPM_HOST_DEVICE Evaluation gasDiffCoeff (const CO2Params &params, const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
 Binary diffusion coefficent [m^2/s] of water in the CO2 phase.
template<class Evaluation>
static OPM_HOST_DEVICE Evaluation liquidDiffCoeff (const Evaluation &, const Evaluation &)
 Binary diffusion coefficent [m^2/s] of CO2 in the brine phase.
template<class Evaluation, class CO2Params>
static OPM_HOST_DEVICE void calculateMoleFractions (const CO2Params &params, const Evaluation &temperature, const Evaluation &pg, const Evaluation &salinity, const int knownPhaseIdx, Evaluation &xlCO2, Evaluation &ygH2O, const int &activityModel, 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.
template<class Evaluation>
static OPM_HOST_DEVICE Evaluation henry (const Evaluation &temperature, bool extrapolate=false)
 Henry coefficent $\mathrm{[N/m^2]}$ for CO2 in brine.
template<class Evaluation, class CO2Params>
static OPM_HOST_DEVICE Evaluation fugacityCoefficientCO2 (const CO2Params &params, const Evaluation &temperature, const Evaluation &pg, const Evaluation &yH2O, const bool highTemp, bool extrapolate=false, bool spycherPruess2005=false)
 Returns the fugacity coefficient of the CO2 component in a water-CO2 mixture.
template<class Evaluation, class CO2Params>
static OPM_HOST_DEVICE Evaluation fugacityCoefficientH2O (const CO2Params &params, const Evaluation &temperature, const Evaluation &pg, const Evaluation &yH2O, const bool highTemp, bool extrapolate=false, bool spycherPruess2005=false)
 Returns the fugacity coefficient of the H2O component in a water-CO2 mixture.

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, class CO2Params>
OPM_HOST_DEVICE void Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::calculateMoleFractions ( const CO2Params & params,
const Evaluation & temperature,
const Evaluation & pg,
const Evaluation & salinity,
const int knownPhaseIdx,
Evaluation & xlCO2,
Evaluation & ygH2O,
const int & activityModel,
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
paramsParameters to use
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]
activityModelActivity model to use
extrapolateTrue to use extrapolation

◆ fugacityCoefficientCO2()

template<class Scalar, class H2O, class CO2, bool verbose = true>
template<class Evaluation, class CO2Params>
OPM_HOST_DEVICE Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::fugacityCoefficientCO2 ( const CO2Params & params,
const Evaluation & temperature,
const Evaluation & pg,
const Evaluation & yH2O,
const bool highTemp,
bool extrapolate = false,
bool spycherPruess2005 = false )
inlinestatic

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

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

Parameters
paramsParameters to use
temperaturethe temperature [K]
pgthe gas phase pressure [Pa]
yH2Omole fraction of water
highTempTrue to use high temperature
extrapolateTrue to use extrapolation
spycherPruess2005True to Spycher-Pruess (2005) model

◆ fugacityCoefficientH2O()

template<class Scalar, class H2O, class CO2, bool verbose = true>
template<class Evaluation, class CO2Params>
OPM_HOST_DEVICE Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::fugacityCoefficientH2O ( const CO2Params & params,
const Evaluation & temperature,
const Evaluation & pg,
const Evaluation & yH2O,
const bool highTemp,
bool extrapolate = false,
bool spycherPruess2005 = false )
inlinestatic

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

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

Parameters
paramsParameters to use
temperaturethe temperature [K]
pgthe gas phase pressure [Pa]
yH2Omole fraction of water
highTempTrue to use high temperature
extrapolateTrue to use extrapolation
spycherPruess2005True to Spycher-Pruess (2005) model

◆ gasDiffCoeff()

template<class Scalar, class H2O, class CO2, bool verbose = true>
template<class Evaluation, class CO2Params>
OPM_HOST_DEVICE Evaluation Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::gasDiffCoeff ( const CO2Params & params,
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
paramsParameters to use
temperaturethe temperature [K]
pressurethe phase pressure [Pa]
extrapolateTrue to use extrapolation

◆ liquidDiffCoeff()

template<class Scalar, class H2O, class CO2, bool verbose = true>
template<class Evaluation>
OPM_HOST_DEVICE 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]

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