RadCluster
Graph-based cluster dynamics for irradiated materials
Loading...
Searching...
No Matches
Functions | Variables
check_loop_conversion_conservation Namespace Reference

Functions

 _run (loop_conversion)
 
 main ()
 

Variables

 ROOT = Path(__file__).resolve().parents[2]
 

Detailed Description

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

Function Documentation

◆ _run()

check_loop_conversion_conservation._run (   loop_conversion)
protected

Definition at line 32 of file check_loop_conversion_conservation.py.

◆ main()

check_loop_conversion_conservation.main ( )

Definition at line 58 of file check_loop_conversion_conservation.py.

Variable Documentation

◆ ROOT

check_loop_conversion_conservation.ROOT = Path(__file__).resolve().parents[2]

Definition at line 26 of file check_loop_conversion_conservation.py.