From 26247a2aba0827f2d01c5b26ade68f91fe0a29d6 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 7 Nov 2023 15:53:51 +0100 Subject: [PATCH] Fix rsw computation of wellbore density for StW --- opm/simulators/wells/StandardWellConnections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/StandardWellConnections.cpp b/opm/simulators/wells/StandardWellConnections.cpp index efbecffae..04ddafdcc 100644 --- a/opm/simulators/wells/StandardWellConnections.cpp +++ b/opm/simulators/wells/StandardWellConnections.cpp @@ -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]); }