From e7a80216e83c83a0a59735d6d4dbd9701982f221 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Mon, 12 Jan 2015 11:55:16 +0100 Subject: [PATCH] ECL peaceman well: fix sign error in gravity correction --- applications/ebos/eclpeacemanwell.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/ebos/eclpeacemanwell.hh b/applications/ebos/eclpeacemanwell.hh index 698b0db80..b312c3016 100644 --- a/applications/ebos/eclpeacemanwell.hh +++ b/applications/ebos/eclpeacemanwell.hh @@ -1178,9 +1178,9 @@ protected: Valgrind::CheckDefined(refDepth_); // pressure in the borehole ("hole pressure") at the given location - Scalar ph = pbh + rho*g*(refDepth_ - depth); + Scalar ph = pbh + rho*g*(depth - refDepth_); - // volumetric flux of the phase from the well to the reservoir + // volumetric reservoir rate for the phase volRates[phaseIdx] = Twj*lambda*(ph - p); Valgrind::CheckDefined(g);