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

Functions

 run_single (eq, cas, hk)
 
 main ()
 

Variables

 MODULE_ROOT = Path(__file__).resolve().parent.parent.parent
 
 REPO_ROOT = MODULE_ROOT.parent
 
int I = 200
 
 i_mobile
 
 v_mobile
 
dict SOLVER_CONFIG
 
 BIN_KW = dict(i_discrete=i_mobile, v_discrete=v_mobile, I_bin=15, V_bin=15)
 

Detailed Description

He-conservation audit — runs all four physics options x both He-kinetics
modes at small system size and reports the delta_He / delta_FP diagnostics.

The conservation identity tested (Eq. delta_He):
    dynamic:  c_h(t) + Q(t) + J_He_sink(t) = c_h(0) + Q(0) + int_0^t G_He dt'
    QSS:      Q(t) + J_He_sink(t)          = Q(0)          + int_0^t G_He dt'
where Q = Q_tot (Case 2) or sum_m Q_m (Case 1), and J_He_sink is the CVODE
accounting integral of all He sink losses.  delta_He is the relative defect;
values <~ 1e-6 mean every He channel is balanced, > 1e-3 indicates a leak.

Each configuration runs in its own subprocess (pass "<equations> <cascade>
<he_kinetics>" as argv to run one config) so a failure in one cannot affect
the others.

Function Documentation

◆ main()

check_he_conservation.main ( )

Definition at line 76 of file check_he_conservation.py.

◆ run_single()

check_he_conservation.run_single (   eq,
  cas,
  hk 
)

Definition at line 35 of file check_he_conservation.py.

Variable Documentation

◆ BIN_KW

check_he_conservation.BIN_KW = dict(i_discrete=i_mobile, v_discrete=v_mobile, I_bin=15, V_bin=15)

Definition at line 32 of file check_he_conservation.py.

◆ I

int check_he_conservation.I = 200

Definition at line 21 of file check_he_conservation.py.

◆ i_mobile

check_he_conservation.i_mobile

Definition at line 22 of file check_he_conservation.py.

◆ MODULE_ROOT

check_he_conservation.MODULE_ROOT = Path(__file__).resolve().parent.parent.parent

Definition at line 18 of file check_he_conservation.py.

◆ REPO_ROOT

check_he_conservation.REPO_ROOT = MODULE_ROOT.parent

Definition at line 19 of file check_he_conservation.py.

◆ SOLVER_CONFIG

dict check_he_conservation.SOLVER_CONFIG
Initial value:
1= {
2 't_span': (1e-6, 1e3),
3 'n_points': 25,
4 'log_time': True,
5 'rtol': 1e-8, 'atol': 1e-30,
6 'solver_method': {'linsol': 'gmres'},
7}

Definition at line 24 of file check_he_conservation.py.

◆ v_mobile

check_he_conservation.v_mobile

Definition at line 22 of file check_he_conservation.py.