www.mooseframework.org
PorousFlowFluidStateBrineCO2.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef POROUSFLOWFLUIDSTATEBRINECO2_H
9 #define POROUSFLOWFLUIDSTATEBRINECO2_H
10 
12 
16 
17 template <>
19 
31 {
32 public:
33  PorousFlowFluidStateBrineCO2(const InputParameters & parameters);
34 
35 protected:
36  virtual void thermophysicalProperties() override;
56  void massFractions(Real pressure,
57  Real temperature,
58  Real xnacl,
59  Real & xco2l,
60  Real & dxco2l_dp,
61  Real & dxco2l_dT,
62  Real & xh2og,
63  Real & dxh2og_dp,
64  Real & dxh2og_dT) const;
65 
79  Real pressure, Real temperature, Real & fco2, Real & dfco2_dp, Real & dfco2_dT) const;
80 
94  Real pressure, Real temperature, Real & fh2o, Real & dfh2o_dp, Real & dfh2o_dT) const;
95 
108  void activityCoefficient(Real pressure,
109  Real temperature,
110  Real xnacl,
111  Real & gamma,
112  Real & dgamma_dp,
113  Real & dgamma_dT) const;
114 
126  void equilibriumConstantH2O(Real temperature, Real & kh2o, Real & dkh2o_dT) const;
127 
139  void equilibriumConstantCO2(Real temperature, Real & kco2, Real & dkco2_dT) const;
140 
149  void
150  partialDensityCO2(Real temperature, Real & partial_density, Real & dpartial_density_dT) const;
151 
153  const VariableValue & _xnacl;
161  const Real _Mh2o;
163  const Real _invMh2o;
165  const Real _Mco2;
167  const Real _Mnacl;
169  const Real _Rbar;
170 };
171 
172 #endif // POROUSFLOWFLUIDSTATEBRINECO2_H
PorousFlowFluidStateBrineCO2(const InputParameters &parameters)
InputParameters validParams< PorousFlowFluidStateBrineCO2 >()
void fugacityCoefficientCO2(Real pressure, Real temperature, Real &fco2, Real &dfco2_dp, Real &dfco2_dT) const
Fugacity coefficient for CO2.
const Real _Mnacl
Molar mass of NaCL.
void fugacityCoefficientH2O(Real pressure, Real temperature, Real &fh2o, Real &dfh2o_dp, Real &dfh2o_dT) const
Fugacity coefficient for H2O.
const SinglePhaseFluidPropertiesPT & _water_fp
Fluid properties UserObject for H20.
const std::string temperature
Definition: NS.h:25
const BrineFluidProperties & _brine_fp
Fluid properties UserObject for brine.
Brine (NaCl in H2O) fluid properties as a function of pressure (Pa), temperature (K) and NaCl mass fr...
void activityCoefficient(Real pressure, Real temperature, Real xnacl, Real &gamma, Real &dgamma_dp, Real &dgamma_dT) const
Activity coefficient for CO2 in brine.
void massFractions(Real pressure, Real temperature, Real xnacl, Real &xco2l, Real &dxco2l_dp, Real &dxco2l_dT, Real &xh2og, Real &dxh2og_dp, Real &dxh2og_dT) const
Mass fractions of CO2 and brine calculated using mutual solubilities given by Spycher, Pruess and Ennis-King, CO2-H2O mixtures in the geological sequestration of CO2.
Common class for single phase fluid properties using a pressure and temperature formulation.
const VariableValue & _xnacl
Salt mass fraction (kg/kg)
void partialDensityCO2(Real temperature, Real &partial_density, Real &dpartial_density_dT) const
Partial density of dissolved CO2 From Garcia, Density of aqueous solutions of CO2, LBNL-49023 (2001)
const Real _Mh2o
Molar mass of water (kg/mol)
const SinglePhaseFluidPropertiesPT & _co2_fp
Fluid properties UserObject for CO2.
virtual void thermophysicalProperties() override
Calculates all required thermophysical properties and derivatives for each phase and fluid component...
const Real _invMh2o
Inverse of molar mass of H2O (mol/kg)
const std::string pressure
Definition: NS.h:24
const Real _Mco2
Molar mass of CO2 (kg/mol)
void equilibriumConstantH2O(Real temperature, Real &kh2o, Real &dkh2o_dT) const
Equilibrium constant for H2O from Spycher, Pruess and Ennis-King, CO2-H2O mixtures in the geological ...
const Real _Rbar
Molar gas constant in bar cm^3 /(K mol)
void equilibriumConstantCO2(Real temperature, Real &kco2, Real &dkco2_dT) const
Equilibrium constant for CO2 from Spycher, Pruess and Ennis-King, CO2-H2O mixtures in the geological ...
Base class for fluid states using a persistent set of primary variables for the mutliphase, multicomponent case.
Fluid state class for brine and CO2.