|
RadCluster
Graph-based cluster dynamics for irradiated materials
|
Functions | |
| n_to_d_nm (n) | |
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 |
| dict | SOLVER_CONFIG |
| I_SIM | |
| V_SIM | |
| int | i_mobile = 10 |
| dict | OVERRIDES |
| saved = sys.stdout, sys.stderr | |
| stdout | |
| stderr | |
| sim | |
| inp = sim.input_data | |
| bool | placed = False |
| results | |
| d = inp.derived | |
| G = d['G'] | |
| dose = results['dose'] | |
| idx_01 = np.argmin(np.abs(dose - 0.1)) | |
| actual_dose = dose[idx_01] | |
| t_01 = results['t'][idx_01] | |
| y = results['y'][:, idx_01] | |
| c_i = np.maximum(y[0:I_SIM], 0.0) | |
| c_v = np.maximum(y[I_SIM:2*I_SIM], 0.0) | |
| ci1 = c_i[0] | |
| cv1 = c_v[0] | |
| float | s2m = 1.0 / d['Omega'] |
| rr = sim.reaction_rates | |
| re = sim.rate_equations | |
| cn = c_i[n-1] | |
| K_g = rr.K_SIA_grow[n-1] | |
| K_s = rr.K_SIA_shrink[n-1] | |
| G_em = rr.G_SIA[n-1] | |
| k2 = rr.k2_SIA[n-1] | |
| v_net = K_g * ci1 - K_s * cv1 | |
| growth_flux = K_g * ci1 * cn | |
| shrink_flux = K_s * cv1 * cn | |
| int | ratio = growth_flux / max(shrink_flux, 1e-300) if shrink_flux > 0 else float('inf') |
| Pr_1 = re.Pr_SIA[0] | |
| sink_loss = rr.k2_SIA[0] * ci1 | |
| growth_loss = ci1 * np.dot(rr.K_SIA_grow, c_i) | |
| recom_loss = rr.K_iv * ci1 * cv1 | |
| K_3D = rr.K_3D_cav_pref | |
| m13 = np.arange(1, V_SIM+1)**(1./3.) | |
| cav_loss = ci1 * K_3D * np.dot(m13, c_v) | |
| total_loss = sink_loss + growth_loss + recom_loss + cav_loss | |
| v_growth = np.array([rr.K_SIA_grow[n-1]*ci1 - rr.K_SIA_shrink[n-1]*cv1 for n in range(1, I_SIM+1)]) | |
| sorted_idx = np.argsort(c_i)[::-1] | |
| int | n = sorted_idx[rank] + 1 |
Growth rate diagnostic — examines WHY the SIA peak doesn't move. At ~0.1 dpa, extracts the SIA distribution and computes: - Net growth rate v(n) = K_grow(n)*c_1 - K_shrink(n)*c_v1 [size increments per second] - Production contribution at each n - Sink loss at each n - Monomer SIA and vacancy concentrations This tells us whether loops are growing (v > 0) or shrinking (v < 0) at each size.
| growth_diagnostic.n_to_d_nm | ( | n | ) |
Definition at line 42 of file growth_diagnostic.py.
Definition at line 116 of file growth_diagnostic.py.
| float growth_diagnostic.b_111 = 2.482e-10 |
Definition at line 40 of file growth_diagnostic.py.
Definition at line 120 of file growth_diagnostic.py.
Definition at line 121 of file growth_diagnostic.py.
Definition at line 190 of file growth_diagnostic.py.
| growth_diagnostic.ci1 = c_i[0] |
Definition at line 123 of file growth_diagnostic.py.
Definition at line 151 of file growth_diagnostic.py.
| growth_diagnostic.cv1 = c_v[0] |
Definition at line 124 of file growth_diagnostic.py.
| growth_diagnostic.d = inp.derived |
Definition at line 112 of file growth_diagnostic.py.
| growth_diagnostic.dose = results['dose'] |
Definition at line 114 of file growth_diagnostic.py.
| growth_diagnostic.G = d['G'] |
Definition at line 113 of file growth_diagnostic.py.
| growth_diagnostic.G_em = rr.G_SIA[n-1] |
Definition at line 154 of file growth_diagnostic.py.
Definition at line 159 of file growth_diagnostic.py.
Definition at line 180 of file growth_diagnostic.py.
| int growth_diagnostic.i_mobile = 10 |
Definition at line 60 of file growth_diagnostic.py.
| growth_diagnostic.I_SIM |
Definition at line 59 of file growth_diagnostic.py.
| growth_diagnostic.idx_01 = np.argmin(np.abs(dose - 0.1)) |
Definition at line 115 of file growth_diagnostic.py.
| growth_diagnostic.inp = sim.input_data |
Definition at line 80 of file growth_diagnostic.py.
| growth_diagnostic.k2 = rr.k2_SIA[n-1] |
Definition at line 155 of file growth_diagnostic.py.
| growth_diagnostic.K_3D = rr.K_3D_cav_pref |
Definition at line 188 of file growth_diagnostic.py.
| growth_diagnostic.K_g = rr.K_SIA_grow[n-1] |
Definition at line 152 of file growth_diagnostic.py.
| growth_diagnostic.K_s = rr.K_SIA_shrink[n-1] |
Definition at line 153 of file growth_diagnostic.py.
| growth_diagnostic.m13 = np.arange(1, V_SIM+1)**(1./3.) |
Definition at line 189 of file growth_diagnostic.py.
| growth_diagnostic.MODULE_ROOT = Path(__file__).resolve().parent.parent.parent |
Definition at line 18 of file growth_diagnostic.py.
| int growth_diagnostic.n = sorted_idx[rank] + 1 |
Definition at line 222 of file growth_diagnostic.py.
| float growth_diagnostic.Omega = 1.18e-29 |
Definition at line 39 of file growth_diagnostic.py.
| dict growth_diagnostic.OVERRIDES |
Definition at line 62 of file growth_diagnostic.py.
| bool growth_diagnostic.placed = False |
Definition at line 82 of file growth_diagnostic.py.
| growth_diagnostic.Pr_1 = re.Pr_SIA[0] |
Definition at line 172 of file growth_diagnostic.py.
| int growth_diagnostic.ratio = growth_flux / max(shrink_flux, 1e-300) if shrink_flux > 0 else float('inf') |
Definition at line 161 of file growth_diagnostic.py.
| growth_diagnostic.re = sim.rate_equations |
Definition at line 135 of file growth_diagnostic.py.
Definition at line 184 of file growth_diagnostic.py.
| growth_diagnostic.REPO_ROOT = MODULE_ROOT.parent |
Definition at line 19 of file growth_diagnostic.py.
| growth_diagnostic.results |
Definition at line 99 of file growth_diagnostic.py.
| growth_diagnostic.rr = sim.reaction_rates |
Definition at line 134 of file growth_diagnostic.py.
Definition at line 126 of file growth_diagnostic.py.
| growth_diagnostic.saved = sys.stdout, sys.stderr |
Definition at line 71 of file growth_diagnostic.py.
Definition at line 160 of file growth_diagnostic.py.
| growth_diagnostic.sim |
Definition at line 74 of file growth_diagnostic.py.
| growth_diagnostic.sink_loss = rr.k2_SIA[0] * ci1 |
Definition at line 176 of file growth_diagnostic.py.
| dict growth_diagnostic.SOLVER_CONFIG |
Definition at line 46 of file growth_diagnostic.py.
| growth_diagnostic.sorted_idx = np.argsort(c_i)[::-1] |
Definition at line 220 of file growth_diagnostic.py.
| growth_diagnostic.stderr |
Definition at line 72 of file growth_diagnostic.py.
| growth_diagnostic.stdout |
Definition at line 72 of file growth_diagnostic.py.
Definition at line 117 of file growth_diagnostic.py.
| growth_diagnostic.total_loss = sink_loss + growth_loss + recom_loss + cav_loss |
Definition at line 193 of file growth_diagnostic.py.
| growth_diagnostic.v_growth = np.array([rr.K_SIA_grow[n-1]*ci1 - rr.K_SIA_shrink[n-1]*cv1 for n in range(1, I_SIM+1)]) |
Definition at line 206 of file growth_diagnostic.py.
Definition at line 157 of file growth_diagnostic.py.
| growth_diagnostic.V_SIM |
Definition at line 59 of file growth_diagnostic.py.
Definition at line 119 of file growth_diagnostic.py.