GasPvtThermal.hpp
Go to the documentation of this file.
124 std::string gasvisctColumnName = "Viscosity" + std::to_string(static_cast<long long>(gasCompIdx));
275 Evaluation Cp = (internalEnergyCurves_[regionIdx].eval(temperature, /*extrapolate=*/true) - hVap)/temperature;
296 // see e.g.https://en.wikipedia.org/wiki/Joule-Thomson_effect for a derivation of the Joule-Thomson coeff.
304 throw std::runtime_error("Requested Joule-thomson calculation but thermal gas density (GASDENT) is not provided");
455 { return isothermalPvt_->saturatedOilVaporizationFactor(regionIdx, temperature, pressure, oilSaturation, maxOilSaturation); }
This class represents the Pressure-Volume-Temperature relations of the gas phase in the black-oil mod... Definition: GasPvtMultiplexer.hpp:100 Evaluation saturatedInverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const Returns the formation volume factor [-] of oil saturated gas given a set of parameters. Definition: GasPvtMultiplexer.hpp:272 unsigned numRegions() const Return the number of PVT regions which are considered by this PVT-object. Definition: GasPvtMultiplexer.hpp:218 Evaluation inverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rv, const Evaluation &Rvw) const Returns the formation volume factor [-] of the fluid phase. Definition: GasPvtMultiplexer.hpp:261 Evaluation viscosity(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rv, const Evaluation &Rvw) const Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters. Definition: GasPvtMultiplexer.hpp:241 Evaluation diffusionCoefficient(const Evaluation &temperature, const Evaluation &pressure, unsigned compIdx) const Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (k... Definition: GasPvtMultiplexer.hpp:332 Evaluation saturatedOilVaporizationFactor(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const Returns the oil vaporization factor [m^3/m^3] of oil saturated gas. Definition: GasPvtMultiplexer.hpp:281 const Scalar gasReferenceDensity(unsigned regionIdx) Return the reference density which are considered by this PVT-object. Definition: GasPvtMultiplexer.hpp:224 Evaluation saturationPressure(unsigned regionIdx, const Evaluation &temperature, const Evaluation &Rv) const Returns the saturation pressure of the gas phase [Pa] depending on its mass fraction of the oil compo... Definition: GasPvtMultiplexer.hpp:323 Evaluation saturatedViscosity(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const Returns the dynamic viscosity [Pa s] of oil saturated gas given a set of parameters. Definition: GasPvtMultiplexer.hpp:252 This class implements temperature dependence of the PVT properties of gas. Definition: GasPvtThermal.hpp:50 bool enableThermalDensity() const Returns true iff the density of the gas phase is temperature dependent. Definition: GasPvtThermal.hpp:234 Evaluation viscosity(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rv, const Evaluation &Rvw) const Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters. Definition: GasPvtThermal.hpp:317 const std::vector< TabulatedOneDFunction > & gasvisctCurves() const Definition: GasPvtThermal.hpp:483 const std::vector< TabulatedOneDFunction > & internalEnergyCurves() const Definition: GasPvtThermal.hpp:495 GasPvtThermal(IsothermalPvt *isothermalPvt, const std::vector< TabulatedOneDFunction > &gasvisctCurves, const std::vector< Scalar > &gasdentRefTemp, const std::vector< Scalar > &gasdentCT1, const std::vector< Scalar > &gasdentCT2, const std::vector< Scalar > &gasJTRefPres, const std::vector< Scalar > &gasJTC, const std::vector< TabulatedOneDFunction > &internalEnergyCurves, bool enableThermalDensity, bool enableJouleThomson, bool enableThermalViscosity, bool enableInternalEnergy) Definition: GasPvtThermal.hpp:63 GasPvtThermal< Scalar > & operator=(const GasPvtThermal< Scalar > &data) Definition: GasPvtThermal.hpp:530 const std::vector< Scalar > & gasJTC() const Definition: GasPvtThermal.hpp:504 bool enableInternalEnergy() const Definition: GasPvtThermal.hpp:498 GasPvtThermal(const GasPvtThermal &data) Definition: GasPvtThermal.hpp:89 Evaluation saturatedOilVaporizationFactor(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &oilSaturation, const Evaluation &maxOilSaturation) const Returns the oil vaporization factor [m^3/m^3] of the gas phase. Definition: GasPvtThermal.hpp:450 Evaluation saturatedInverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const Returns the formation volume factor [-] of oil-saturated gas. Definition: GasPvtThermal.hpp:383 Evaluation diffusionCoefficient(const Evaluation &temperature, const Evaluation &pressure, unsigned compIdx) const Definition: GasPvtThermal.hpp:471 const std::vector< Scalar > & gasJTRefPres() const Definition: GasPvtThermal.hpp:501 bool enableJouleThomsony() const Returns true iff Joule-Thomson effect for the gas phase is active. Definition: GasPvtThermal.hpp:240 Evaluation saturatedOilVaporizationFactor(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const Returns the oil vaporization factor [m^3/m^3] of the gas phase. Definition: GasPvtThermal.hpp:437 const Scalar gasReferenceDensity(unsigned regionIdx) const Definition: GasPvtThermal.hpp:480 Evaluation saturatedWaterVaporizationFactor(unsigned, const Evaluation &, const Evaluation &, const Evaluation &) const Returns the water vaporization factor [m^3/m^3] of water saturated gas. Definition: GasPvtThermal.hpp:421 void initEnd() Finish initializing the thermal part of the gas phase PVT properties. Definition: GasPvtThermal.hpp:225 void setNumRegions(size_t numRegions) Set the number of PVT-regions considered by this object. Definition: GasPvtThermal.hpp:210 const std::vector< Scalar > & gasdentRefTemp() const Definition: GasPvtThermal.hpp:486 Evaluation inverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rv, const Evaluation &) const Returns the formation volume factor [-] of the fluid phase. Definition: GasPvtThermal.hpp:351 bool operator==(const GasPvtThermal< Scalar > &data) const Definition: GasPvtThermal.hpp:508 const std::vector< Scalar > & gasdentCT1() const Definition: GasPvtThermal.hpp:489 bool enableThermalViscosity() const Returns true iff the viscosity of the gas phase is temperature dependent. Definition: GasPvtThermal.hpp:246 Evaluation saturatedWaterVaporizationFactor(unsigned, const Evaluation &, const Evaluation &) const Returns the water vaporization factor [m^3/m^3] of the water phase. Definition: GasPvtThermal.hpp:412 const std::vector< Scalar > & gasdentCT2() const Definition: GasPvtThermal.hpp:492 Evaluation internalEnergy(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &Rv) const Returns the specific internal energy [J/kg] of gas given a set of parameters. Definition: GasPvtThermal.hpp:253 Evaluation saturatedViscosity(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const Returns the dynamic viscosity [Pa s] of the oil-saturated gas phase given a set of parameters. Definition: GasPvtThermal.hpp:335 Evaluation saturationPressure(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure) const Returns the saturation pressure of the gas phase [Pa]. Definition: GasPvtThermal.hpp:465 const IsothermalPvt * isoThermalPvt() const Definition: GasPvtThermal.hpp:477 GasPvtMultiplexer< Scalar, false > IsothermalPvt Definition: GasPvtThermal.hpp:52 Implements a linearly interpolated scalar function that depends on one variable. Definition: Tabulated1DFunction.hpp:48 Definition: Air_Mesitylene.hpp:34 |