My Project
Loading...
Searching...
No Matches
Opm::BrineCo2Pvt< Scalar, Params, ContainerT > Class Template Reference

This class represents the Pressure-Volume-Temperature relations of the liquid phase for a CO2-Brine system. More...

#include <BrineCo2Pvt.hpp>

Public Types

using H2O = SimpleHuDuanH2O< Scalar >
 
using Brine = ::Opm::BrineDynamic< Scalar, H2O >
 
using CO2 = ::Opm::CO2< Scalar, Params >
 
using BinaryCoeffBrineCO2 = BinaryCoeff::Brine_CO2< Scalar, H2O, CO2 >
 The binary coefficients for brine and CO2 used by this fluid system.
 

Public Member Functions

 BrineCo2Pvt (const ContainerT &salinity, int activityModel=3, int thermalMixingModelSalt=1, int thermalMixingModelLiquid=2, Scalar T_ref=288.71, Scalar P_ref=101325)
 
 BrineCo2Pvt (const ContainerT &brineReferenceDensity, const ContainerT &co2ReferenceDensity, const ContainerT &salinity, int activityModel, Co2StoreConfig::SaltMixingType thermalMixingModelSalt, Co2StoreConfig::LiquidMixingType thermalMixingModelLiquid, Params params)
 
void setNumRegions (std::size_t numRegions)
 
void setVapPars (const Scalar, const Scalar)
 
void setReferenceDensities (unsigned regionIdx, Scalar rhoRefBrine, Scalar rhoRefCO2, Scalar)
 Initialize the reference densities of all fluids for a given PVT region.
 
void initEnd ()
 Finish initializing the oil phase PVT properties.
 
void setEnableDissolvedGas (bool yesno)
 Specify whether the PVT model should consider that the CO2 component can dissolve in the brine phase.
 
void setEnableSaltConcentration (bool yesno)
 Specify whether the PVT model should consider salt concentration from the fluidstate or a fixed salinty.
 
void setActivityModelSalt (int activityModel)
 Set activity coefficient model for salt in solubility model.
 
void setThermalMixingModel (int thermalMixingModelSalt, int thermalMixingModelLiquid)
 Set thermal mixing model for co2 in brine.
 
void setEzrokhiDenCoeff (const std::vector< EzrokhiTable > &denaqa)
 
void setEzrokhiViscCoeff (const std::vector< EzrokhiTable > &viscaqa)
 
unsigned numRegions () const
 Return the number of PVT regions which are considered by this PVT-object.
 
