Classes |
Public Types |
Static Public Member Functions |
Static Public Attributes |
List of all members
Opm::BrineCO2FluidSystem< Scalar, CO2Tables > Class Template Reference A two-phase fluid system with water and CO2. More...
Inheritance diagram for Opm::BrineCO2FluidSystem< Scalar, CO2Tables >:
Detailed Descriptiontemplate<class Scalar, class CO2Tables> class Opm::BrineCO2FluidSystem< Scalar, CO2Tables > A two-phase fluid system with water and CO2. This fluid system uses the a tabulated CO2 component to achieve high thermodynamic accuracy and thus requires the tables of the sampling to be supplied as template argument. Member Typedef Documentation◆ BinaryCoeffBrineCO2
template<class Scalar , class CO2Tables >
The binary coefficients for brine and CO2 used by this fluid system. ◆ Brine
template<class Scalar , class CO2Tables >
The type of the component for brine used by the fluid system. ◆ CO2
template<class Scalar , class CO2Tables >
The type of the component for pure CO2 used by the fluid system. ◆ Scalar
The type used for scalar quantities. Member Function Documentation◆ acentricFactor()
Return the acetntric factor of a component. ◆ componentName()
template<class Scalar , class CO2Tables >
Return the human readable name of a component. References Opm::CO2< Scalar, CO2Tables >::name(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::name(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numComponents. ◆ density() [1/2]
Calculate the density [kg/m^3] of a fluid phase. ◆ density() [2/2]
template<class Scalar , class CO2Tables >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the density [kg/m^3] of a fluid phase. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::BrineIdx, Opm::Valgrind::CheckDefined(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::CO2Idx, Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::gasPhaseIdx, Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::liquidPhaseIdx, Opm::max(), Opm::min(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. ◆ diffusionCoefficient() [1/2]
Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)]. Molecular diffusion of a compoent is caused by a gradient of the mole fraction and follows the law
where is the component's mole fraction in phase , is the diffusion coefficient and is the diffusive flux. ◆ diffusionCoefficient() [2/2]
template<class Scalar , class CO2Tables >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)]. Molecular diffusion of a compoent is caused by a gradient of the mole fraction and follows the law
where is the component's mole fraction in phase , is the diffusion coefficient and is the diffusive flux. References Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::gasDiffCoeff(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::gasPhaseIdx, Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::liquidDiffCoeff(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::liquidPhaseIdx. ◆ enthalpy() [1/2]
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg]. ◆ enthalpy() [2/2]
template<class Scalar , class CO2Tables >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg]. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::BrineIdx, Opm::Valgrind::CheckDefined(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::CO2Idx, Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasEnthalpy(), Opm::CO2< Scalar, CO2Tables >::gasEnthalpy(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::gasPhaseIdx, Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::liquidPhaseIdx, Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases, and Opm::Brine< Scalar, H2O >::salinity. ◆ fugacityCoefficient() [1/2]
Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase. The fugacity coefficient is connected to the fugacity and the component's molarity by means of the relation
◆ fugacityCoefficient() [2/2]
template<class Scalar , class CO2Tables >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase. The fugacity coefficient is connected to the fugacity and the component's molarity by means of the relation
References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::BrineIdx, Opm::BinaryCoeff::Brine_CO2< Scalar, H2O, CO2, verbose >::calculateMoleFractions(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::CO2Idx, Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::gasPhaseIdx, Opm::max(), Opm::min(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numComponents, Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases, and Opm::Brine< Scalar, H2O >::salinity. ◆ heatCapacity() [1/2]
Specific isobaric heat capacity of a fluid phase [J/kg]. ◆ heatCapacity() [2/2]
template<class Scalar , class CO2Tables >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Specific isobaric heat capacity of a fluid phase [J/kg]. We employ the heat capacity of the pure phases. Todo: Include compositional effects.
References Opm::CO2< Scalar, CO2Tables >::gasHeatCapacity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidHeatCapacity(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::liquidPhaseIdx, and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. ◆ init() [1/2]
template<class Scalar , class CO2Tables >
Initialize the fluid system's static parameters. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::init(). Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::init(). ◆ init() [2/2]
template<class Scalar , class CO2Tables >
Initialize the fluid system's static parameters using problem specific temperature and pressure ranges.
References Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::init(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::isTabulated, and Opm::Brine< Scalar, H2O >::salinity. ◆ isCompressible()
template<class Scalar , class CO2Tables >
Returns true if and only if a fluid phase is assumed to be compressible. Compressible means that the partial derivative of the density to the fluid pressure is always larger than zero. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. ◆ isIdealGas()
template<class Scalar , class CO2Tables >
Returns true if and only if a fluid phase is assumed to be an ideal gas. References Opm::CO2< Scalar, CO2Tables >::gasIsIdeal(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::gasPhaseIdx, and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. ◆ isIdealMixture()
template<class Scalar , class CO2Tables >
Returns true if and only if a fluid phase is assumed to be an ideal mixture. We define an ideal mixture as a fluid phase where the fugacity coefficients of all components times the pressure of the phase are independent on the fluid composition. This assumption is true if Henry's law and Rault's law apply. If you are unsure what this function should return, it is safe to return false. The only damage done will be (slightly) increased computation times in some cases. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. ◆ isLiquid()
template<class Scalar , class CO2Tables >
Return whether a phase is liquid. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::gasPhaseIdx, and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. ◆ molarMass()
template<class Scalar , class CO2Tables >
Return the molar mass of a component in [kg/mol]. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::BrineIdx, Opm::CO2< Scalar, CO2Tables >::molarMass(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::molarMass(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numComponents. ◆ phaseIsActive()
Returns whether a fluid phase is active. ◆ phaseName()
template<class Scalar , class CO2Tables >
Return the human readable name of a fluid phase. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. ◆ thermalConductivity() [1/2]
template<class Scalar , class CO2Tables >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Thermal conductivity of a fluid phase [W/(m K)]. References Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::liquidPhaseIdx. ◆ thermalConductivity() [2/2]
Thermal conductivity of a fluid phase [W/(m K)]. ◆ viscosity() [1/2]
Calculate the dynamic viscosity of a fluid phase [Pa*s]. ◆ viscosity() [2/2]
template<class Scalar , class CO2Tables >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the dynamic viscosity of a fluid phase [Pa*s]. References Opm::Valgrind::CheckDefined(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::gasPhaseIdx, Opm::CO2< Scalar, CO2Tables >::gasViscosity(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::liquidPhaseIdx, Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidViscosity(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::numPhases. Member Data Documentation◆ BrineIdx
template<class Scalar , class CO2Tables >
◆ CO2Idx
template<class Scalar , class CO2Tables >
The index of the CO2 component. Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::density(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::enthalpy(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::fugacityCoefficient(). ◆ gasPhaseIdx
template<class Scalar , class CO2Tables >
The index of the gas phase. Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::density(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::diffusionCoefficient(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::enthalpy(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::fugacityCoefficient(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::isIdealGas(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::isLiquid(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::viscosity(). ◆ liquidPhaseIdx
template<class Scalar , class CO2Tables >
The index of the liquid phase. Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::density(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::diffusionCoefficient(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::enthalpy(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::heatCapacity(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::thermalConductivity(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::viscosity(). ◆ numComponents
template<class Scalar , class CO2Tables >
Number of chemical species in the fluid system. Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::componentName(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::fugacityCoefficient(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::molarMass(). ◆ numPhases
template<class Scalar , class CO2Tables >
The number of phases considered by the fluid system. Referenced by Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::density(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::enthalpy(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::fugacityCoefficient(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::heatCapacity(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::isCompressible(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::isIdealGas(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::isIdealMixture(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::isLiquid(), Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::phaseName(), and Opm::BrineCO2FluidSystem< Scalar, CO2Tables >::viscosity(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||