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

Functions

 run (equations)
 
 main ()
 

Variables

 MOD = Path(__file__).resolve().parents[2]
 
int I = 1000
 
int DOSE = 1e-2
 
int TOL = 1e-4
 

Detailed Description

check_bm_vs_discrete.py — the discrete path silently ignores LOOP_COAL.

CLAUDE.md S1 says that at I_bin = 0 and i_discrete = I the bin_moment system IS
the discrete system.  It is not, and the reason is NOT a bin_moment defect:

    P.loop_coal -- 1/2<111> loop-loop coarsening, rate_kernels.cpp:1944 -- is
    implemented ONLY in rhs_bin_moment.  rhs_full_CD contains zero references
    to it.  The workbook ships LOOP_COAL = 1, so the discrete path accepts the
    flag, reports it in provenance, and does nothing with it.

So the discrete arm is not the exact solution of the same equations: it is the
same equations MINUS the loop-coarsening channel.  The bin_moment answer is the
physically intended one.

rate_kernels.cpp:1930 predicts exactly what the discrete arm then shows, and
calls it "the missing edge": without coarsening "the 1/2<111> mean size pins AT
the cutoff" and "the density runs 20-60x over the EUROFER97 data".  Measured
here: discrete d_111 frozen at 1.759 / 1.763 / 1.760 nm across a 30x dose range,
and N_111 3.5x the bin_moment value.

Runs in ~20 s.  Exits non-zero when the two paths disagree, so it can serve as a
regression test once the cause is fixed.

Function Documentation

◆ main()

check_bm_vs_discrete.main ( )

Definition at line 79 of file check_bm_vs_discrete.py.

◆ run()

check_bm_vs_discrete.run (   equations)

Definition at line 52 of file check_bm_vs_discrete.py.

Variable Documentation

◆ DOSE

int check_bm_vs_discrete.DOSE = 1e-2

Definition at line 44 of file check_bm_vs_discrete.py.

◆ I

int check_bm_vs_discrete.I = 1000

Definition at line 43 of file check_bm_vs_discrete.py.

◆ MOD

check_bm_vs_discrete.MOD = Path(__file__).resolve().parents[2]

Definition at line 30 of file check_bm_vs_discrete.py.

◆ TOL

int check_bm_vs_discrete.TOL = 1e-4

Definition at line 49 of file check_bm_vs_discrete.py.