Black oil fluid system: make immiscible components less dissolvable

This is only relevant for the approximation which uses large instead
of infinite fugacity coefficients for immiscible components. The
motivation is to bring the solution of the NCP flash solver closer to
what's expected using the blackoil assumptions directly. (Physically
speaking, the result is less realistic in most cases, though...)
This commit is contained in:
Andreas Lauser 2015-01-15 18:12:50 +01:00
parent f1cb777fb0
commit b1c35e0e0d

View File

@ -793,9 +793,9 @@ public:
// 30 kPa to ease interpreting the results.)
const Scalar pvWater = 30e3;
if (compIdx == oilCompIdx)
return 1e3*pvWater / pressure;
else if (compIdx == gasCompIdx)
return 1e6*pvWater / pressure;
else if (compIdx == gasCompIdx)
return 1.01e6*pvWater / pressure;
return pvWater / pressure;
}
@ -808,7 +808,9 @@ public:
*/
static Scalar fugCoefficientInGas(int compIdx, Scalar pressure, int regionIdx=0)
{
// assume an ideal gas
// make the gas component more affine to the gas phase than the other components
if (compIdx == gasCompIdx)
return 1e-3;
return 1.0;
}