29 sim = RadClusterSimulation(I=I, V=I, solver_mode=
"full_system",
30 equations=mode, cascade=
"fission",
31 he_kinetics=
"quasi_steady_state",
32 i_mobile=5, v_mobile=5)
33 cfg = {
"equations": mode,
"i_discrete": I,
"v_discrete": I,
34 "I_bin": 0,
"V_bin": 0,
"shape_function":
"linear"}
35 re_mod.apply_bin_config(sim, cfg)
36 sim.input_data.reactions[
"LOOP_NETWORK_LOSS"] = 1
37 sim.input_data._calculate_derived()
39 G = float(sim.input_data.reactions[
"G"])
40 scfg = {
"t_span": (1e-6, DOSE / G),
"n_points": 45,
"log_time":
True,
41 "required_times": (20.0 / G,),
"rtol": 1e-5,
"atol": 1e-20,
43 "solver_method": {
"linsol":
"gmres",
"preconditioner":
"woodbury",
44 "concentration_threshold": 1e-22},
47 res = sim.run_adaptive(solver_config=scfg, save_output=
False,
48 timeout_s=7200, max_doublings=0)
50 cfg2 = dict(cfg); cfg2.update({
"I": I,
"V": I,
"dose": DOSE,
51 "C_floor": float(sim.input_data.reactions.get(
"C_floor", 1e-15))})
52 o = re_mod.observe(res, sim, cfg2, 1.0)