water viscosity: calculate it the same way as documented by the Eclipse RM
This commit is contained in:
@@ -1007,11 +1007,19 @@ private:
|
|||||||
|
|
||||||
static Scalar waterViscosity_(Scalar pressure, int regionIdx)
|
static Scalar waterViscosity_(Scalar pressure, int regionIdx)
|
||||||
{
|
{
|
||||||
Scalar muRef = waterViscosityScalar_[regionIdx];
|
// Eclipse calculates the viscosity in a weird way: it
|
||||||
Scalar Cnu = waterViscosibilityScalar_[regionIdx];
|
// calcultes the product of B_w and mu_w and then divides the
|
||||||
|
// result by B_w...
|
||||||
|
Scalar BwMuwRef =
|
||||||
|
waterViscosityScalar_[regionIdx]
|
||||||
|
* waterReferenceFormationFactorScalar_[regionIdx];
|
||||||
|
Scalar Bw = waterFormationVolumeFactor(pressure, regionIdx);
|
||||||
|
|
||||||
Scalar pRef = waterReferencePressureScalar_[regionIdx];
|
Scalar pRef = waterReferencePressureScalar_[regionIdx];
|
||||||
Scalar deltamu = (pressure - pRef)*Cnu*muRef;
|
Scalar Y =
|
||||||
return muRef + deltamu;
|
(waterCompressibilityScalar_[regionIdx] - waterViscosibilityScalar_[regionIdx])
|
||||||
|
* (pressure - pRef);
|
||||||
|
return BwMuwRef/((1 + Y*(1 + Y/2))*Bw);
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::vector<TabulatedFunction> inverseOilFormationVolumeFactor_;
|
static std::vector<TabulatedFunction> inverseOilFormationVolumeFactor_;
|
||||||
|
|||||||
Reference in New Issue
Block a user