saltproc.app module¶
- saltproc.app.check_restart(restart_flag)[source]¶
If the user set Restart simulation from the step when it stopped? for False clean out iteration files and database from previous run.
- Parameters
restart_flag (bool) – Is the current simulation restarted?
- saltproc.app.parse_arguments()[source]¶
Parses arguments from command line.
- Returns
n (int) – Number of nodes for use in Serpent simulation.
d (int) – Number of cores for use in Serpent simulation.
i (str) – Path and name of main SaltProc input file (json format).
- saltproc.app.read_dot(dot_file)[source]¶
Reads directed graph that describes fuel reprocessing system structure from *.dot file.
- Parameters
dot_file (str) – Path to .dot file with reprocessing system structure.
- Returns
mat_name (str) – Name of burnable material which reprocessing scheme described in .dot file.
paths_list (list) – List of lists containing all possible paths between core_outlet and core_inlet.
- saltproc.app.read_feeds_from_input()[source]¶
Parses
feed
data from .json file with Materialflow objects description. Then returns dictionary of Materialflow objects describing fresh fuel feeds.- Returns
mats – Dictionary that contains Materialflow objects with feeds.
key
Name of burnable material.
value
Materialflow object holding composition and properties of feed.
- Return type
dict of str to Materialflow
- saltproc.app.read_main_input(main_inp_file)[source]¶
Reads main SaltProc input file (json format).
- Parameters
main_inp_file (str) – Path to SaltProc main input file and name of this file.
- saltproc.app.read_processes_from_input()[source]¶
Parses
removal
data from .json file with Process objects description. Then returns dictionary of Process objects describing extraction process efficiency for each target chemical element.- Returns
mats – Dictionary that contains Process objects.
key
Name of burnable material.
value
Process object holding extraction process parameters.
- Return type
dict of str to Process
- saltproc.app.refill(mat, extracted_mass, waste_dict)[source]¶
Makes up material loss in removal processes by adding fresh fuel.
- Parameters
mat (dict of str to Materialflow) –
key
Name of burnable material.
value
Materialflow object after performing all removals.
extracted_mass (dict of str to float) –
key
Name of burnable material.
value
Mass removed as waste in reprocessing function for each material.
waste (dict of str to Materialflow) –
key
Process name.
value
Materialflow object containing waste streams data.
- Returns
refilled_mats – Dictionary that contains Materialflow objects.
key
Name of burnable material.
value
Materialflow object after adding fresh fuel.
- Return type
dict of str to Materialflow
- saltproc.app.reprocessing(mat)[source]¶
Applies reprocessing scheme to burnable materials.
- Parameters
mats (dict of str to Materialflow) –
Dictionary that contains Materialflow objects with burnable material data right after irradiation in the core.
key
Name of burnable material.
value
Materialflow object holding composition and properties.
- Returns
waste (dict of str to Materialflow) –
key
Process name.
value
Materialflow object containing waste streams data.
extracted_mass (dict of str to Materialflow) –
key
Name of burnable material.
value
Mass removed as waste in reprocessing function for each material (g).