Classes |
Public Types |
Static Public Member Functions |
Static Public Attributes |
Static Protected Attributes |
List of all members
Opm::BlackOilFluidSystem< Scalar, IndexTraits > Class Template Reference A fluid system which uses the black-oil model assumptions to calculate termodynamically meaningful quantities. More...
Inheritance diagram for Opm::BlackOilFluidSystem< Scalar, IndexTraits >:
Detailed Descriptiontemplate<class Scalar, class IndexTraits = BlackOilDefaultIndexTraits> class Opm::BlackOilFluidSystem< Scalar, IndexTraits > A fluid system which uses the black-oil model assumptions to calculate termodynamically meaningful quantities.
Member Typedef Documentation◆ GasPvt
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
◆ OilPvt
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
◆ Scalar
The type used for scalar quantities. ◆ WaterPvt
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Member Function Documentation◆ acentricFactor()
Return the acetntric factor of a component. ◆ activeToCanonicalPhaseIdx()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
◆ bubblePointPressure()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the bubble point pressure $P_b$ using the current Rs. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturationPressure(). ◆ canonicalToActivePhaseIdx()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
◆ componentName()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return the human readable name of a component. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterCompIdx. ◆ convertRsToXoG()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert a gas dissolution factor to the the corresponding mass fraction of the gas component in the oil phase. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(). ◆ convertRvToXgO()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert an oil vaporization factor to the corresponding mass fraction of the oil component in the gas phase. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(). ◆ convertRvwToXgW()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert an water vaporization factor to the corresponding mass fraction of the water component in the gas phase. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ convertXgOToRv()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert the mass fraction of the oil component in the gas phase to the corresponding oil vaporization factor. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx. ◆ convertXgOToxgO()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert a oil mass fraction in the gas phase the corresponding mole fraction. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(). ◆ convertxgOToXgO()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert a oil mole fraction in the gas phase the corresponding mass fraction. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx. ◆ convertXgWToRvw()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert the mass fraction of the water component in the gas phase to the corresponding water vaporization factor. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ convertXoGToRs()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert the mass fraction of the gas component in the oil phase to the corresponding gas dissolution factor. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx. ◆ convertXoGToxoG()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert a gas mass fraction in the oil phase the corresponding mole fraction. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(). ◆ convertxoGToXoG()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class LhsEval >
Convert a gas mole fraction in the oil phase the corresponding mass fraction. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx. ◆ density() [1/3]
Calculate the density [kg/m^3] of a fluid phase. ◆ density() [2/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the density [kg/m^3] of a fluid phase. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::ParameterCache< EvaluationT >::regionIndex(). ◆ density() [3/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Calculate the density [kg/m^3] of a fluid phase. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableDissolvedGas(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedOil(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedWater(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::referenceDensity(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ dewPointPressure()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the dew point pressure $P_d$ using the current Rv. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturationPressure(). ◆ diffusionCoefficient() [1/3]
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/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
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::GasPvtMultiplexer< Scalar, enableThermal >::diffusionCoefficient(), Opm::OilPvtMultiplexer< Scalar, enableThermal >::diffusionCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableDiffusion(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPvt(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPvt(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::ParameterCache< EvaluationT >::regionIndex(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ diffusionCoefficient() [3/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
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::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(). ◆ enableDiffusion()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns whether the fluid system should consider diffusion. By default, diffusion is not considered. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(). ◆ enableDissolvedGas()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns whether the fluid system should consider that the gas component can dissolve in the oil phase. By default, dissolved gas is considered. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). ◆ enableVaporizedOil()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns whether the fluid system should consider that the oil component can dissolve in the gas phase. By default, vaporized oil is not considered. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). ◆ enableVaporizedWater()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns whether the fluid system should consider that the water component can dissolve in the gas phase. By default, vaporized water is not considered. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). ◆ enthalpy() [1/3]
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg]. ◆ enthalpy() [2/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
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::BlackOilFluidSystem< Scalar, IndexTraits >::ParameterCache< EvaluationT >::regionIndex(). ◆ enthalpy() [3/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg]. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ fugacityCoefficient() [1/3]
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/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
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::BlackOilFluidSystem< Scalar, IndexTraits >::ParameterCache< EvaluationT >::regionIndex(). ◆ fugacityCoefficient() [3/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
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::BlackOilFluidSystem< Scalar, IndexTraits >::convertRsToXoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertRvToXgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXgOToxgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXoGToxoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableDissolvedGas(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedOil(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numComponents, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterCompIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ gasPvt()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return a reference to the low-level object which calculates the gas phase quantities.
Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(). ◆ heatCapacity()
Specific isobaric heat capacity of a fluid phase [J/kg]. ◆ init()
Initialize the fluid system's static parameters. ◆ initBegin()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Begin the initialization of the black oil fluid system. After calling this method the reference densities, all dissolution and formation volume factors, the oil bubble pressure, all viscosities and the water compressibility must be set. Before the fluid system can be used, initEnd() must be called to finalize the initialization. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numActivePhases_, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::phaseIsActive_, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::setReservoirTemperature(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::surfacePressure, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::surfaceTemperature. ◆ initEnd()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Finish initializing the black oil fluid system. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::phaseIsActive(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::surfacePressure, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::surfaceTemperature, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterCompIdx. ◆ inverseFormationVolumeFactor()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the formation volume factor of an "undersaturated" fluid phase. For the oil (gas) phase, "undersaturated" means that the concentration of the gas (oil) component is not assumed to be at the thermodynamically possible maximum at the given temperature and pressure. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableDissolvedGas(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedOil(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedWater(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, Opm::scalarValue(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ isCompressible()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
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. ◆ isIdealGas()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns true if and only if a fluid phase is assumed to be an ideal gas. ◆ isIdealMixture()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
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. ◆ isInitialized()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
◆ isLiquid()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return whether a phase is liquid. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases. ◆ molarMass() [1/2]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return the molar mass of a component in [kg/mol]. ◆ molarMass() [2/2]
Return the molar mass of a component in [kg/mol]. ◆ numActivePhases()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns the number of active fluid phases (i.e., usually three) References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numActivePhases_. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::activeToCanonicalPhaseIdx(). ◆ numRegions()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns the number of PVT regions which are considered. By default, this is 1. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enthalpy(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDissolutionFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedInverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedVaporizationFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturationPressure(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). ◆ oilPvt()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return a reference to the low-level object which calculates the oil phase quantities.
Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(). ◆ phaseIsActive()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns whether a fluid phase is active. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::phaseIsActive_. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::canonicalToActivePhaseIdx(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(). ◆ phaseName()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return the human readable name of a fluid phase. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ referenceDensity()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Returns the density of a fluid phase at surface pressure [kg/m^3]. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(). ◆ reservoirTemperature()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Set the temperature of the reservoir. This method is black-oil specific and only makes sense for isothermal simulations. ◆ saturatedDensity()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Compute the density of a saturated fluid phase. This means the density of the given fluid phase if the dissolved component (gas for the oil phase and oil for the gas phase) is at the thermodynamically possible maximum. For the water phase, there's no difference to the density() method. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableDissolvedGas(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedOil(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedWater(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::referenceDensity(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ saturatedDissolutionFactor() [1/2]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the dissolution factor of a saturated fluid phase. For the oil (gas) phase, this means the R_s and R_v factors, for the water phase, it is always 0. The difference of this method compared to the previous one is that this method does not prevent dissolving a given component if the corresponding phase's saturation is small- References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ saturatedDissolutionFactor() [2/2]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the dissolution factor of a saturated fluid phase. For the oil (gas) phase, this means the R_s and R_v factors, for the water phase, it is always 0. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ saturatedInverseFormationVolumeFactor()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the formation volume factor of a "saturated" fluid phase. For the oil phase, this means that it is gas saturated, the gas phase is oil saturated and for the water phase, there is no difference to formationVolumeFactor() References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ saturatedVaporizationFactor()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the water vaporization factor of saturated phase. For the gas phase, this means the R_vw factor, for the water and oil phase, it is always 0. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ saturationPressure()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Returns the saturation pressure of a given phase [Pa] depending on its composition. In the black-oil model, the saturation pressure it the pressure at which the fluid phase is in equilibrium with the gas phase, i.e., it is the inverse of the "dissolution factor". Note that a-priori this quantity is undefined for the water phase (because water is assumed to be immiscible with everything else). This method here just returns 0, though. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::bubblePointPressure(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::dewPointPressure(). ◆ setDiffusionCoefficient()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
◆ setEnableDiffusion()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Specify whether the fluid system should consider diffusion. By default, diffusion is not considered. ◆ setEnableDissolvedGas()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Specify whether the fluid system should consider that the gas component can dissolve in the oil phase. By default, dissolved gas is considered. ◆ setEnableVaporizedOil()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Specify whether the fluid system should consider that the oil component can dissolve in the gas phase. By default, vaporized oil is not considered. ◆ setEnableVaporizedWater()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Specify whether the fluid system should consider that the water component can dissolve in the gas phase. By default, vaporized water is not considered. ◆ setGasPvt()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Set the pressure-volume-saturation (PVT) relations for the gas phase. ◆ setOilPvt()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Set the pressure-volume-saturation (PVT) relations for the oil phase. ◆ setReferenceDensities()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Initialize the values of the reference densities.
References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ setReservoirTemperature()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return the temperature of the reservoir. This method is black-oil specific and only makes sense for isothermal simulations. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initBegin(). ◆ setWaterPvt()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Set the pressure-volume-saturation (PVT) relations for the water phase. ◆ soluteComponentIndex()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
returns the index of "secondary" component of a phase (solute) References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ solventComponentIndex()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
returns the index of "primary" component of a phase (solvent) References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilCompIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterCompIdx, and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ thermalConductivity()
Thermal conductivity of a fluid phase [W/(m K)]. ◆ viscosity() [1/3]
Calculate the dynamic viscosity of a fluid phase [Pa*s]. ◆ viscosity() [2/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the dynamic viscosity of a fluid phase [Pa*s]. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::ParameterCache< EvaluationT >::regionIndex(). ◆ viscosity() [3/3]
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
template<class FluidState , class LhsEval = typename FluidState::Scalar>
Calculate the dynamic viscosity of a fluid phase [Pa*s]. References Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableDissolvedGas(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedOil(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enableVaporizedWater(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::gasPhaseIdx, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numPhases, Opm::BlackOilFluidSystem< Scalar, IndexTraits >::numRegions(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::oilPhaseIdx, Opm::scalarValue(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::waterPhaseIdx. ◆ waterPvt()
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Return a reference to the low-level object which calculates the water phase quantities.
Member Data Documentation◆ gasCompIdx
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Index of the gas component. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::componentName(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXgOToxgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertxgOToXgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXoGToxoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertxoGToXoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::soluteComponentIndex(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::solventComponentIndex(). ◆ gasPhaseIdx
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Index of the gas phase. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertRsToXoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertRvToXgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertRvwToXgW(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXgOToRv(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXgWToRvw(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXoGToRs(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::dewPointPressure(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enthalpy(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::isLiquid(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::phaseName(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDissolutionFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedInverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedVaporizationFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturationPressure(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::setReferenceDensities(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::soluteComponentIndex(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::solventComponentIndex(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). ◆ numActivePhases_
template<class Scalar , class IndexTraits >
◆ numComponents
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Number of chemical species in the fluid system. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(). ◆ numPhases
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Number of fluid phases in the fluid system. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::canonicalToActivePhaseIdx(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enthalpy(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initBegin(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::isLiquid(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::phaseIsActive(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDissolutionFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedInverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedVaporizationFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturationPressure(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::setDiffusionCoefficient(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). ◆ oilCompIdx
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Index of the oil component. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::componentName(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXgOToxgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertxgOToXgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXoGToxoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertxoGToXoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::soluteComponentIndex(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::solventComponentIndex(). ◆ oilPhaseIdx
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Index of the oil phase. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::bubblePointPressure(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertRsToXoG(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertRvToXgO(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXgOToRv(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXoGToRs(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enthalpy(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::phaseName(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDissolutionFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedInverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedVaporizationFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturationPressure(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::setReferenceDensities(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::soluteComponentIndex(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::solventComponentIndex(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). ◆ phaseIsActive_
template<class Scalar , class IndexTraits >
◆ surfacePressure
template<class Scalar , class IndexTraits >
The pressure at the surface. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initBegin(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(). ◆ surfaceTemperature
template<class Scalar , class IndexTraits >
The temperature at the surface. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initBegin(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(). ◆ waterCompIdx
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Index of the water component. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::componentName(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::initEnd(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::solventComponentIndex(). ◆ waterPhaseIdx
template<class Scalar , class IndexTraits = BlackOilDefaultIndexTraits>
Index of the water phase. Referenced by Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertRvwToXgW(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::convertXgWToRvw(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::density(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::diffusionCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::enthalpy(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::fugacityCoefficient(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::inverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::phaseName(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDensity(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedDissolutionFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedInverseFormationVolumeFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturatedVaporizationFactor(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::saturationPressure(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::setReferenceDensities(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::soluteComponentIndex(), Opm::BlackOilFluidSystem< Scalar, IndexTraits >::solventComponentIndex(), and Opm::BlackOilFluidSystem< Scalar, IndexTraits >::viscosity(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||