mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Fix rsw computation of wellbore density for StW
This commit is contained in:
parent
17886f934c
commit
26247a2aba
@ -345,7 +345,7 @@ computePropertiesForPressures(const WellState& well_state,
|
||||
if (waterrate > 0) {
|
||||
const double gasrate = std::abs(ws.surface_rates[pu.phase_pos[Gas]]) - (Indices::enableSolvent ? ws.sum_solvent_rates() : 0.0);
|
||||
if (gasrate > 0) {
|
||||
rsw = waterrate / gasrate;
|
||||
rsw = gasrate / waterrate;
|
||||
}
|
||||
rsw = std::min(rsw, props.rswmax_perf[perf]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user