|
RadCluster
Graph-based cluster dynamics for irradiated materials
|
Functions | |
| run_case (equations, loop_conversion, linsol='gmres', label='') | |
Variables | |
| MODULE_ROOT = Path(__file__).resolve().parents[2] | |
| REPO_ROOT = MODULE_ROOT.parent | |
| r1 = run_case('bin_moment', True, 'gmres', 'bin+conv ON ') | |
| r2 = run_case('bin_moment', False, 'gmres', 'bin+conv OFF') | |
| r3 = run_case('discrete', True, 'gmres', 'disc+conv ON') | |
| r4 = run_case('discrete', False, 'klu', 'disc+KLU ') | |
| bool | ok = True |
| dFP = float(r1['N_loops_100'][-1]) | |
check_binmoment_loop100.py — verify the bin-moment ⟨100⟩ SIA-loop reduction and the KLU sparse-direct solver. Runs four short cases and checks: 1. bin_moment + loop_conversion ON → δ_FP small, ⟨100⟩ population grows. 2. bin_moment + loop_conversion OFF → δ_FP small (regression: ½⟨111⟩ path). 3. discrete + loop_conversion ON → δ_FP small (validated baseline). 4. discrete + KLU (linsol='klu') → runs, δ_FP small.
| check_binmoment_loop100.run_case | ( | equations, | |
| loop_conversion, | |||
linsol = 'gmres', |
|||
label = '' |
|||
| ) |
Definition at line 25 of file check_binmoment_loop100.py.
| check_binmoment_loop100.dFP = float(r1['N_loops_100'][-1]) |
Definition at line 106 of file check_binmoment_loop100.py.
| check_binmoment_loop100.MODULE_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 15 of file check_binmoment_loop100.py.
| bool check_binmoment_loop100.ok = True |
Definition at line 104 of file check_binmoment_loop100.py.
| check_binmoment_loop100.r1 = run_case('bin_moment', True, 'gmres', 'bin+conv ON ') |
Definition at line 98 of file check_binmoment_loop100.py.
| check_binmoment_loop100.r2 = run_case('bin_moment', False, 'gmres', 'bin+conv OFF') |
Definition at line 99 of file check_binmoment_loop100.py.
| check_binmoment_loop100.r3 = run_case('discrete', True, 'gmres', 'disc+conv ON') |
Definition at line 100 of file check_binmoment_loop100.py.
| check_binmoment_loop100.r4 = run_case('discrete', False, 'klu', 'disc+KLU ') |
Definition at line 101 of file check_binmoment_loop100.py.
| check_binmoment_loop100.REPO_ROOT = MODULE_ROOT.parent |
Definition at line 16 of file check_binmoment_loop100.py.