Merge pull request #4976 from totto82/fix_rsw

Fix rsw computation of wellbore density for StW
This commit is contained in:
Bård Skaflestad 2023-11-09 09:37:16 +01:00 committed by GitHub
commit 7832c1ba54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);
}