Commit 0d5e743
authored
fix(prt): fix drape behavior (MODFLOW-ORG#2824)
Fix the PRT PRP package's DRAPE option's behavior. A draped particle's release was previously reported in the original release position, followed by a "dropped" (ireason=6) event due to the particle reaching the water table at tracking time as a result of the default DRY_TRACKING_METHOD setting DROP. This is inconsistent with the intent of the DRAPE option: DRAPE is applied before release to control a particle's release position. Draped particles will now be released in the highest active cell.
While this fix produces essentially identical pathlines (ignoring the release event and subsequent dropped event) as the previous logic, it is worth pointing out that PRT's DRAPE semantics diverge from MP7 in an important way: MP7 unconditionally calculates a particle release position's z coordinate with the given local z value, regardless whether the particle was draped. This means a draped particle may start beneath the water table if local z < 1. Whereas, PRT did previously and will continue to start draped particles at the water table in convertible cells. Both PRT and MP7 start draped particles at the geometric top of confined cells.1 parent 9f92119 commit 0d5e743
4 files changed
Lines changed: 43 additions & 30 deletions
File tree
- autotest
- __snapshots__/test_prt_dry
- doc/ReleaseNotes
- src/Model/ParticleTracking
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
608 | 609 | | |
609 | 610 | | |
610 | 611 | | |
| |||
617 | 618 | | |
618 | 619 | | |
619 | 620 | | |
620 | | - | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | 634 | | |
| 635 | + | |
645 | 636 | | |
646 | 637 | | |
647 | 638 | | |
| 639 | + | |
648 | 640 | | |
649 | 641 | | |
650 | 642 | | |
651 | 643 | | |
652 | | - | |
| 644 | + | |
| 645 | + | |
653 | 646 | | |
654 | 647 | | |
655 | 648 | | |
| |||
660 | 653 | | |
661 | 654 | | |
662 | 655 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
674 | 684 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | 685 | | |
682 | 686 | | |
683 | 687 | | |
| |||
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
693 | 700 | | |
694 | 701 | | |
695 | 702 | | |
| |||
0 commit comments