Fix three phase check in waghystr model. Also check for oil phase

This commit is contained in:
Tor Harald Sandve
2023-08-29 12:39:46 +02:00
parent e08a4efe65
commit 0fad30d7cb

View File

@@ -558,7 +558,9 @@ public:
if (swatImbStartNxt_ < 0.0) { // Initial check ...
swatImbStartNxt_ = std::max(Swco_, Swco_ + krnSw - krwSw);
if (swatImbStartNxt_ > Swco_ + tolWAG_) {
// check if we are in threephase state sw > swco + tolWag and so > tolWag
// (sw = swco + krnSw - krwSw and so = krwSw for oil/gas params)
if ( (swatImbStartNxt_ > Swco_ + tolWAG_) && krwSw > tolWAG_) {
swatImbStart_ = swatImbStartNxt_;
krnSwWAG_ = krnSw;
krnSwDrainStartNxt_ = krnSwWAG_;