mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
Fix bug in saturation initialisation.
We shall only use gas-water capillary to initialise when we would get unphysical saturations otherwise.
This commit is contained in:
parent
e51b161c89
commit
734046e16e
@ -796,9 +796,10 @@ namespace Opm
|
||||
sg = satFromPc(props, gaspos, cell, pcog, increasing);
|
||||
phase_saturations[gaspos][local_index] = sg;
|
||||
}
|
||||
if (gas && water && sg > smin[gaspos] && sw > smin[waterpos]) {
|
||||
if (gas && water && (sg + sw > 1.0)) {
|
||||
// Overlapping gas-oil and oil-water transition
|
||||
// zones. Must recalculate using gas-water
|
||||
// zones can lead to unphysical saturations when
|
||||
// treated as above. Must recalculate using gas-water
|
||||
// capillary pressure.
|
||||
const double pcgw = phase_pressures[gaspos][local_index] - phase_pressures[waterpos][local_index];
|
||||
sw = satFromSumOfPcs(props, waterpos, gaspos, cell, pcgw);
|
||||
|
Loading…
Reference in New Issue
Block a user