mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
THPRES: change the sign of the gravity correction
we're correcting the pressure at the cell center depths to get the pressure at the face depth, not the other way around. This is confusing... thanks to [at]totto82 for discovering this.
This commit is contained in:
parent
028cd32f11
commit
df9a927c5b
@ -278,8 +278,8 @@ namespace Opm
|
||||
double p1 = phasePressure[phaseIdx][c1];
|
||||
double p2 = phasePressure[phaseIdx][c2];
|
||||
|
||||
p1 += rhoAvg*gravity*(z1 - zAvg);
|
||||
p2 += rhoAvg*gravity*(z2 - zAvg);
|
||||
p1 += rhoAvg*gravity*(zAvg - z1);
|
||||
p2 += rhoAvg*gravity*(zAvg - z2);
|
||||
|
||||
if ((p1 > p2 && s1 > 0.0) || (p2 > p1 && s2 > 0.0))
|
||||
maxDp[barrierId] = std::max(maxDp[barrierId], std::abs(p1 - p2));
|
||||
|
Loading…
Reference in New Issue
Block a user