Opm::H2ON2FluidSystem< Scalar > Class Template Reference A two-phase fluid system with water and nitrogen as components. More...
Inheritance diagram for Opm::H2ON2FluidSystem< Scalar >:
Detailed Descriptiontemplate<class Scalar> class Opm::H2ON2FluidSystem< Scalar > A two-phase fluid system with water and nitrogen as components. Member Typedef Documentation◆ H2O
template<class Scalar >
The component for pure water. ◆ N2
template<class Scalar >
The component for pure nitrogen. ◆ ParameterCache
template<class Scalar >
template<class Evaluation >
The type of the fluid system's parameter cache. The parameter cache can be used to avoid re-calculating expensive parameters for multiple quantities. Be aware that what the parameter cache actually does is specific for each fluid system and that it is opaque outside the fluid system. ◆ Scalar
The type used for scalar quantities. Member Function Documentation◆ acentricFactor()
template<class Scalar >
The acentric factor of a component []. References Opm::N2< Scalar >::acentricFactor(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::acentricFactor(), Opm::H2ON2FluidSystem< Scalar >::H2OIdx, and Opm::H2ON2FluidSystem< Scalar >::N2Idx. ◆ componentName()
template<class Scalar >
Return the human readable name of a component. References Opm::N2< Scalar >::name(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::name(), and Opm::H2ON2FluidSystem< Scalar >::numComponents. ◆ criticalPressure()
template<class Scalar >
Critical pressure of a component [Pa]. References Opm::N2< Scalar >::criticalPressure(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::criticalPressure(), Opm::H2ON2FluidSystem< Scalar >::H2OIdx, and Opm::H2ON2FluidSystem< Scalar >::N2Idx. ◆ criticalTemperature()
template<class Scalar >
Critical temperature of a component [K]. References Opm::N2< Scalar >::criticalTemperature(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::criticalTemperature(), Opm::H2ON2FluidSystem< Scalar >::H2OIdx, and Opm::H2ON2FluidSystem< Scalar >::N2Idx. ◆ density() [1/2]
Calculate the density [kg/m^3] of a fluid phase. ◆ density() [2/2]
template<class Scalar >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the density [kg/m^3] of a fluid phase. References Opm::N2< Scalar >::gasDensity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasDensity(), Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx, Opm::H2ON2FluidSystem< Scalar >::H2OIdx, Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidDensity(), Opm::H2ON2FluidSystem< Scalar >::liquidPhaseIdx, Opm::max(), Opm::N2< Scalar >::molarMass(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::molarMass(), Opm::H2ON2FluidSystem< Scalar >::N2Idx, Opm::H2ON2FluidSystem< Scalar >::numComponents, and Opm::H2ON2FluidSystem< Scalar >::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 >
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::H2O_N2::gasDiffCoeff(), Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx, Opm::BinaryCoeff::H2O_N2::liquidDiffCoeff(), and Opm::H2ON2FluidSystem< Scalar >::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 >
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::Valgrind::CheckDefined(), Opm::N2< Scalar >::gasEnthalpy(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasEnthalpy(), Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx, Opm::H2ON2FluidSystem< Scalar >::H2OIdx, Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidEnthalpy(), Opm::H2ON2FluidSystem< Scalar >::liquidPhaseIdx, and Opm::H2ON2FluidSystem< Scalar >::N2Idx. ◆ 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 >
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::H2ON2FluidSystem< Scalar >::gasPhaseIdx, Opm::H2ON2FluidSystem< Scalar >::H2OIdx, Opm::BinaryCoeff::H2O_N2::henry(), Opm::H2ON2FluidSystem< Scalar >::liquidPhaseIdx, Opm::H2ON2FluidSystem< Scalar >::numComponents, Opm::H2ON2FluidSystem< Scalar >::numPhases, and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::vaporPressure(). ◆ heatCapacity() [1/2]
Specific isobaric heat capacity of a fluid phase [J/kg]. ◆ heatCapacity() [2/2]
template<class Scalar >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Specific isobaric heat capacity of a fluid phase [J/kg]. References Opm::N2< Scalar >::gasHeatCapacity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasHeatCapacity(), Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx, Opm::H2ON2FluidSystem< Scalar >::H2OIdx, Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidHeatCapacity(), Opm::H2ON2FluidSystem< Scalar >::liquidPhaseIdx, and Opm::H2ON2FluidSystem< Scalar >::N2Idx. ◆ init() [1/2]
template<class Scalar >
Initialize the fluid system's static parameters. If a tabulated H2O component is used, we do our best to create tables that always work. References Opm::H2ON2FluidSystem< Scalar >::init(). Referenced by Opm::H2ON2FluidSystem< Scalar >::init(). ◆ init() [2/2]
template<class Scalar >
Initialize the fluid system's static parameters using problem specific temperature and pressure ranges.
References Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::init(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::isTabulated. ◆ isCompressible()
template<class Scalar >
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::H2ON2FluidSystem< Scalar >::gasPhaseIdx, and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidIsCompressible(). ◆ isIdealGas()
template<class Scalar >
Returns true if and only if a fluid phase is assumed to be an ideal gas. References Opm::N2< Scalar >::gasIsIdeal(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasIsIdeal(), and Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx. ◆ isIdealMixture()
template<class Scalar >
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. ◆ isLiquid()
template<class Scalar >
Return whether a phase is liquid. References Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx. ◆ molarMass()
template<class Scalar >
Return the molar mass of a component in [kg/mol]. References Opm::H2ON2FluidSystem< Scalar >::H2OIdx, Opm::N2< Scalar >::molarMass(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::molarMass(), and Opm::H2ON2FluidSystem< Scalar >::N2Idx. Referenced by Opm::H2ON2FluidSystem< Scalar >::viscosity(). ◆ phaseIsActive()
Returns whether a fluid phase is active. ◆ phaseName()
template<class Scalar >
Return the human readable name of a fluid phase. References Opm::H2ON2FluidSystem< Scalar >::numPhases. ◆ thermalConductivity() [1/2]
Thermal conductivity of a fluid phase [W/(m K)]. ◆ thermalConductivity() [2/2]
template<class Scalar >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Thermal conductivity of a fluid phase [W/(m K)]. References Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx, Opm::N2< Scalar >::gasThermalConductivity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasThermalConductivity(), Opm::H2ON2FluidSystem< Scalar >::H2OIdx, Opm::H2ON2FluidSystem< Scalar >::liquidPhaseIdx, Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidThermalConductivity(), Opm::H2ON2FluidSystem< Scalar >::N2Idx, and Opm::H2ON2FluidSystem< Scalar >::numPhases. ◆ viscosity() [1/2]
Calculate the dynamic viscosity of a fluid phase [Pa*s]. ◆ viscosity() [2/2]
template<class Scalar >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the dynamic viscosity of a fluid phase [Pa*s]. References Opm::H2ON2FluidSystem< Scalar >::gasPhaseIdx, Opm::N2< Scalar >::gasViscosity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasViscosity(), Opm::H2ON2FluidSystem< Scalar >::liquidPhaseIdx, Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidViscosity(), Opm::max(), Opm::H2ON2FluidSystem< Scalar >::molarMass(), Opm::H2ON2FluidSystem< Scalar >::numComponents, Opm::H2ON2FluidSystem< Scalar >::numPhases, Opm::pow(), Opm::sqrt(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::vaporPressure(). Member Data Documentation◆ gasPhaseIdx
template<class Scalar >
Index of the gas phase. Referenced by Opm::H2ON2FluidSystem< Scalar >::density(), Opm::H2ON2FluidSystem< Scalar >::diffusionCoefficient(), Opm::H2ON2FluidSystem< Scalar >::enthalpy(), Opm::H2ON2FluidSystem< Scalar >::fugacityCoefficient(), Opm::H2ON2FluidSystem< Scalar >::heatCapacity(), Opm::H2ON2FluidSystem< Scalar >::isCompressible(), Opm::H2ON2FluidSystem< Scalar >::isIdealGas(), Opm::H2ON2FluidSystem< Scalar >::isLiquid(), Opm::H2ON2FluidSystem< Scalar >::thermalConductivity(), and Opm::H2ON2FluidSystem< Scalar >::viscosity(). ◆ H2OIdx
template<class Scalar >
The component index of water. Referenced by Opm::H2ON2FluidSystem< Scalar >::acentricFactor(), Opm::H2ON2FluidSystem< Scalar >::criticalPressure(), Opm::H2ON2FluidSystem< Scalar >::criticalTemperature(), Opm::H2ON2FluidSystem< Scalar >::density(), Opm::H2ON2FluidSystem< Scalar >::enthalpy(), Opm::H2ON2FluidSystem< Scalar >::fugacityCoefficient(), Opm::H2ON2FluidSystem< Scalar >::heatCapacity(), Opm::H2ON2FluidSystem< Scalar >::molarMass(), and Opm::H2ON2FluidSystem< Scalar >::thermalConductivity(). ◆ liquidPhaseIdx
template<class Scalar >
Index of the liquid phase. Referenced by Opm::H2ON2FluidSystem< Scalar >::density(), Opm::H2ON2FluidSystem< Scalar >::diffusionCoefficient(), Opm::H2ON2FluidSystem< Scalar >::enthalpy(), Opm::H2ON2FluidSystem< Scalar >::fugacityCoefficient(), Opm::H2ON2FluidSystem< Scalar >::heatCapacity(), Opm::H2ON2FluidSystem< Scalar >::thermalConductivity(), and Opm::H2ON2FluidSystem< Scalar >::viscosity(). ◆ N2Idx
template<class Scalar >
The component index of molecular nitrogen. Referenced by Opm::H2ON2FluidSystem< Scalar >::acentricFactor(), Opm::H2ON2FluidSystem< Scalar >::criticalPressure(), Opm::H2ON2FluidSystem< Scalar >::criticalTemperature(), Opm::H2ON2FluidSystem< Scalar >::density(), Opm::H2ON2FluidSystem< Scalar >::enthalpy(), Opm::H2ON2FluidSystem< Scalar >::heatCapacity(), Opm::H2ON2FluidSystem< Scalar >::molarMass(), and Opm::H2ON2FluidSystem< Scalar >::thermalConductivity(). ◆ numComponents
template<class Scalar >
Number of chemical species in the fluid system. Referenced by Opm::H2ON2FluidSystem< Scalar >::componentName(), Opm::H2ON2FluidSystem< Scalar >::density(), Opm::H2ON2FluidSystem< Scalar >::fugacityCoefficient(), and Opm::H2ON2FluidSystem< Scalar >::viscosity(). ◆ numPhases
template<class Scalar >
Number of fluid phases in the fluid system. Referenced by Opm::H2ON2FluidSystem< Scalar >::density(), Opm::H2ON2FluidSystem< Scalar >::fugacityCoefficient(), Opm::H2ON2FluidSystem< Scalar >::phaseName(), Opm::H2ON2FluidSystem< Scalar >::thermalConductivity(), and Opm::H2ON2FluidSystem< Scalar >::viscosity(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||