mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
Don't include connections with negligible flow in thpress caclulations
This commit is contained in:
parent
ef3de796bc
commit
0dbbfbd8a6
@ -197,6 +197,12 @@ private:
|
|||||||
// the current face is not at the boundary between EQUIL regions!
|
// the current face is not at the boundary between EQUIL regions!
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// don't include connections with negligible flow
|
||||||
|
const Scalar& trans = simulator_.problem().transmissibility(elemCtx, i, j);
|
||||||
|
const Scalar& faceArea = face.area();
|
||||||
|
if ( std::abs(faceArea * trans) < 1e-18)
|
||||||
|
continue;
|
||||||
|
|
||||||
// determine the maximum difference of the pressure of any phase over the
|
// determine the maximum difference of the pressure of any phase over the
|
||||||
// intersection
|
// intersection
|
||||||
Scalar pth = 0.0;
|
Scalar pth = 0.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user