27#ifndef OPM_DEAD_OIL_PVT_HPP
28#define OPM_DEAD_OIL_PVT_HPP
43template <
class Scalar>
58 void setVapPars(
const Scalar,
const Scalar)
70 oilReferenceDensity_[regionIdx] = rhoRefOil;
84 { inverseOilB_[regionIdx] = invBo; }
92 { oilMu_[regionIdx] = muo; }
103 {
return inverseOilBMu_.size(); }
108 template <
class Evaluation>
112 const Evaluation&)
const
114 throw std::runtime_error(
"Requested the enthalpy of oil but the thermal option is not enabled");
120 template <
class Evaluation>
122 const Evaluation& temperature,
123 const Evaluation& pressure,
124 const Evaluation& )
const
130 template <
class Evaluation>
133 const Evaluation& pressure)
const
135 const Evaluation& invBo = inverseOilB_[regionIdx].eval(pressure,
true);
136 const Evaluation& invMuoBo = inverseOilBMu_[regionIdx].eval(pressure,
true);
138 return invBo/invMuoBo;
144 template <
class Evaluation>
147 const Evaluation& pressure,
148 const Evaluation& )
const
149 {
return inverseOilB_[regionIdx].eval(pressure,
true); }
156 template <
class Evaluation>
159 const Evaluation& pressure)
const
160 {
return inverseOilB_[regionIdx].eval(pressure,
true); }
165 template <
class Evaluation>
168 const Evaluation& )
const
174 template <
class Evaluation>
179 const Evaluation& )
const
188 template <
class Evaluation>
191 const Evaluation& )
const
194 template <
class Evaluation>
195 Evaluation saturatedGasMassFraction(
unsigned ,
197 const Evaluation& )
const
200 template <
class Evaluation>
201 Evaluation saturatedGasMoleFraction(
unsigned ,
203 const Evaluation& )
const
206 template <
class Evaluation>
207 Evaluation diffusionCoefficient(
const Evaluation& ,
211 throw std::runtime_error(
"Not implemented: The PVT model does not provide a diffusionCoefficient()");
214 Scalar oilReferenceDensity(
unsigned regionIdx)
const
215 {
return oilReferenceDensity_[regionIdx]; }
217 const std::vector<TabulatedOneDFunction>& inverseOilB()
const
218 {
return inverseOilB_; }
220 const std::vector<TabulatedOneDFunction>& oilMu()
const
223 const std::vector<TabulatedOneDFunction>& inverseOilBMu()
const
224 {
return inverseOilBMu_; }
227 std::vector<Scalar> oilReferenceDensity_;
228 std::vector<TabulatedOneDFunction> inverseOilB_;
229 std::vector<TabulatedOneDFunction> oilMu_;
230 std::vector<TabulatedOneDFunction> inverseOilBMu_;
Implements a linearly interpolated scalar function that depends on one variable.
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:91
Evaluation saturatedGasDissolutionFactor(unsigned, const Evaluation &, const Evaluation &) const
Returns the gas dissolution factor [m^3/m^3] of the oil phase.
Definition DeadOilPvt.hpp:166
void setInverseOilFormationVolumeFactor(unsigned regionIdx, const TabulatedOneDFunction &invBo)
Initialize the function for the oil formation volume factor.
Definition DeadOilPvt.hpp:83
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:121
void setReferenceDensities(unsigned regionIdx, Scalar rhoRefOil, Scalar, Scalar)
Initialize the reference densities of all fluids for a given PVT region.
Definition DeadOilPvt.hpp:65
void initEnd()
Finish initializing the oil phase PVT properties.
Definition DeadOilPvt.cpp:92
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:131
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:109
Evaluation saturatedInverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &, const Evaluation &pressure) const
Returns the formation volume factor [-] of saturated oil.
Definition DeadOilPvt.hpp:157
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:189
Evaluation inverseFormationVolumeFactor(unsigned regionIdx, const Evaluation &, const Evaluation &pressure, const Evaluation &) const
Returns the formation volume factor [-] of the fluid phase.
Definition DeadOilPvt.hpp:145
unsigned numRegions() const
Return the number of PVT regions which are considered by this PVT-object.
Definition DeadOilPvt.hpp:102
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:175
Definition EclipseState.hpp:63
Definition Schedule.hpp:88
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