mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
Enables diffusion for vapporized water
This commit is contained in:
parent
4c8d6b5a22
commit
2d697eb240
@ -212,6 +212,11 @@ public:
|
||||
convFactor = 1.0 / (toFractionGasWater(pvtRegionIndex) + rsAvg);
|
||||
diffR = fluidStateI.Rsw() - Toolbox::value(fluidStateJ.Rsw());
|
||||
}
|
||||
if (FluidSystem::enableVaporizedWater() && phaseIdx == FluidSystem::gasPhaseIdx) {
|
||||
Evaluation rvAvg = (fluidStateI.Rvw() + Toolbox::value(fluidStateJ.Rvw())) / 2;
|
||||
convFactor = toFractionGasWater(pvtRegionIndex)/ (1.0 + rvAvg*toFractionGasWater(pvtRegionIndex));
|
||||
diffR = fluidStateI.Rvw() - Toolbox::value(fluidStateJ.Rvw());
|
||||
}
|
||||
|
||||
// mass flux of solvent component (oil in oil or gas in gas)
|
||||
unsigned solventCompIdx = FluidSystem::solventComponentIndex(phaseIdx);
|
||||
|
Loading…
Reference in New Issue
Block a user