Commit 72ece1f
committed
Auto-detect bdf_blend: 1.0 for pure VE, 0.75 for VEP
The previous default (0.5) degraded order-2 VE accuracy. Now:
- bdf_blend defaults to None (auto-detect)
- Pure VE (yield_stress = oo): uses 1.0 (pure BDF-k, full accuracy)
- VEP (finite yield_stress): uses 0.75 (stable, near-optimal accuracy)
- Users can still override explicitly with stokes.constitutive_model.bdf_blend = value
Also fixes _update_bdf_coefficients to read the property (self.bdf_blend)
instead of the backing field (self._bdf_blend) so auto-detect works.
Test test_1051 no longer needs explicit bdf_blend — auto-detect gives 1.0
for its pure VE setup.
Underworld development team with AI support from Claude Code1 parent 35d2c40 commit 72ece1f
File tree
2 files changed
+8
-5
lines changed- src/underworld3
- tests
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
| 1115 | + | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
| 1366 | + | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
| |||
1761 | 1761 | | |
1762 | 1762 | | |
1763 | 1763 | | |
1764 | | - | |
1765 | | - | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
1766 | 1767 | | |
| 1768 | + | |
| 1769 | + | |
1767 | 1770 | | |
1768 | 1771 | | |
1769 | 1772 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments