BrineCO2FluidSystem.hpp
Go to the documentation of this file.
239 const LhsEval& temperature = FsToolbox::template toLhs<LhsEval>(fluidState.temperature(phaseIdx));
246 LhsEval xlBrine = LhsToolbox::min(1.0, LhsToolbox::max(0.0, FsToolbox::template toLhs<LhsEval>(fluidState.moleFraction(liquidPhaseIdx, BrineIdx))));
247 LhsEval xlCO2 = LhsToolbox::min(1.0, LhsToolbox::max(0.0, FsToolbox::template toLhs<LhsEval>(fluidState.moleFraction(liquidPhaseIdx, CO2Idx))));
266 LhsEval xgBrine = LhsToolbox::min(1.0, LhsToolbox::max(0.0, FsToolbox::template toLhs<LhsEval>(fluidState.moleFraction(gasPhaseIdx, BrineIdx))));
267 LhsEval xgCO2 = LhsToolbox::min(1.0, LhsToolbox::max(0.0, FsToolbox::template toLhs<LhsEval>(fluidState.moleFraction(gasPhaseIdx, CO2Idx))));
292 const LhsEval& temperature = FsToolbox::template toLhs<LhsEval>(fluidState.temperature(phaseIdx));
330 const LhsEval& temperature = FsToolbox::template toLhs<LhsEval>(fluidState.temperature(phaseIdx));
377 const LhsEval& temperature = FsToolbox::template toLhs<LhsEval>(fluidState.temperature(phaseIdx));
399 const LhsEval& temperature = FsToolbox::template toLhs<LhsEval>(fluidState.temperature(phaseIdx));
403 const LhsEval& XlCO2 = FsToolbox::template toLhs<LhsEval>(fluidState.massFraction(phaseIdx, CO2Idx));
412 const LhsEval& XCO2 = FsToolbox::template toLhs<LhsEval>(fluidState.massFraction(gasPhaseIdx, CO2Idx));
413 const LhsEval& XBrine = FsToolbox::template toLhs<LhsEval>(fluidState.massFraction(gasPhaseIdx, BrineIdx));
462 const LhsEval& temperature = FsToolbox::template toLhs<LhsEval>(fluidState.temperature(phaseIdx));
static const char * name() A human readable name for the component. Definition: TabulatedComponent.hpp:216 static void init(Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress) Initialize the tables. Definition: TabulatedComponent.hpp:73 static Evaluation liquidDiffCoeff(const Evaluation &, const Evaluation &) Binary diffusion coefficent [m^2/s] of CO2 in the brine phase. Definition: Brine_CO2.hpp:75 Binary coefficients for water and CO2. Opm::NullParameterCache ParameterCache The type of the fluid system's parameter cache. Definition: BrineCO2FluidSystem.hpp:74 static bool gasIsIdeal() Returns true iff the gas phase is assumed to be ideal. Definition: CO2.hpp:160 bool CheckDefined(const T &value OPM_UNUSED) Make valgrind complain if any of the memory occupied by an object is undefined. Definition: Valgrind.hpp:74 static Evaluation gasViscosity(Evaluation temperature, const Evaluation &pressure) The dynamic viscosity [Pa s] of CO2. Definition: CO2.hpp:202 Definition: MathToolbox.hpp:39 Definition: Air_Mesitylene.hpp:31 static Evaluation liquidDensity(const Evaluation &temperature, const Evaluation &pressure) The density of liquid at a given pressure and temperature . Definition: TabulatedComponent.hpp:449 static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure) The density of CO2 at a given pressure and temperature [kg/m^3]. Definition: CO2.hpp:190 A parameter cache which does nothing. Opm::BinaryCoeff::Brine_CO2< Scalar, CO2Tables > BinaryCoeffBrineCO2 The binary coefficients for brine and CO2 used by this fluid system. Definition: BrineCO2FluidSystem.hpp:71 Binary coefficients for water and nitrogen. static bool isIdealGas(unsigned phaseIdx) Returns true if and only if a fluid phase is assumed to be an ideal gas. Definition: BrineCO2FluidSystem.hpp:115 Evaluation< Scalar, VarSetTag, numVars > max(const Evaluation< Scalar, VarSetTag, numVars > &x1, const Evaluation< Scalar, VarSetTag, numVars > &x2) Definition: Math.hpp:114 static const int CO2Idx The index of the CO2 component. Definition: BrineCO2FluidSystem.hpp:153 A class for the CO2 fluid properties. static bool isIdealMixture(OPM_OPTIM_UNUSED unsigned phaseIdx) Returns true if and only if a fluid phase is assumed to be an ideal mixture. Definition: BrineCO2FluidSystem.hpp:127 static Evaluation liquidHeatCapacity(const Evaluation &temperature, const Evaluation &pressure) Specific isobaric heat capacity of the liquid . Definition: TabulatedComponent.hpp:330 static Scalar molarMass(unsigned compIdx) Return the molar mass of a component in [kg/mol]. Definition: BrineCO2FluidSystem.hpp:177 static void calculateMoleFractions(const Evaluation &temperature, const Evaluation &pg, Scalar salinity, const int knownPhaseIdx, Evaluation &xlCO2, Evaluation &ygH2O) Returns the mol (!) fraction of CO2 in the liquid phase and the mol_ (!) fraction of H2O in the gas p... Definition: Brine_CO2.hpp:99 static const int numPhases The number of phases considered by the fluid system. Definition: BrineCO2FluidSystem.hpp:81 static Scalar molarMass() The molar mass in of the component. Definition: TabulatedComponent.hpp:222 static const int gasPhaseIdx The index of the gas phase. Definition: BrineCO2FluidSystem.hpp:86 static LhsEval diffusionCoefficient(const FluidState &fluidState, const ParameterCache &, unsigned phaseIdx, unsigned) Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (k... Definition: BrineCO2FluidSystem.hpp:370 static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure) Specific enthalpy of gaseous CO2 [J/kg]. Definition: CO2.hpp:167 static LhsEval heatCapacity(const FluidState &fluidState, const ParameterCache &, unsigned phaseIdx) Specific isobaric heat capacity of a fluid phase [J/kg]. Definition: BrineCO2FluidSystem.hpp:454 static LhsEval viscosity(const FluidState &fluidState, const ParameterCache &, unsigned phaseIdx) Calculate the dynamic viscosity of a fluid phase [Pa*s]. Definition: BrineCO2FluidSystem.hpp:284 static LhsEval thermalConductivity(const FluidState &, const ParameterCache &, unsigned phaseIdx) Thermal conductivity of a fluid phase [W/(m K)]. Definition: BrineCO2FluidSystem.hpp:427 A class for the brine fluid properties. static Evaluation gasHeatCapacity(const Evaluation &temperature, const Evaluation &pressure) Specific isobaric heat capacity of the component [J/kg] as a liquid. Definition: CO2.hpp:254 static LhsEval density(const FluidState &fluidState, const ParameterCache &, unsigned phaseIdx) Calculate the density [kg/m^3] of a fluid phase. Definition: BrineCO2FluidSystem.hpp:230 static bool isLiquid(unsigned phaseIdx) Return whether a phase is liquid. Definition: BrineCO2FluidSystem.hpp:105 static void init() Initialize the fluid system's static parameters. Definition: BrineCO2FluidSystem.hpp:192 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 static Evaluation gasDiffCoeff(const Evaluation &temperature, const Evaluation &pressure) Binary diffusion coefficent [m^2/s] of water in the CO2 phase. Definition: Brine_CO2.hpp:58 A simple version of pure water. Binary coefficients for brine and CO2. static const int numComponents Number of chemical species in the fluid system. Definition: BrineCO2FluidSystem.hpp:148 Evaluation< Scalar, VarSetTag, numVars > min(const Evaluation< Scalar, VarSetTag, numVars > &x1, const Evaluation< Scalar, VarSetTag, numVars > &x2) Definition: Math.hpp:61 A generic class which tabulates all thermodynamic properties of a given component. Definition: TabulatedComponent.hpp:56 static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &pressure) Specific enthalpy of the liquid . Definition: TabulatedComponent.hpp:292 A two-phase fluid system with water and CO2. Definition: BrineCO2FluidSystem.hpp:59 static const bool isTabulated Definition: TabulatedComponent.hpp:61 Relations valid for an ideal gas. A generic class which tabulates all thermodynamic properties of a given component. Opm::CO2< Scalar, CO2Tables > CO2 The type of the component for pure CO2 used by the fluid system. Definition: BrineCO2FluidSystem.hpp:158 static bool isCompressible(OPM_OPTIM_UNUSED unsigned phaseIdx) Returns true if and only if a fluid phase is assumed to be compressible. Definition: BrineCO2FluidSystem.hpp:137 static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure) Specific enthalpy of the gas . Definition: TabulatedComponent.hpp:273 static Scalar molarMass() The mass in [kg] of one mole of CO2. Definition: CO2.hpp:67 static const char * componentName(unsigned compIdx) Return the human readable name of a component. Definition: BrineCO2FluidSystem.hpp:163 static const int liquidPhaseIdx The index of the liquid phase. Definition: BrineCO2FluidSystem.hpp:84 Evaluation< Scalar, VarSetTag, numVars > pow(const Evaluation< Scalar, VarSetTag, numVars > &base, Scalar exp) Definition: Math.hpp:312 Brine_Tabulated Brine The type of the component for brine used by the fluid system. Definition: BrineCO2FluidSystem.hpp:156 static LhsEval fugacityCoefficient(const FluidState &fluidState, const ParameterCache &, unsigned phaseIdx, unsigned compIdx) Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase. Definition: BrineCO2FluidSystem.hpp:313 A simplistic class representing the fluid properties. static const int BrineIdx The index of the brine component. Definition: BrineCO2FluidSystem.hpp:151 static const char * phaseName(unsigned phaseIdx) Return the human readable name of a fluid phase. Definition: BrineCO2FluidSystem.hpp:91 Provides the OPM_UNUSED macro. static Scalar salinity The mass fraction of salt assumed to be in the brine. Definition: Brine.hpp:47 The base class for all fluid systems. static Evaluation liquidViscosity(const Evaluation &temperature, const Evaluation &pressure) The dynamic viscosity of liquid. Definition: TabulatedComponent.hpp:487 static LhsEval enthalpy(const FluidState &fluidState, const ParameterCache &, unsigned phaseIdx) Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg... Definition: BrineCO2FluidSystem.hpp:390 |