Classes |
Public Types |
Static Public Member Functions |
Static Public Attributes |
Static Protected Member Functions |
List of all members
Opm::Spe5FluidSystem< Scalar > Class Template Reference The fluid system for the oil, gas and water phases of the SPE5 problem. More...
Inheritance diagram for Opm::Spe5FluidSystem< Scalar >:
Detailed Descriptiontemplate<class Scalar> class Opm::Spe5FluidSystem< Scalar > The fluid system for the oil, gas and water phases of the SPE5 problem. This problem comprises , , , , , and as components. See: J.E. Killough, et al.: Fifth Comparative Solution Project: Evaluation of Miscible Flood Simulators, Ninth SPE Symposium on Reservoir Simulation, 1987 Member Typedef Documentation◆ H2O
template<class Scalar >
The component for pure water to be used. ◆ Scalar
The type used for scalar quantities. Member Function Documentation◆ acentricFactor()
template<class Scalar >
The acentric factor of a component []. References Opm::H2O< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::C10Idx, Opm::Spe5FluidSystem< Scalar >::C15Idx, Opm::Spe5FluidSystem< Scalar >::C1Idx, Opm::Spe5FluidSystem< Scalar >::C20Idx, Opm::Spe5FluidSystem< Scalar >::C3Idx, Opm::Spe5FluidSystem< Scalar >::C6Idx, and Opm::Spe5FluidSystem< Scalar >::H2OIdx. ◆ componentName()
template<class Scalar >
Return the human readable name of a component. References Opm::H2O< Scalar >::name(), and Opm::Spe5FluidSystem< Scalar >::numComponents. ◆ criticalMolarVolume()
template<class Scalar >
Molar volume of a component at the critical point [m^3/mol]. References Opm::Spe5FluidSystem< Scalar >::C10Idx, Opm::Spe5FluidSystem< Scalar >::C15Idx, Opm::Spe5FluidSystem< Scalar >::C1Idx, Opm::Spe5FluidSystem< Scalar >::C20Idx, Opm::Spe5FluidSystem< Scalar >::C3Idx, Opm::Spe5FluidSystem< Scalar >::C6Idx, Opm::H2O< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), and Opm::Spe5FluidSystem< Scalar >::H2OIdx. ◆ criticalPressure()
template<class Scalar >
Critical pressure of a component [Pa]. References Opm::Spe5FluidSystem< Scalar >::C10Idx, Opm::Spe5FluidSystem< Scalar >::C15Idx, Opm::Spe5FluidSystem< Scalar >::C1Idx, Opm::Spe5FluidSystem< Scalar >::C20Idx, Opm::Spe5FluidSystem< Scalar >::C3Idx, Opm::Spe5FluidSystem< Scalar >::C6Idx, Opm::H2O< Scalar >::criticalPressure(), and Opm::Spe5FluidSystem< Scalar >::H2OIdx. Referenced by Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(). ◆ criticalTemperature()
template<class Scalar >
Critical temperature of a component [K]. References Opm::Spe5FluidSystem< Scalar >::C10Idx, Opm::Spe5FluidSystem< Scalar >::C15Idx, Opm::Spe5FluidSystem< Scalar >::C1Idx, Opm::Spe5FluidSystem< Scalar >::C20Idx, Opm::Spe5FluidSystem< Scalar >::C3Idx, Opm::Spe5FluidSystem< Scalar >::C6Idx, Opm::H2O< Scalar >::criticalTemperature(), and Opm::Spe5FluidSystem< Scalar >::H2OIdx. Referenced by Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(). ◆ 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::Spe5ParameterCache< Scalar, FluidSystem >::molarVolume(), and Opm::Spe5FluidSystem< Scalar >::numPhases. ◆ 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()
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg]. ◆ 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::PengRobinsonMixture< Scalar, StaticParameters >::computeFugacityCoefficient(), Opm::Spe5FluidSystem< Scalar >::gasPhaseIdx, Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), Opm::Spe5FluidSystem< Scalar >::numComponents, Opm::Spe5FluidSystem< Scalar >::numPhases, Opm::Spe5FluidSystem< Scalar >::oilPhaseIdx, and Opm::Spe5FluidSystem< Scalar >::waterPhaseIdx. ◆ heatCapacity()
Specific isobaric heat capacity of a fluid phase [J/kg]. ◆ henryCoeffWater_()
template<class Scalar >
template<class LhsEval >
References Opm::Spe5FluidSystem< Scalar >::C10Idx, Opm::Spe5FluidSystem< Scalar >::C15Idx, Opm::Spe5FluidSystem< Scalar >::C1Idx, Opm::Spe5FluidSystem< Scalar >::C20Idx, Opm::Spe5FluidSystem< Scalar >::C3Idx, Opm::Spe5FluidSystem< Scalar >::C6Idx, Opm::Spe5FluidSystem< Scalar >::H2OIdx, and Opm::H2O< Scalar >::vaporPressure(). Referenced by Opm::Spe5FluidSystem< Scalar >::fugacityCoefficient(). ◆ init() [1/2]
Initialize the fluid system's static parameters. ◆ init() [2/2]
template<class Scalar >
Initialize the fluid system's static parameters.
References Opm::PengRobinsonParams< Scalar >::a(), Opm::PengRobinsonParams< Scalar >::b(), Opm::Spe5FluidSystem< Scalar >::gasPhaseIdx, Opm::PengRobinson< Scalar >::init(), Opm::max(), Opm::min(), Opm::Spe5FluidSystem< Scalar >::numComponents, Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::pureParams(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(). ◆ interactionCoefficient()
template<class Scalar >
Returns the interaction coefficient for two components. The values are given by the SPE5 paper. References Opm::Spe5FluidSystem< Scalar >::C15Idx, Opm::Spe5FluidSystem< Scalar >::C1Idx, Opm::Spe5FluidSystem< Scalar >::C20Idx, Opm::Spe5FluidSystem< Scalar >::C3Idx, Opm::max(), and Opm::min(). ◆ 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. In the SPE-5 problems all fluids are compressible... ◆ isIdealGas()
template<class Scalar >
Returns true if and only if a fluid phase is assumed to be an ideal gas. ◆ 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. References Opm::Spe5FluidSystem< Scalar >::waterPhaseIdx. ◆ isLiquid()
template<class Scalar >
Return whether a phase is liquid. References Opm::Spe5FluidSystem< Scalar >::gasPhaseIdx. ◆ molarMass()
template<class Scalar >
Return the molar mass of a component in [kg/mol]. References Opm::Spe5FluidSystem< Scalar >::C10Idx, Opm::Spe5FluidSystem< Scalar >::C15Idx, Opm::Spe5FluidSystem< Scalar >::C1Idx, Opm::Spe5FluidSystem< Scalar >::C20Idx, Opm::Spe5FluidSystem< Scalar >::C3Idx, Opm::Spe5FluidSystem< Scalar >::C6Idx, Opm::Spe5FluidSystem< Scalar >::H2OIdx, and Opm::H2O< Scalar >::molarMass(). ◆ phaseIsActive()
Returns whether a fluid phase is active. ◆ phaseName()
template<class Scalar >
Return the human readable name of a fluid phase. References Opm::Spe5FluidSystem< Scalar >::numPhases. ◆ thermalConductivity()
Thermal conductivity of a fluid phase [W/(m K)]. ◆ viscosity() [1/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::Spe5FluidSystem< Scalar >::gasPhaseIdx, Opm::Spe5FluidSystem< Scalar >::numPhases, Opm::Spe5FluidSystem< Scalar >::oilPhaseIdx, and Opm::Spe5FluidSystem< Scalar >::waterPhaseIdx. ◆ viscosity() [2/2]
Calculate the dynamic viscosity of a fluid phase [Pa*s]. Member Data Documentation◆ C10Idx
template<class Scalar >
Index of the C10 component. Referenced by Opm::Spe5FluidSystem< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), and Opm::Spe5FluidSystem< Scalar >::molarMass(). ◆ C15Idx
template<class Scalar >
Index of the C15 component. Referenced by Opm::Spe5FluidSystem< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), Opm::Spe5FluidSystem< Scalar >::interactionCoefficient(), and Opm::Spe5FluidSystem< Scalar >::molarMass(). ◆ C1Idx
template<class Scalar >
Index of the C1 component. Referenced by Opm::Spe5FluidSystem< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), Opm::Spe5FluidSystem< Scalar >::interactionCoefficient(), and Opm::Spe5FluidSystem< Scalar >::molarMass(). ◆ C20Idx
template<class Scalar >
Index of the C20 component. Referenced by Opm::Spe5FluidSystem< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), Opm::Spe5FluidSystem< Scalar >::interactionCoefficient(), and Opm::Spe5FluidSystem< Scalar >::molarMass(). ◆ C3Idx
template<class Scalar >
Index of the C3 component. Referenced by Opm::Spe5FluidSystem< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), Opm::Spe5FluidSystem< Scalar >::interactionCoefficient(), and Opm::Spe5FluidSystem< Scalar >::molarMass(). ◆ C6Idx
template<class Scalar >
Index of the C6 component. Referenced by Opm::Spe5FluidSystem< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), and Opm::Spe5FluidSystem< Scalar >::molarMass(). ◆ gasPhaseIdx
template<class Scalar >
Index of the gas phase. Referenced by Opm::Spe5FluidSystem< Scalar >::fugacityCoefficient(), Opm::Spe5FluidSystem< Scalar >::init(), Opm::Spe5FluidSystem< Scalar >::isLiquid(), and Opm::Spe5FluidSystem< Scalar >::viscosity(). ◆ H2OIdx
template<class Scalar >
Index of the water component. Referenced by Opm::Spe5FluidSystem< Scalar >::acentricFactor(), Opm::Spe5FluidSystem< Scalar >::criticalMolarVolume(), Opm::Spe5FluidSystem< Scalar >::criticalPressure(), Opm::Spe5FluidSystem< Scalar >::criticalTemperature(), Opm::Spe5FluidSystem< Scalar >::henryCoeffWater_(), and Opm::Spe5FluidSystem< Scalar >::molarMass(). ◆ numComponents
template<class Scalar >
Number of chemical species in the fluid system. Referenced by Opm::Spe5FluidSystem< Scalar >::componentName(), Opm::Spe5FluidSystem< Scalar >::fugacityCoefficient(), and Opm::Spe5FluidSystem< Scalar >::init(). ◆ numPhases
template<class Scalar >
Number of fluid phases in the fluid system. Referenced by Opm::Spe5FluidSystem< Scalar >::density(), Opm::Spe5FluidSystem< Scalar >::fugacityCoefficient(), Opm::Spe5FluidSystem< Scalar >::phaseName(), and Opm::Spe5FluidSystem< Scalar >::viscosity(). ◆ oilPhaseIdx
template<class Scalar >
Index of the oil phase. Referenced by Opm::Spe5FluidSystem< Scalar >::fugacityCoefficient(), and Opm::Spe5FluidSystem< Scalar >::viscosity(). ◆ waterPhaseIdx
template<class Scalar >
Index of the water phase. Referenced by Opm::Spe5FluidSystem< Scalar >::fugacityCoefficient(), Opm::Spe5FluidSystem< Scalar >::isIdealMixture(), and Opm::Spe5FluidSystem< Scalar >::viscosity(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||