| 
    
    
     BlackOilFluidSystem.hpp   
Go to the documentation of this file. 
  316             const auto& XgO = FsToolbox::template toLhs<LhsEval>(fluidState.massFraction(gasPhaseIdx, oilCompIdx)); 
  320             const auto& XoG = FsToolbox::template toLhs<LhsEval>(fluidState.massFraction(oilPhaseIdx, gasCompIdx)); 
  369             const auto& XoG = FsToolbox::template toLhs<LhsEval>(fluidState.massFraction(oilPhaseIdx, gasCompIdx)); 
  375             const auto& XgO = FsToolbox::template toLhs<LhsEval>(fluidState.massFraction(gasPhaseIdx, oilCompIdx)); 
void setRegionIndex(unsigned val) Set the index of the region which should be used to determine the thermodynamic properties.  Definition: BlackOilFluidSystem.hpp:76 static const int waterPhaseIdx Index of the water phase.  Definition: BlackOilFluidSystem.hpp:91 static bool isCompressible(unsigned) Returns true if and only if a fluid phase is assumed to be compressible.  Definition: BlackOilFluidSystem.hpp:288 This class represents the Pressure-Volume-Temperature relations of the oil phase in the black-oil mod... Definition: DryGasPvt.hpp:44 static void initBegin(size_t numPvtRegions) Begin the initialization of the black oil fluid system.  Definition: BlackOilFluidSystem.hpp:150 bool CheckDefined(const T &value OPM_UNUSED) Make valgrind complain if any of the memory occupied by an object is undefined.  Definition: Valgrind.hpp:74 This class represents the Pressure-Volume-Temperature relations of the water phase in the black-oil m... Definition: MathToolbox.hpp:39 Definition: Air_Mesitylene.hpp:31 static LhsEval saturatedOilGasMoleFraction(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) The maximum mole fraction of the gas component in the oil phase.  Definition: BlackOilFluidSystem.hpp:567 static LhsEval fugCoefficientInWater(unsigned compIdx, const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Returns the fugacity coefficient of a given component in the water phase.  Definition: BlackOilFluidSystem.hpp:465 The type of the fluid system's parameter cache.  Definition: BlackOilFluidSystem.hpp:59 This class represents the Pressure-Volume-Temperature relations of the oil phase in the black-oil mod... static Scalar molarMass(unsigned compIdx, unsigned regionIdx=0) Return the molar mass of a component in [kg/mol].  Definition: BlackOilFluidSystem.hpp:276 static const int oilPhaseIdx Index of the oil phase.  Definition: BlackOilFluidSystem.hpp:93 static LhsEval fugacityCoefficient(const FluidState &fluidState, const ParameterCache ¶mCache, unsigned phaseIdx, unsigned compIdx) Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase.  Definition: BlackOilFluidSystem.hpp:330 static LhsEval gasDensity(const LhsEval &temperature, const LhsEval &pressure, const LhsEval &XgO, unsigned regionIdx) Return the density of dry gas.  Definition: BlackOilFluidSystem.hpp:638 ParameterCache(int=0) Definition: BlackOilFluidSystem.hpp:62 static bool isIdealGas(unsigned) Returns true if and only if a fluid phase is assumed to be an ideal gas.  Definition: BlackOilFluidSystem.hpp:292 static LhsEval fugCoefficientInGas(unsigned compIdx, const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Returns the fugacity coefficient of a given component in the gas phase.  Definition: BlackOilFluidSystem.hpp:493 A fluid system which uses the black-oil parameters to calculate termodynamically meaningful quantitie... Definition: BlackOilFluidSystem.hpp:51 static void setWaterPvt(std::shared_ptr< WaterPvt > pvtObj) Set the pressure-volume-saturation (PVT) relations for the water phase.  Definition: BlackOilFluidSystem.hpp:191 Some templates to wrap the valgrind client request macros.  static LhsEval fugCoefficientInOil(unsigned compIdx, const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Returns the fugacity coefficient of a given component in the oil phase.  Definition: BlackOilFluidSystem.hpp:521 static void setGasPvt(std::shared_ptr< GasPvt > pvtObj) Set the pressure-volume-saturation (PVT) relations for the gas phase.  Definition: BlackOilFluidSystem.hpp:179 This class represents the Pressure-Volume-Temperature relations of the gas phase in the black-oil mod... Definition: ConstantCompressibilityOilPvt.hpp:39 static LhsEval oilDensity(const LhsEval &temperature, const LhsEval &pressure, const LhsEval &XoG, unsigned regionIdx) Return the density of (potentially) under-saturated oil.  Definition: BlackOilFluidSystem.hpp:605 static bool isIdealMixture(unsigned) Returns true if and only if a fluid phase is assumed to be an ideal mixture.  Definition: BlackOilFluidSystem.hpp:280 static LhsEval gasDissolutionFactor(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Returns the gas dissolution factor  for a given pressure.  Definition: BlackOilFluidSystem.hpp:442 static const int numPhases Number of fluid phases in the fluid system.  Definition: BlackOilFluidSystem.hpp:88 static bool isLiquid(const unsigned phaseIdx) Return whether a phase is liquid.  Definition: BlackOilFluidSystem.hpp:246 static LhsEval density(const FluidState &fluidState, ParameterCache ¶mCache, const unsigned phaseIdx) Calculate the density [kg/m^3] of a fluid phase.  Definition: BlackOilFluidSystem.hpp:300 static LhsEval waterFormationVolumeFactor(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Return the formation volume factor of water.  Definition: BlackOilFluidSystem.hpp:431 static LhsEval saturatedOilGasMassFraction(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) The maximum mass fraction of the gas component in the oil phase.  Definition: BlackOilFluidSystem.hpp:558 static LhsEval gasFormationVolumeFactor(const LhsEval &temperature, const LhsEval &pressure, const LhsEval &XgO, unsigned regionIdx) Return the formation volume factor of gas.  Definition: BlackOilFluidSystem.hpp:628 static LhsEval oilFormationVolumeFactor(const LhsEval &temperature, const LhsEval &pressure, const LhsEval &XoG, unsigned regionIdx) Return the normalized formation volume factor of (potentially) under-saturated oil.  Definition: BlackOilFluidSystem.hpp:595 static bool enableDissolvedGas() Returns whether the fluid system should consider that the gas component can dissolve in the oil phase... Definition: BlackOilFluidSystem.hpp:389 A central place for various physical constants occuring in some equations.  static LhsEval viscosity(const FluidState &fluidState, const ParameterCache ¶mCache, unsigned phaseIdx) Calculate the dynamic viscosity of a fluid phase [Pa*s].  Definition: BlackOilFluidSystem.hpp:355 static void setOilPvt(std::shared_ptr< OilPvt > pvtObj) Set the pressure-volume-saturation (PVT) relations for the oil phase.  Definition: BlackOilFluidSystem.hpp:185 static const Scalar surfacePressure The pressure at the surface.  Definition: BlackOilFluidSystem.hpp:98 static const int gasPhaseIdx Index of the gas phase.  Definition: BlackOilFluidSystem.hpp:95 static void setReferenceDensities(Scalar rhoOil, Scalar rhoWater, Scalar rhoGas, unsigned regionIdx) Initialize the values of the reference densities.  Definition: BlackOilFluidSystem.hpp:201 static LhsEval oilSaturationPressure(const LhsEval &temperature, const LhsEval &XoG, unsigned regionIdx) Returns the saturation pressure of the oil phase [Pa] depending on its mass fraction of the gas compo... Definition: BlackOilFluidSystem.hpp:549 static LhsEval saturatedGasOilMassFraction(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) The maximum mass fraction of the oil component in the gas phase.  Definition: BlackOilFluidSystem.hpp:576 static const int numComponents Number of chemical species in the fluid system.  Definition: BlackOilFluidSystem.hpp:257 static const int oilCompIdx Index of the oil component.  Definition: BlackOilFluidSystem.hpp:260 static LhsEval waterDensity(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Return the density of water.  Definition: BlackOilFluidSystem.hpp:648 static const int waterCompIdx Index of the water component.  Definition: BlackOilFluidSystem.hpp:262 This class represents the Pressure-Volume-Temperature relations of the water phase in the black-oil m... Definition: WaterPvtMultiplexer.hpp:47 static const char * phaseName(const unsigned phaseIdx) Return the human readable name of a fluid phase.  Definition: BlackOilFluidSystem.hpp:237 unsigned regionIndex() const  Return the index of the region which should be used to determine the thermodynamic properties... Definition: BlackOilFluidSystem.hpp:69 static void setEnableVaporizedOil(bool yesno) Specify whether the fluid system should consider that the oil component can dissolve in the gas phase... Definition: BlackOilFluidSystem.hpp:173 static bool enableVaporizedOil() Returns whether the fluid system should consider that the oil component can dissolve in the gas phase... Definition: BlackOilFluidSystem.hpp:398 static const char * componentName(unsigned compIdx) Return the human readable name of a component.  Definition: BlackOilFluidSystem.hpp:267 static LhsEval oilVaporizationFactor(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Returns the oil vaporization factor  for a given pressure.  Definition: BlackOilFluidSystem.hpp:453 static void initEnd() Finish initializing the black oil fluid system.  Definition: BlackOilFluidSystem.hpp:214 static LhsEval saturatedOilDensity(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Return the density of gas-saturated oil.  Definition: BlackOilFluidSystem.hpp:615 This class represents the Pressure-Volume-Temperature relations of the oil phase in the black-oil mod... static Scalar referenceDensity(unsigned phaseIdx, unsigned regionIdx) Returns the density of a fluid phase at surface pressure [kg/m^3].  Definition: BlackOilFluidSystem.hpp:406 static const Scalar surfaceTemperature The temperature at the surface.  Definition: BlackOilFluidSystem.hpp:101 static void setEnableDissolvedGas(bool yesno) Specify whether the fluid system should consider that the gas component can dissolve in the oil phase... Definition: BlackOilFluidSystem.hpp:164 static LhsEval saturatedGasOilMoleFraction(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) The maximum mole fraction of the oil component in the gas phase.  Definition: BlackOilFluidSystem.hpp:585 static const int gasCompIdx Index of the gas component.  Definition: BlackOilFluidSystem.hpp:264 The base class for all fluid systems.  static LhsEval saturatedOilFormationVolumeFactor(const LhsEval &temperature, const LhsEval &pressure, unsigned regionIdx) Returns the oil formation volume factor  of saturated oil for a given pressure.  Definition: BlackOilFluidSystem.hpp:415 A central place for various physical constants occuring in some equations.  Definition: Constants.hpp:39 A traits class which provides basic mathematical functions for arbitrary scalar floating point values...  |