Commit b3b0a1d
Tor Harald Sandve
Fixes to the special case with almost only water
For the almost only water case the primary variables are p, sg and sw.
1) Use sw>=1-1e-6 as threshold for defining almost only water
2) Add sg to sw if sg<0 to make the oil saturation concistent even though sg is set to zero
3) Chop the water saturation at 1.01 and not 1.0 in order to improve convergence
4) Restrict update of rs/rv and rsw/rvw by the saturation scaling factor from the Appleyard-chopping.1 parent 7b35226 commit b3b0a1d
File tree
2 files changed
+22
-9
lines changed- opm/models/blackoil
2 files changed
+22
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
| |||
321 | 325 | | |
322 | 326 | | |
323 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
324 | 331 | | |
325 | 332 | | |
326 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | 498 | | |
501 | 499 | | |
502 | 500 | | |
| |||
548 | 546 | | |
549 | 547 | | |
550 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
551 | 553 | | |
552 | 554 | | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
557 | 562 | | |
558 | | - | |
| 563 | + | |
559 | 564 | | |
560 | 565 | | |
| 566 | + | |
561 | 567 | | |
562 | 568 | | |
563 | 569 | | |
564 | 570 | | |
565 | 571 | | |
566 | 572 | | |
567 | | - | |
| 573 | + | |
568 | 574 | | |
569 | | - | |
| 575 | + | |
570 | 576 | | |
571 | 577 | | |
572 | 578 | | |
| |||
0 commit comments