-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from yardasol/generalize-simulation
Prepare `Simulation` and `App` classes for OpenMC support, rework input file structure
- Loading branch information
Showing
25 changed files
with
1,294 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ dependencies: | |
- networkx | ||
- pydotplus | ||
- pytest | ||
- jsonschema | ||
- pip: | ||
- argparse==1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
{ | ||
"Path to Serpent executable": "sss2", | ||
"File containing processing system objects": "msbr_objects.json", | ||
"Graph file containing processing system structure": "msbr.dot", | ||
"User's Serpent input file with reactor model": "msbr.serpent", | ||
"Path output data storing folder": "../../saltproc/data/", | ||
"Output HDF5 database file name": "msbr_kl_100_saltproc.h5", | ||
"Number of neutrons per generation": 50, | ||
"Number of active generations": 20, | ||
"Number of inactive generations": 20, | ||
"Restart simulation from the step when it stopped?": false, | ||
"Geometry file/files to use in Serpent runs": "geometry/msbr_full.ini", | ||
"Switch to another geometry when keff drops below 1?": false, | ||
"Salt mass flow rate throughout reactor core (g/s)": 9920000, | ||
"Number of steps for constant power and depletion interval case": 12, | ||
"Depletion step interval or Cumulative time (end of step) (d)": 3, | ||
"Reactor power or power step list during depletion step (W)": 2250000000 | ||
"proc_input_file": "msbr_objects.json", | ||
"dot_input_file": "msbr.dot", | ||
"output_path": "./data", | ||
"num_depsteps": 12, | ||
"depcode": { | ||
"codename": "serpent", | ||
"exec_path": "sss2", | ||
"template_inputfile_path": "./msbr.serpent", | ||
"iter_inputfile": "saltproc_serpent", | ||
"iter_matfile": "saltproc_mat", | ||
"npop": 50, | ||
"active_cycles": 20, | ||
"inactive_cycles": 20, | ||
"geo_file_paths": ["./geometry/msbr_full.ini"] | ||
}, | ||
"simulation": { | ||
"sim_name": "msbr_example_simulation", | ||
"db_name": "msbr_kl_100_saltproc.h5", | ||
"restart_flag": false, | ||
"adjust_geo": false | ||
}, | ||
"reactor": { | ||
"volume": 1.0, | ||
"mass_flowrate": 9920000, | ||
"power_levels": [ 2250000000 ], | ||
"dep_step_length_cumulative": [ 3 ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,45 @@ | ||
{ | ||
"Path to Serpent executable": "sss2", | ||
"File containing processing system objects": "tap_objects.json", | ||
"Graph file containing processing system structure": "tap.dot", | ||
"User's Serpent input file with reactor model": "tap.serpent", | ||
"Path output data storing folder": "../../saltproc/data/", | ||
"Output HDF5 database file name": "db_saltproc.h5", | ||
"Number of neutrons per generation": 50, | ||
"Number of active generations": 20, | ||
"Number of inactive generations": 20, | ||
"Restart simulation from the step when it stopped?": false, | ||
"Geometry file/files to use in Serpent runs": [ | ||
"geometry/347_base.ini", | ||
"geometry/406.ini", | ||
"geometry/427.ini", | ||
"geometry/505.ini", | ||
"geometry/576.ini", | ||
"geometry/633.ini", | ||
"geometry/681.ini", | ||
"geometry/840.ini", | ||
"geometry/880.ini", | ||
"geometry/900.ini", | ||
"geometry/988.ini", | ||
"geometry/1126.ini", | ||
"geometry/1338.ini", | ||
"geometry/1498.ini", | ||
"geometry/1668_all.ini" | ||
], | ||
"Switch to another geometry when keff drops below 1?": true, | ||
"Salt mass flow rate throughout reactor core (g/s)": 9920000, | ||
"Number of steps for constant power and depletion interval case": 3, | ||
"Depletion step interval or Cumulative time (end of step) (d)": 2, | ||
"Reactor power or power step list during depletion step (W)": 1250000000 | ||
"proc_input_file": "tap_objects.json", | ||
"dot_input_file": "tap.dot", | ||
"output_path": "./data", | ||
"num_depsteps": 3, | ||
"depcode": { | ||
"codename": "serpent", | ||
"exec_path": "sss2", | ||
"template_inputfile_path": "./tap.serpent", | ||
"iter_inputfile": "saltproc_serpent", | ||
"iter_matfile": "saltproc_mat", | ||
"npop": 50, | ||
"active_cycles": 20, | ||
"inactive_cycles": 20, | ||
"geo_file_paths": [ | ||
"./geometry/347_base.ini", | ||
"./geometry/406.ini", | ||
"./geometry/427.ini", | ||
"./geometry/505.ini", | ||
"./geometry/576.ini", | ||
"./geometry/633.ini", | ||
"./geometry/681.ini", | ||
"./geometry/840.ini", | ||
"./geometry/880.ini", | ||
"./geometry/900.ini", | ||
"./geometry/988.ini", | ||
"./geometry/1126.ini", | ||
"./geometry/1338.ini", | ||
"./geometry/1498.ini", | ||
"./geometry/1668_all.ini" | ||
] | ||
}, | ||
"simulation": { | ||
"sim_name": "test_simulation", | ||
"db_name": "db_saltproc.h5", | ||
"restart_flag": false, | ||
"adjust_geo": true | ||
}, | ||
"reactor": { | ||
"volume": 1.0, | ||
"mass_flowrate": 9920000, | ||
"power_levels": [ 1250000000 ], | ||
"dep_step_length_cumulative": [ 2 ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ pyne | |
numpy | ||
scipy | ||
json | ||
jsonschema | ||
pytables | ||
networkx | ||
pydotplus |
Oops, something went wrong.