BrineCO2FluidSystem.hpp
Go to the documentation of this file.
229 template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
243 LhsEval xlBrine = min(1.0, max(0.0, decay<LhsEval>(fluidState.moleFraction(liquidPhaseIdx, BrineIdx))));
244 LhsEval xlCO2 = min(1.0, max(0.0, decay<LhsEval>(fluidState.moleFraction(liquidPhaseIdx, CO2Idx))));
263 LhsEval xgBrine = min(1.0, max(0.0, decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, BrineIdx))));
264 LhsEval xgCO2 = min(1.0, max(0.0, decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, CO2Idx))));
280 template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
307 template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
361 template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
379 template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
413 template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
438 template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Scalar Scalar The type used for scalar quantities. Definition: BaseFluidSystem.hpp:49 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 liquidDiffCoeff(const Evaluation &, const Evaluation &) Binary diffusion coefficent [m^2/s] of CO2 in the brine phase. Definition: Brine_CO2.hpp:73 A two-phase fluid system with water and CO2. Definition: BrineCO2FluidSystem.hpp:60 static bool isIdealMixture(unsigned phaseIdx) Returns true if and only if a fluid phase is assumed to be an ideal mixture. Definition: BrineCO2FluidSystem.hpp:132 static bool isIdealGas(unsigned phaseIdx) Returns true if and only if a fluid phase is assumed to be an ideal gas. Definition: BrineCO2FluidSystem.hpp:120 static LhsEval enthalpy(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx) Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg... Definition: BrineCO2FluidSystem.hpp:380 static const char * phaseName(unsigned phaseIdx) Return the human readable name of a fluid phase. Definition: BrineCO2FluidSystem.hpp:96 static LhsEval thermalConductivity(const FluidState &, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx) Thermal conductivity of a fluid phase [W/(m K)]. Definition: BrineCO2FluidSystem.hpp:414 static const int gasPhaseIdx The index of the gas phase. Definition: BrineCO2FluidSystem.hpp:91 static Scalar molarMass(unsigned compIdx) Return the molar mass of a component in [kg/mol]. Definition: BrineCO2FluidSystem.hpp:177 static bool isCompressible(unsigned phaseIdx) Returns true if and only if a fluid phase is assumed to be compressible. Definition: BrineCO2FluidSystem.hpp:142 static LhsEval density(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx) Calculate the density [kg/m^3] of a fluid phase. Definition: BrineCO2FluidSystem.hpp:230 static const int numComponents Number of chemical species in the fluid system. Definition: BrineCO2FluidSystem.hpp:153 static LhsEval fugacityCoefficient(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx, unsigned compIdx) Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase. Definition: BrineCO2FluidSystem.hpp:308 ::Opm::CO2< Scalar, CO2Tables > CO2 The type of the component for pure CO2 used by the fluid system. Definition: BrineCO2FluidSystem.hpp:76 static const int CO2Idx The index of the CO2 component. Definition: BrineCO2FluidSystem.hpp:158 static LhsEval viscosity(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx) Calculate the dynamic viscosity of a fluid phase [Pa*s]. Definition: BrineCO2FluidSystem.hpp:281 static bool isLiquid(unsigned phaseIdx) Return whether a phase is liquid. Definition: BrineCO2FluidSystem.hpp:110 BinaryCoeff::Brine_CO2< Scalar, H2O, CO2 > BinaryCoeffBrineCO2 The binary coefficients for brine and CO2 used by this fluid system. Definition: BrineCO2FluidSystem.hpp:79 static const int numPhases The number of phases considered by the fluid system. Definition: BrineCO2FluidSystem.hpp:86 static const int BrineIdx The index of the brine component. Definition: BrineCO2FluidSystem.hpp:156 static void init() Initialize the fluid system's static parameters. Definition: BrineCO2FluidSystem.hpp:192 static const int liquidPhaseIdx The index of the liquid phase. Definition: BrineCO2FluidSystem.hpp:89 static void init(Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress) Initialize the fluid system's static parameters using problem specific temperature and pressure range... Definition: BrineCO2FluidSystem.hpp:209 Brine_Tabulated Brine The type of the component for brine used by the fluid system. Definition: BrineCO2FluidSystem.hpp:74 static const char * componentName(unsigned compIdx) Return the human readable name of a component. Definition: BrineCO2FluidSystem.hpp:163 static LhsEval heatCapacity(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx) Specific isobaric heat capacity of a fluid phase [J/kg]. Definition: BrineCO2FluidSystem.hpp:439 static LhsEval diffusionCoefficient(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx, unsigned) Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (k... Definition: BrineCO2FluidSystem.hpp:362 static Scalar salinity The mass fraction of salt assumed to be in the brine. Definition: Brine.hpp:49 static Evaluation gasHeatCapacity(const Evaluation &temperature, const Evaluation &pressure) Specific isobaric heat capacity of the component [J/kg] as a liquid. Definition: CO2.hpp:255 static Scalar molarMass() The mass in [kg] of one mole of CO2. Definition: CO2.hpp:66 static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false) Specific enthalpy of gaseous CO2 [J/kg]. Definition: CO2.hpp:164 static Evaluation gasViscosity(Evaluation temperature, const Evaluation &pressure, bool extrapolate=false) The dynamic viscosity [Pa s] of CO2. Definition: CO2.hpp:203 static bool gasIsIdeal() Returns true iff the gas phase is assumed to be ideal. Definition: CO2.hpp:157 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 A generic class which tabulates all thermodynamic properties of a given component. Definition: TabulatedComponent.hpp:56 static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure) Specific enthalpy of the gas . Definition: TabulatedComponent.hpp:282 static Evaluation liquidHeatCapacity(const Evaluation &temperature, const Evaluation &pressure) Specific isobaric heat capacity of the liquid . Definition: TabulatedComponent.hpp:333 static void init(Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress) Initialize the tables. Definition: TabulatedComponent.hpp:72 static Scalar molarMass() The molar mass in of the component. Definition: TabulatedComponent.hpp:221 static const bool isTabulated Definition: TabulatedComponent.hpp:60 static Evaluation liquidViscosity(const Evaluation &temperature, const Evaluation &pressure) The dynamic viscosity of liquid. Definition: TabulatedComponent.hpp:478 static Evaluation liquidDensity(const Evaluation &temperature, const Evaluation &pressure) The density of liquid at a given pressure and temperature . Definition: TabulatedComponent.hpp:444 static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &pressure) Specific enthalpy of the liquid . Definition: TabulatedComponent.hpp:299 static const char * name() A human readable name for the component. Definition: TabulatedComponent.hpp:215 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 min(const Evaluation1 &arg1, const Evaluation2 &arg2) Definition: MathToolbox.hpp:346 ReturnEval_< Evaluation1, Evaluation2 >::type max(const Evaluation1 &arg1, const Evaluation2 &arg2) Definition: MathToolbox.hpp:341 auto scalarValue(const Evaluation &val) -> decltype(MathToolbox< Evaluation >::scalarValue(val)) Definition: MathToolbox.hpp:335 ReturnEval_< Evaluation1, Evaluation2 >::type pow(const Evaluation1 &base, const Evaluation2 &exp) Definition: MathToolbox.hpp:416 Definition: BrineCO2FluidSystem.hpp:71 |