OPM_HOST_DEVICE Scalar hVap (unsigned) const
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation internalEnergy (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rs, const Evaluation &saltConcentration) const
 Returns the specific enthalpy [J/kg] of gas given a set of parameters.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation internalEnergy (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rs) const
 Returns the specific enthalpy [J/kg] of gas given a set of parameters.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation viscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturatedViscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &saltConcentration) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation viscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &, const Evaluation &saltConcentration) const
 Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturatedViscosity (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the dynamic viscosity [Pa s] of oil saturated gas at given pressure.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturatedInverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &saltconcentration) const
 Returns the formation volume factor [-] of the fluid phase.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rs, const Evaluation &saltConcentration) const
 Returns the formation volume factor [-] of the fluid phase.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation inverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rs) const
 Returns the formation volume factor [-] of the fluid phase.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturatedInverseFormationVolumeFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns the formation volume factor [-] of brine saturated with CO2 at a given pressure.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturationPressure (unsigned, const Evaluation &, const Evaluation &) const
 Returns the saturation pressure of the brine phase [Pa] depending on its mass fraction of the gas component.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturationPressure (unsigned, const Evaluation &, const Evaluation &, const Evaluation &) const
 Returns the saturation pressure of the brine phase [Pa] depending on its mass fraction of the gas component.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturatedGasDissolutionFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &, const Evaluation &) const
 Returns the gas dissoluiton factor $R_s$ [m^3/m^3] of the liquid phase.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturatedGasDissolutionFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &saltConcentration) const
 Returns the gas dissoluiton factor $R_s$ [m^3/m^3] of the liquid phase.
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation saturatedGasDissolutionFactor (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const
 Returns thegas dissoluiton factor $R_s$ [m^3/m^3] of the liquid phase.
 
OPM_HOST_DEVICE Scalar oilReferenceDensity (unsigned regionIdx) const
 
OPM_HOST_DEVICE Scalar waterReferenceDensity (unsigned regionIdx) const
 
OPM_HOST_DEVICE Scalar gasReferenceDensity (unsigned regionIdx) const
 
OPM_HOST_DEVICE Scalar salinity (unsigned regionIdx) const
 
OPM_HOST_DEVICE const ContainerT & getBrineReferenceDensity () const
 
OPM_HOST_DEVICE const ContainerT & getCo2ReferenceDensity () const
 
OPM_HOST_DEVICE const ContainerT & getSalinity () const
 
OPM_HOST_DEVICE const Params & getParams () const
 
OPM_HOST_DEVICE Co2StoreConfig::SaltMixingType getThermalMixingModelSalt () const
 
OPM_HOST_DEVICE Co2StoreConfig::LiquidMixingType getThermalMixingModelLiquid () const
 
OPM_HOST_DEVICE int getActivityModel () const
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation diffusionCoefficient (const Evaluation &temperature, const Evaluation &pressure, unsigned) const
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation density (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rs, const Evaluation &salinity) const
 
template<class Evaluation >
OPM_HOST_DEVICE Evaluation rsSat (unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &salinity) const
 

Friends

template<class ViewType , class OutputParams , class InputParams , class ContainerType , class ScalarT >
BrineCo2Pvt< ScalarT, OutputParams, ViewType > gpuistl::make_view (BrineCo2Pvt< ScalarT, InputParams, ContainerType > &)
 

Detailed Description

template<class Scalar, class Params = Opm::CO2Tables<double, std::vector<double>>, class ContainerT = std::vector<Scalar>>
class Opm::BrineCo2Pvt< Scalar, Params, ContainerT >

This class represents the Pressure-Volume-Temperature relations of the liquid phase for a CO2-Brine system.

Member Function Documentation

◆ saturationPressure() [1/2]

template<class Scalar , class Params = Opm::CO2Tables<double, std::vector<double>>, class ContainerT = std::vector<Scalar>>
template<class Evaluation >
OPM_HOST_DEVICE Evaluation Opm::BrineCo2Pvt< Scalar, Params, ContainerT >::saturationPressure ( unsigned  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

Returns the saturation pressure of the brine phase [Pa] depending on its mass fraction of the gas component.

Parameters
Rs

◆ saturationPressure() [2/2]

template<class Scalar , class Params = Opm::CO2Tables<double, std::vector<double>>, class ContainerT = std::vector<Scalar>>
template<class Evaluation >
OPM_HOST_DEVICE Evaluation Opm::BrineCo2Pvt< Scalar, Params, ContainerT >::saturationPressure ( unsigned  ,
const Evaluation &  ,
const Evaluation &  ,
const Evaluation &   
) const
inline

Returns the saturation pressure of the brine phase [Pa] depending on its mass fraction of the gas component.

Parameters
Rs

◆ setEnableDissolvedGas()

template<class Scalar , class Params = Opm::CO2Tables<double, std::vector<double>>, class ContainerT = std::vector<Scalar>>
void Opm::BrineCo2Pvt< Scalar, Params, ContainerT >::setEnableDissolvedGas ( bool  yesno)
inline

Specify whether the PVT model should consider that the CO2 component can dissolve in the brine phase.

By default, dissolved co2 is considered.

◆ setEnableSaltConcentration()

template<class Scalar , class Params = Opm::CO2Tables<double, std::vector<double>>, class ContainerT = std::vector<Scalar>>
void Opm::BrineCo2Pvt< Scalar, Params, ContainerT >::setEnableSaltConcentration ( bool  yesno)
inline

Specify whether the PVT model should consider salt concentration from the fluidstate or a fixed salinty.

By default, fixed salinity is considered


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