27#ifndef OPM_DEAD_OIL_PVT_HPP
28#define OPM_DEAD_OIL_PVT_HPP
43template <
class Scalar>
66 oilReferenceDensity_[regionIdx] = rhoRefOil;
80 { inverseOilB_[regionIdx] = invBo; }
88 { oilMu_[regionIdx] = muo; }
99 {
return inverseOilBMu_.size(); }
104 template <
class Evaluation>
108 const Evaluation&)
const
110 throw std::runtime_error(
"Requested the enthalpy of oil but the thermal option is not enabled");
116 template <
class Evaluation>
118 const Evaluation& temperature,
119 const Evaluation& pressure,
120 const Evaluation& )
const
126 template <
class Evaluation>
129 const Evaluation& pressure)
const
131 const Evaluation& invBo = inverseOilB_[regionIdx].eval(pressure,
true);
132 const Evaluation& invMuoBo = inverseOilBMu_[regionIdx].eval(pressure,
true);
134 return invBo/invMuoBo;
140 template <
class Evaluation>
143 const Evaluation& pressure,
144 const Evaluation& )
const
145 {
return inverseOilB_[regionIdx].eval(pressure,
true); }
152 template <
class Evaluation>
155 const Evaluation& pressure)
const
156 {
return inverseOilB_[regionIdx].eval(pressure,
true); }
161 template <
class Evaluation>
164 const Evaluation& )
const
170 template <
class Evaluation>
175 const Evaluation& )
const
184 template <
class Evaluation>
187 const Evaluation& )
const
190 template <
class Evaluation>
191 Evaluation saturatedGasMassFraction(
unsigned ,
193 const Evaluation& )
const
196 template <
class Evaluation>
197 Evaluation saturatedGasMoleFraction(
unsigned ,
199 const Evaluation& )
const
202 template <
class Evaluation>
203 Evaluation diffusionCoefficient(
const Evaluation& ,
207 throw std::runtime_error(
"Not implemented: The PVT model does not provide a diffusionCoefficient()");
210 Scalar oilReferenceDensity(
unsigned regionIdx)
const
211 {
return oilReferenceDensity_[regionIdx]; }
213 const std::vector<TabulatedOneDFunction>& inverseOilB()
const
214 {
return inverseOilB_; }
216 const std::vector<TabulatedOneDFunction>& oilMu()
const
219 const std::vector<TabulatedOneDFunction>& inverseOilBMu()
const
220 {
return inverseOilBMu_; }
223 std::vector<Scalar> oilReferenceDensity_;
224 std::vector<TabulatedOneDFunction> inverseOilB_;
225 std::vector<TabulatedOneDFunction> oilMu_;
226 std::vector<TabulatedOneDFunction> inverseOilBMu_;
This class represents the Pressure-Volume-Temperature relations of the oil phase without dissolved ga...
Definition: DeadOilPvt.hpp:45
void setOilViscosity(unsigned regionIdx, const TabulatedOneDFunction &muo)
Initialize the viscosity of the oil phase.
Definition: DeadOilPvt.hpp:87
Evaluation saturatedGasDissolutionFactor(unsigned, const Evaluation &, const Evaluation &) const
Returns the gas dissolution factor [m^3/m^3] of the oil phase.
Definition: DeadOilPvt.hpp:162
void setInverseOilFormationVolumeFactor(unsigned regionIdx, const TabulatedOneDFunction &invBo)
Initialize the function for the oil formation volume factor.
Definition: DeadOilPvt.hpp:79
Evaluation viscosity(unsigned regionIdx, const Evaluation &temperature, const Evaluation &pressure, const Evaluation &) const
Returns the dynamic viscosity [Pa s] of the fluid phase given a set of parameters.
Definition: DeadOilPvt.hpp:117
void setReferenceDensities(unsigned regionIdx, Scalar rhoRefOil, Scalar, Scalar)
Initialize the reference densities of all fluids for a given PVT region.
Definition: DeadOilPvt.hpp:61
void initEnd()
Finish initializing the oil phase PVT properties.
Evaluation saturatedViscosity(unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
Returns the dynamic viscosity [Pa s] of gas saturated oil given a pressure.
Definition: DeadOilPvt.hpp:127
Evaluation internalEnergy(unsigned, const Evaluation &, const Evaluation &, const Evaluation &) const
Returns the specific enthalpy [J/kg] of oil given a set of parameters.
Definition: DeadOilPvt.hpp:105
Evaluation saturatedInverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
Returns the formation volume factor [-] of saturated oil.
Definition: DeadOilPvt.hpp:153
Evaluation saturationPressure(unsigned, const Evaluation &, const Evaluation &) const
Returns the saturation pressure of the oil phase [Pa] depending on its mass fraction of the gas compo...
Definition: DeadOilPvt.hpp:185
Evaluation inverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &, const Evaluation &pressure, const Evaluation &) const
Returns the formation volume factor [-] of the fluid phase.
Definition: DeadOilPvt.hpp:141
unsigned numRegions() const
Return the number of PVT regions which are considered by this PVT-object.
Definition: DeadOilPvt.hpp:98
Evaluation saturatedGasDissolutionFactor(unsigned, const Evaluation &, const Evaluation &, const Evaluation &, const Evaluation &) const
Returns the gas dissolution factor [m^3/m^3] of the oil phase.
Definition: DeadOilPvt.hpp:171
Definition: EclipseState.hpp:55
Definition: Schedule.hpp:130
Implements a linearly interpolated scalar function that depends on one variable.
Definition: Tabulated1DFunction.hpp:51
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30