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

Functions

 n_to_d_nm (n)
 
 run_case (name, overrides)
 

Variables

 MODULE_ROOT = Path(__file__).resolve().parent.parent.parent
 
 REPO_ROOT = MODULE_ROOT.parent
 
float Omega = 1.18e-29
 
float b_111 = 2.482e-10
 
 I_SIM
 
 V_SIM
 
dict SOLVER_CONFIG
 
dict BASE_PARAMS
 
dict CASES
 
str out_dir = Path(__file__).parent / 'bias_study_output'
 
 exist_ok
 
list all_results = []
 
 t0 = time.time()
 
 flush
 
 t1 = time.time()
 
 res = run_case(name, overrides)
 
 elapsed = time.time() - t1
 
 total = time.time() - t0
 
 fig1
 
 axes1
 
 figsize
 
 sharex
 
 dose = res['dose']
 
int mask = dose > 1e-8
 
 label
 
 fontsize
 
 ncol
 
 True
 
 alpha
 
 dpi
 
 fig2
 
 ax2
 
 ratio = res['flux_i'][mask] / np.maximum(res['flux_v'][mask], 1e-30)
 
 y
 
 color
 
 linestyle
 
 linewidth
 
 ax3a
 
 ax3b
 
 ns = np.arange(1, I_SIM + 1)
 
 d_nm = n_to_d_nm(ns)
 
 c_i = res['c_i_01']
 
 p = r['params']
 

Detailed Description

Bias study — examines how dislocation bias (Z_i) and production bias (f_cl_i, f_cl_v)
affect SIA and vacancy cluster size peaks, and plots the fundamental monomer fluxes.

With the loop geometry correction (A_loop * n^{1/2} for n ≥ 4), the Z_i_loop bias
creates differential SIA vs vacancy absorption that drives net loop growth.

Function Documentation

◆ n_to_d_nm()

bias_study.n_to_d_nm (   n)

Definition at line 42 of file bias_study.py.

◆ run_case()

bias_study.run_case (   name,
  overrides 
)
Run one simulation and return full results + rate info.

Definition at line 68 of file bias_study.py.

Variable Documentation

◆ all_results

list bias_study.all_results = []

Definition at line 247 of file bias_study.py.

◆ alpha

bias_study.alpha

Definition at line 286 of file bias_study.py.

◆ ax2

bias_study.ax2

Definition at line 301 of file bias_study.py.

◆ ax3a

bias_study.ax3a

Definition at line 321 of file bias_study.py.

◆ ax3b

bias_study.ax3b

Definition at line 321 of file bias_study.py.

◆ axes1

bias_study.axes1

Definition at line 275 of file bias_study.py.

◆ b_111

float bias_study.b_111 = 2.482e-10

Definition at line 41 of file bias_study.py.

◆ BASE_PARAMS

dict bias_study.BASE_PARAMS
Initial value:
1= {
2 'E_m_1D': 0.4, 'i_mobile': 10, 'L_hat': 71.8,
3 'c_C': 1.94e-4, 'E_b_C_SIA': 0.65,
4 'rho_d': 1e13,
5 'shape_function': 'linear',
6}

Definition at line 60 of file bias_study.py.

◆ c_i

bias_study.c_i = res['c_i_01']

Definition at line 326 of file bias_study.py.

◆ CASES

dict bias_study.CASES

Definition at line 192 of file bias_study.py.

◆ color

bias_study.color

Definition at line 307 of file bias_study.py.

◆ d_nm

bias_study.d_nm = n_to_d_nm(ns)

Definition at line 323 of file bias_study.py.

◆ dose

bias_study.dose = res['dose']

Definition at line 278 of file bias_study.py.

◆ dpi

bias_study.dpi

Definition at line 295 of file bias_study.py.

◆ elapsed

bias_study.elapsed = time.time() - t1

Definition at line 261 of file bias_study.py.

◆ exist_ok

bias_study.exist_ok

Definition at line 240 of file bias_study.py.

◆ fig1

bias_study.fig1

Definition at line 275 of file bias_study.py.

◆ fig2

bias_study.fig2

Definition at line 301 of file bias_study.py.

◆ figsize

bias_study.figsize

Definition at line 275 of file bias_study.py.

◆ flush

bias_study.flush

Definition at line 251 of file bias_study.py.

◆ fontsize

bias_study.fontsize

Definition at line 285 of file bias_study.py.

◆ I_SIM

bias_study.I_SIM

Definition at line 46 of file bias_study.py.

◆ label

bias_study.label

Definition at line 280 of file bias_study.py.

◆ linestyle

bias_study.linestyle

Definition at line 307 of file bias_study.py.

◆ linewidth

bias_study.linewidth

Definition at line 307 of file bias_study.py.

◆ mask

int bias_study.mask = dose > 1e-8

Definition at line 279 of file bias_study.py.

◆ MODULE_ROOT

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

Definition at line 17 of file bias_study.py.

◆ ncol

bias_study.ncol

Definition at line 285 of file bias_study.py.

◆ ns

bias_study.ns = np.arange(1, I_SIM + 1)

Definition at line 322 of file bias_study.py.

◆ Omega

float bias_study.Omega = 1.18e-29

Definition at line 40 of file bias_study.py.

◆ out_dir

str bias_study.out_dir = Path(__file__).parent / 'bias_study_output'

Definition at line 239 of file bias_study.py.

◆ p

bias_study.p = r['params']

Definition at line 358 of file bias_study.py.

◆ ratio

bias_study.ratio = res['flux_i'][mask] / np.maximum(res['flux_v'][mask], 1e-30)

Definition at line 305 of file bias_study.py.

◆ REPO_ROOT

bias_study.REPO_ROOT = MODULE_ROOT.parent

Definition at line 18 of file bias_study.py.

◆ res

bias_study.res = run_case(name, overrides)

Definition at line 256 of file bias_study.py.

◆ sharex

bias_study.sharex

Definition at line 275 of file bias_study.py.

◆ SOLVER_CONFIG

dict bias_study.SOLVER_CONFIG
Initial value:
1= {
2 't_span': (1e-6, 1e5), # → 0.1 dpa at G=1e-6
3 'n_points': 150,
4 'log_time': True,
5 'rtol': 1e-5,
6 'atol': 1e-20,
7 'solver_method': {
8 'linsol': 'gmres',
9 'window_width': 50,
10 'concentration_threshold': 1e-18, 'window_pad': 10,
11 }
12}

Definition at line 47 of file bias_study.py.

◆ t0

bias_study.t0 = time.time()

Definition at line 248 of file bias_study.py.

◆ t1

bias_study.t1 = time.time()

Definition at line 254 of file bias_study.py.

◆ total

bias_study.total = time.time() - t0

Definition at line 269 of file bias_study.py.

◆ True

bias_study.True

Definition at line 286 of file bias_study.py.

◆ V_SIM

bias_study.V_SIM

Definition at line 46 of file bias_study.py.

◆ y

bias_study.y

Definition at line 307 of file bias_study.py.