Repository navigation
Hysteresis-Based Conversion (DC/CD Thresholds)
π·οΈ Release Title
Hysteresis-Based Conversion (DC/CD Thresholds)
π Release Description
This release introduces a major improvement to the SRCM Engine conversion mechanism by replacing the single-threshold switching rule with a two-threshold hysteresis model.
π Key Changes
π Hysteresis-Based Regime Conversion
-
Introduced:
DC_thresholdβ controls discrete β continuous conversionCD_thresholdβ controls continuous β discrete conversion
-
Eliminates rapid oscillations between regimes near threshold boundaries
-
Provides more stable and physically realistic hybrid behaviour
βοΈ Updated Conversion API
-
ConversionParamsnow requires:ConversionParams( DC_threshold=..., CD_threshold=..., rate=..., )
π§ Improved Numerical Stability
- Reduced regime "chattering" in low-density regions
- More robust behaviour in spatially heterogeneous systems
- Better suitability for pattern formation and ecological models
π§ͺ Test Suite Updated
-
All tests updated to reflect new conversion logic
-
Added coverage for:
- DC/CD masks
- hysteresis deadband behaviour
- propensity correctness
π Documentation Updated
- README updated to reflect new conversion model
- Examples now use
DC_thresholdandCD_threshold - Clarified behaviour and motivation for hysteresis
β οΈ Breaking Changes
-
Removed:
ConversionParams(threshold=...)
-
All code must now use:
DC_threshold and CD_threshold
π‘ Why This Matters
The introduction of hysteresis significantly improves the stability of hybrid simulations by preventing frequent switching between discrete and continuous regimes when particle numbers fluctuate near a boundary.
This brings SRCM Engine closer to both:
- physical realism
- numerical robustness