check_loop_conversion_conservation.py — Phase-7e end-to-end conservation test.
Runs the C++ solver with ½⟨111⟩→<100> conversion ON and verifies that the
Frenkel-pair conservation diagnostics hold once the SIA100 inventory and the
<100> shrink annihilation are folded into the accounting:
* dFP (swelling identity) → <= 1e-6 in the accumulated regime,
* dFP_sia (per-species SIA) → < 1e-3 in the accumulated regime,
* total SIA inventory S_I = Σ n (c_n^{111} + c_n^{100}) is finite and
below the cumulative cascade production η·G·t.
Conservation is checked at t >= 1e-3 s: the very first log-time point (t≈1e-6)
carries a benign startup transient (production ≈ floor), so the per-step `max`
is not a meaningful gate — the diagnostics decay to ~1e-6 as dose accumulates.
Requires a built solver.exe. Run:
python codes/Python_Testing/check_loop_conversion_conservation.py