66from copy import deepcopy
77import subprocess
88from mosden .utils .chemical_schemes import Reprocessing
9+ import numpy as np
910
1011base_input_file = './input.json'
1112analysis_list = list ()
1213
1314name = 'tintex'
15+ dt = 5
16+ tf = 30
1417residence_time_analysis = {
18+ 'meta' : {
19+ 'name' : name ,
20+ 'run_full' : False ,
21+ 'run_post' : False ,
22+ 'overwrite' : True ,
23+ },
24+ 'incore_s' : [10 , 20 , 30 ],
25+ 'excore_s' : [float (i ) for i in np .arange (0 , tf + dt , dt )],
26+ 'multi_id' : [name ]
27+ }
28+ analysis_list .append (residence_time_analysis )
29+
30+ name = 'OpenMC Particles'
31+ nps_analysis = {
1532 'meta' : {
1633 'name' : name ,
1734 'run_full' : True ,
1835 'run_post' : True ,
1936 'overwrite' : True ,
2037 },
21- 'incore_s' : [100 , 50 ],
22- 'excore_s' : [0 , 50 ],
38+ 'nps' : [10 , 100 , 500 , 1000 , 5000 ],#, 10000, 50000],
2339 'multi_id' : [name ]
2440}
25- analysis_list .append (residence_time_analysis )
41+ analysis_list .append (nps_analysis )
42+
43+
44+ name = 'Decay Times'
45+ decay_time_analysis = {
46+ 'meta' : {
47+ 'name' : name ,
48+ 'run_full' : True ,
49+ 'run_post' : True ,
50+ 'overwrite' : True ,
51+ },
52+ 'num_decay_times' : [50 , 100 , 200 , 400 , 800 ],
53+ 'multi_id' : [name ]
54+ }
55+ analysis_list .append (decay_time_analysis )
56+
57+ name = 'Decay Time'
58+ decay_time_analysis = {
59+ 'meta' : {
60+ 'name' : name ,
61+ 'run_full' : True ,
62+ 'run_post' : True ,
63+ 'overwrite' : True ,
64+ },
65+ 'decay_times' : [150 , 300 , 600 , 1200 , 2400 , 4800 ],
66+ 'multi_id' : [name ]
67+ }
68+ analysis_list .append (decay_time_analysis )
2669
2770
2871def replace_value (input_data : dict , key : str , new_val : str | float | int ) -> bool :
@@ -172,4 +215,4 @@ def run_mosden(analysis: dict, input_paths: list[str]) -> None:
172215 if analysis ['meta' ]['run_full' ] or analysis ['meta' ]['run_post' ]:
173216 input_paths = populate_inputs (analysis , dir_name )
174217 run_mosden (analysis , input_paths )
175- pass
218+ pass
0 commit comments