Brine_CO2.hpp
Go to the documentation of this file.
56 static Evaluation gasDiffCoeff(const Evaluation& temperature, const Evaluation& pressure, bool extrapolate = false)
73 static Evaluation liquidDiffCoeff(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
114 Evaluation m0_CO2 = molalityCO2inPureWater_(temperature, pg, extrapolate); // molality of CO2 in pure water
115 Evaluation gammaStar = activityCoefficient_(temperature, pg, molalityNaCl);// activity coefficient of CO2 in brine
122 // and the virtual equilibrium mole fraction of water in the non-existing gas phase can be estimated
128 // and the virtual equilibrium mole fraction of CO2 in the non-existing liquid phase can be estimated
151 static Evaluation fugacityCoefficientCO2(const Evaluation& temperature, const Evaluation& pg, bool extrapolate = false)
156 Evaluation V = 1 / (CO2::gasDensity(temperature, pg, extrapolate) / CO2::molarMass()) * 1.e6; // molar volume in cm^3/mol
158 Evaluation a_CO2 = (7.54e7 - 4.13e4 * temperature); // mixture parameter of Redlich-Kwong equation
188 static Evaluation fugacityCoefficientH2O(const Evaluation& temperature, const Evaluation& pg, bool extrapolate = false)
190 const Evaluation& V = 1 / (CO2::gasDensity(temperature, pg, extrapolate) / CO2::molarMass()) * 1.e6; // molar volume in cm^3/mol
192 const Evaluation& a_CO2 = (7.54e7 - 4.13e4 * temperature);// mixture parameter of Redlich-Kwong equation
245 static Evaluation molalityCO2inPureWater_(const Evaluation& temperature, const Evaluation& pg, bool extrapolate = false)
247 const Evaluation& A = computeA_(temperature, pg, extrapolate); // according to Spycher, Pruess and Ennis-King (2003)
248 const Evaluation& B = computeB_(temperature, pg, extrapolate); // according to Spycher, Pruess and Ennis-King (2003)
249 const Evaluation& yH2OinGas = (1 - B) / (1. / A - B); // equilibrium mol fraction of H2O in the gas phase
250 const Evaluation& xCO2inWater = B * (1 - yH2OinGas); // equilibrium mol fraction of CO2 in the water phase
284 static Evaluation computeA_(const Evaluation& temperature, const Evaluation& pg, bool extrapolate = false)
289 const Evaluation& k0_H2O = equilibriumConstantH2O_(temperature); // equilibrium constant for H2O at 1 bar
290 const Evaluation& phi_H2O = fugacityCoefficientH2O(temperature, pg, extrapolate); // fugacity coefficient of H2O for the water-CO2 system
304 static Evaluation computeB_(const Evaluation& temperature, const Evaluation& pg, bool extrapolate = false)
309 const Evaluation& k0_CO2 = equilibriumConstantCO2_(temperature); // equilibrium constant for CO2 at 1 bar
310 const Evaluation& phi_CO2 = fugacityCoefficientCO2(temperature, pg, extrapolate); // fugacity coefficient of CO2 for the water-CO2 system
Some templates to wrap the valgrind client request macros. 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. Definition: Brine_CO2.hpp:188 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 p... Definition: Brine_CO2.hpp:97 static Evaluation gasDiffCoeff(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false) Binary diffusion coefficent [m^2/s] of water in the CO2 phase. Definition: Brine_CO2.hpp:56 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. Definition: Brine_CO2.hpp:151 static Evaluation liquidDiffCoeff(const Evaluation &, const Evaluation &) Binary diffusion coefficent [m^2/s] of CO2 in the brine phase. Definition: Brine_CO2.hpp:73 static Evaluation henry(const Evaluation &temperature, bool extrapolate=false) Henry coefficent for CO2 in brine. Definition: Brine_CO2.hpp:139 static Scalar molarMass() The mass in [kg] of one mole of CO2. Definition: CO2.hpp:66 static Evaluation gasViscosity(Evaluation temperature, const Evaluation &pressure, bool extrapolate=false) The dynamic viscosity [Pa s] of CO2. Definition: CO2.hpp:203 static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false) The density of CO2 at a given pressure and temperature [kg/m^3]. Definition: CO2.hpp:189 bool CheckDefined(const T &value) Make valgrind complain if any of the memory occupied by an object is undefined. Definition: Valgrind.hpp:74 Definition: Air_Mesitylene.hpp:34 ReturnEval_< Evaluation1, Evaluation2 >::type pow(const Evaluation1 &base, const Evaluation2 &exp) Definition: MathToolbox.hpp:416 |