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

Functions

 _run (network_loss)
 
 _sessile_inventory (r, n_inc=4)
 
 main ()
 

Variables

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

Detailed Description

check_loop_network_loss.py — end-to-end test for the loop → network-dislocation
loss channel (docs/Formulation/dislocation_loops/loop_network_loss.tex).

Verifies, against the C++ production solver:

  1. The channel is genuinely active — with LOOP_NETWORK_LOSS on it removes
     SIA-loop inventory relative to the OFF baseline (the network sweeps loops
     into the dislocation reservoir).
  2. Conservation is NOT degraded by the active channel — the SIA content swept
     into the network is routed into the J_SIA_fixed ledger (Eq. ledger), so the
     Frenkel-pair diagnostic dFP with the channel ON matches the OFF baseline.
     (The *absolute* dFP here is a few ×1e-2 because run_adaptive's multi-segment
     accounting carries a benign baseline transient at this short, hot, heavily-
     converting config; the OFF run shows the same level, and the single-segment
     ledger is exact — see check_loop_conversion_conservation.py.  The correct
     correctness statement is therefore comparative: ON ≈ OFF.)
  3. The Λ_n^net kernel is built non-zero and folded into the P4 sinks.

Both runs use loop conversion ON so the sessile ⟨100⟩ block (the population the
note says dominates network incorporation) is exercised through its new C++
loss term + ledger contribution.  χ is set far above its physical O(1) value
here only so the geometric switch P_ℓd turns on for the small loops the short
test produces (physical χ/K_rec calibration is Phase 5); w_c is likewise
amplified to make the per-second removal observable.

Requires a built solver.exe.  Run:
  python codes/Python_Testing/check_loop_network_loss.py

Function Documentation

◆ _run()

check_loop_network_loss._run (   network_loss)
protected
Run the C++ solver with loop conversion ON and the network-loss channel
either OFF (baseline) or ON.  Returns the accumulated results dict and the
final dynamic network density rho_net.

Definition at line 47 of file check_loop_network_loss.py.

◆ _sessile_inventory()

check_loop_network_loss._sessile_inventory (   r,
  n_inc = 4 
)
protected
Sessile SIA-loop content Σ_{n>=n_inc} n (c_n^{111} + c_n^{100}) at the
final time — the population the network-loss channel targets.

Definition at line 85 of file check_loop_network_loss.py.

◆ main()

check_loop_network_loss.main ( )

Definition at line 97 of file check_loop_network_loss.py.

Variable Documentation

◆ encoding

check_loop_network_loss.encoding

Definition at line 40 of file check_loop_network_loss.py.

◆ ROOT

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

Definition at line 36 of file check_loop_network_loss.py.