Commit 52bf5f0
committed
Add region labels to BoxInternalBoundary via centroid classification
BoxInternalBoundary uses a different label import path (Face Sets +
_dm_unstack_bcs) that conflicts with useRegions=True. Instead of
changing the import mechanism, classify cells by centroid position
after mesh construction: cells below zintCoord = Inner, above = Outer.
Works for both 2D and 3D, simplex and structured meshes.
extract_region("Inner") verified on 2D box.
All 21 boundary integral tests pass.
Underworld development team with AI support from Claude Code1 parent 5492ed5 commit 52bf5f0
1 file changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
909 | | - | |
| 909 | + | |
| 910 | + | |
910 | 911 | | |
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
914 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
915 | 952 | | |
916 | 953 | | |
917 | 954 | | |
| |||
0 commit comments