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

Variables

 MODULE_ROOT = Path(__file__).resolve().parent.parent.parent
 
 REPO_ROOT = MODULE_ROOT.parent
 
 I
 
 V
 
 i_mobile
 
 v_mobile
 
 _saved = sys.stdout, sys.stderr
 
 stdout
 
 stderr
 
 sim
 
dict OVERRIDES
 
 inp = sim.input_data
 
bool placed = False
 
dict SOLVER_CONFIG
 
 flush
 
 results
 

Detailed Description

Quick solver test — runs 2 short segments and prints CVODE diagnostics.

Variable Documentation

◆ _saved

test_solver._saved = sys.stdout, sys.stderr
protected

Definition at line 28 of file test_solver.py.

◆ flush

test_solver.flush

Definition at line 80 of file test_solver.py.

◆ I

test_solver.I

Definition at line 25 of file test_solver.py.

◆ i_mobile

test_solver.i_mobile

Definition at line 26 of file test_solver.py.

◆ inp

test_solver.inp = sim.input_data

Definition at line 50 of file test_solver.py.

◆ MODULE_ROOT

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

Definition at line 5 of file test_solver.py.

◆ OVERRIDES

dict test_solver.OVERRIDES
Initial value:
1= {
2 'eta': 0.3, 'f_cl_i': 0.58, 'f_cl_v': 0.45,
3 'E_m_1D': 0.34, 'i_mobile': i_mobile, 'L_hat': 71.8,
4 'c_C': 1.94e-4, 'E_b_C_SIA': 0.45, 'rho_d': 1e14,
5 'Z_i': 1.1, 'Z_ii': 1.1, 'shape_function': 'lognormal',
6 'i_discrete': i_mobile, 'v_discrete': v_mobile,
7 'I_bin': 30, 'V_bin': 30,
8}

Definition at line 40 of file test_solver.py.

◆ placed

test_solver.placed = False

Definition at line 52 of file test_solver.py.

◆ REPO_ROOT

test_solver.REPO_ROOT = MODULE_ROOT.parent

Definition at line 6 of file test_solver.py.

◆ results

test_solver.results
Initial value:
1= sim.run_adaptive(
2 solver_config=SOLVER_CONFIG,
3 save_output=False,
4 boundary_threshold=0.1,
5 max_doublings=0,
6 points_per_segment=10,
7)

Definition at line 82 of file test_solver.py.

◆ sim

test_solver.sim
Initial value:
1= RadClusterSimulation(
2 I=I, V=V, solver_mode='full_system',
3 physics_option='bin_moment_CD_fission',
4 C_floor=1e-25, he_kinetics='quasi_steady_state',
5 i_mobile=i_mobile, v_mobile=v_mobile)

Definition at line 31 of file test_solver.py.

◆ SOLVER_CONFIG

dict test_solver.SOLVER_CONFIG
Initial value:
1= {
2 't_span': (1e-6, 3.16), # segments 1-5 time range (up to original failure)
3 'n_points': 50,
4 'log_time': True,
5 'rtol': 1e-6, 'atol': 1e-25,
6 'solver_method': {
7 'linsol': 'gmres',
8 }
9}

Definition at line 68 of file test_solver.py.

◆ stderr

test_solver.stderr

Definition at line 29 of file test_solver.py.

◆ stdout

test_solver.stdout

Definition at line 29 of file test_solver.py.

◆ V

test_solver.V

Definition at line 25 of file test_solver.py.

◆ v_mobile

test_solver.v_mobile

Definition at line 26 of file test_solver.py.