Classes |
Public Types |
Static Public Member Functions |
Static Public Attributes |
List of all members
Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase > Class Template Reference A fluid system for two-phase models assuming immiscibility and thermodynamic equilibrium. More...
Inheritance diagram for Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >:
Detailed Descriptiontemplate<class Scalar, class WettingPhase, class NonwettingPhase> class Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase > A fluid system for two-phase models assuming immiscibility and thermodynamic equilibrium. The wetting and the non-wetting phase can be defined individually via Member Typedef Documentation◆ Scalar
The type used for scalar quantities. Member Function Documentation◆ acentricFactor()
template<class Scalar , class WettingPhase , class NonwettingPhase >
The acentric factor of a component []. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingCompIdx. ◆ componentName()
template<class Scalar , class WettingPhase , class NonwettingPhase >
Return the human readable name of a component. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numComponents, and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingCompIdx. ◆ criticalPressure()
template<class Scalar , class WettingPhase , class NonwettingPhase >
Critical pressure of a component [Pa]. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingCompIdx. ◆ criticalTemperature()
template<class Scalar , class WettingPhase , class NonwettingPhase >
Critical temperature of a component [K]. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingCompIdx. ◆ density() [1/2]
Calculate the density [kg/m^3] of a fluid phase. ◆ density() [2/2]
template<class Scalar , class WettingPhase , class NonwettingPhase >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the density [kg/m^3] of a fluid phase. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numPhases, and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. ◆ diffusionCoefficient()
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. ◆ 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 WettingPhase , class NonwettingPhase >
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::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numPhases, and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. ◆ fugacityCoefficient() [1/2]
template<class Scalar , class WettingPhase , class NonwettingPhase >
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::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numComponents, and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numPhases. ◆ fugacityCoefficient() [2/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
◆ heatCapacity() [1/2]
Specific isobaric heat capacity of a fluid phase [J/kg]. ◆ heatCapacity() [2/2]
template<class Scalar , class WettingPhase , class NonwettingPhase >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Specific isobaric heat capacity of a fluid phase [J/kg]. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numPhases, and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. ◆ init()
template<class Scalar , class WettingPhase , class NonwettingPhase >
Initialize the fluid system's static parameters. ◆ isCompressible()
template<class Scalar , class WettingPhase , class NonwettingPhase >
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::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. ◆ isIdealGas()
template<class Scalar , class WettingPhase , class NonwettingPhase >
Returns true if and only if a fluid phase is assumed to be an ideal gas. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. ◆ isIdealMixture()
template<class Scalar , class WettingPhase , class NonwettingPhase >
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 , class WettingPhase , class NonwettingPhase >
Return whether a phase is liquid. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. ◆ molarMass()
template<class Scalar , class WettingPhase , class NonwettingPhase >
Return the molar mass of a component in [kg/mol]. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingCompIdx. ◆ phaseIsActive()
Returns whether a fluid phase is active. ◆ phaseName()
template<class Scalar , class WettingPhase , class NonwettingPhase >
Return the human readable name of a fluid phase. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numPhases. ◆ thermalConductivity() [1/2]
Thermal conductivity of a fluid phase [W/(m K)]. ◆ thermalConductivity() [2/2]
template<class Scalar , class WettingPhase , class NonwettingPhase >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Thermal conductivity of a fluid phase [W/(m K)]. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numPhases, and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. ◆ viscosity() [1/2]
Calculate the dynamic viscosity of a fluid phase [Pa*s]. ◆ viscosity() [2/2]
template<class Scalar , class WettingPhase , class NonwettingPhase >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the dynamic viscosity of a fluid phase [Pa*s]. References Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::numPhases, and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::wettingPhaseIdx. Member Data Documentation◆ nonWettingCompIdx
template<class Scalar , class WettingPhase , class NonwettingPhase >
Index of the non-wetting phase's component. ◆ nonWettingPhaseIdx
template<class Scalar , class WettingPhase , class NonwettingPhase >
Index of the non-wetting phase. ◆ numComponents
template<class Scalar , class WettingPhase , class NonwettingPhase >
Number of chemical species in the fluid system. Referenced by Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::componentName(), and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::fugacityCoefficient(). ◆ numPhases
template<class Scalar , class WettingPhase , class NonwettingPhase >
Number of fluid phases in the fluid system. Referenced by Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::density(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::enthalpy(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::fugacityCoefficient(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::heatCapacity(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::phaseName(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::thermalConductivity(), and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::viscosity(). ◆ wettingCompIdx
template<class Scalar , class WettingPhase , class NonwettingPhase >
Index of the wetting phase's component. Referenced by Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::acentricFactor(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::componentName(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::criticalPressure(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::criticalTemperature(), and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::molarMass(). ◆ wettingPhaseIdx
template<class Scalar , class WettingPhase , class NonwettingPhase >
Index of the wetting phase. Referenced by Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::density(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::enthalpy(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::heatCapacity(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::isCompressible(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::isIdealGas(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::isLiquid(), Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::thermalConductivity(), and Opm::TwoPhaseImmiscibleFluidSystem< Scalar, WettingPhase, NonwettingPhase >::viscosity(). The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||