Skip to content

Commit 5b4e60c

Browse files
authored
Merge pull request arfc#177 from yardasol/openmc-depletion-settings
Add OpenMC depletion settings to input file
2 parents 2283468 + 1f1d8af commit 5b4e60c

34 files changed

Lines changed: 1720 additions & 387 deletions

doc/fileformatspec/depcode_input.rst

Lines changed: 546 additions & 0 deletions
Large diffs are not rendered by default.

doc/fileformatspec/index.rst

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
11
.. _fileformatspec:
22

3-
==========================
43
File Format Specifications
54
==========================
65

6+
.. _fileformatspect_input_files:
7+
8+
Input Files
9+
-----------
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
14+
saltproc_input
15+
depcode_input
16+
simulation_input
17+
reactor_input
18+
19+
20+
.. _fileformatspec_output_files:
21+
22+
Output Files
23+
------------
24+
725
.. toctree::
826
:maxdepth: 1
927

10-
inputfile
1128
databasefile

doc/fileformatspec/inputfile.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
.. _reactor_input:
2+
3+
``reactor`` Properties
4+
=========================
5+
6+
Required properties: ``volume``, ``mass_flowrate``, ``power_levels``,
7+
``depletion_timesteps``, ``timestep_units``
8+
9+
.. _volume_property:
10+
11+
``volume``
12+
----------
13+
:description:
14+
reactor core volume [cm^3]
15+
16+
:type:
17+
``number``
18+
19+
:minimum:
20+
0
21+
22+
23+
.. _mass_flowrate_property:
24+
25+
``mass_flowrate``
26+
-----------------
27+
28+
:description:
29+
Salt mass flowrate through reactor core [g/s]
30+
31+
:type:
32+
``number``
33+
34+
:minimum:
35+
0
36+
37+
38+
.. _power_levels_property:
39+
40+
``power_levels``
41+
----------------
42+
43+
:description:
44+
Reactor power or power step list durng depletion step [W]
45+
46+
:type:
47+
``array``
48+
49+
:items:
50+
51+
:type:
52+
``number``
53+
54+
:minimum:
55+
0
56+
57+
:minItems:
58+
1
59+
60+
:uniqueItems:
61+
``false``
62+
63+
64+
.. _depletion_timesteps_property:
65+
66+
``depletion_timesteps``
67+
-----------------------
68+
69+
:description:
70+
Depletion timestep size or list of timestep sizes
71+
72+
:type:
73+
``array``
74+
75+
:items:
76+
77+
:type:
78+
``number``
79+
80+
:minimum:
81+
0
82+
83+
:minItems:
84+
1
85+
86+
:uniqueItems:
87+
``false``
88+
89+
.. _timestep_type_property:
90+
91+
``timestep_type``
92+
-----------------
93+
94+
:description:
95+
Depletion step type
96+
97+
:type:
98+
``string``
99+
100+
:enum:
101+
``cumulative``, ``stepwise``
102+
103+
:default:
104+
``stepwise``
105+
106+
.. _timestep_unites_property:
107+
108+
``timestep_units``
109+
------------------
110+
111+
:description:
112+
Timestep unit
113+
114+
:type:
115+
``string``
116+
117+
:enum:
118+
``s``, ``sec``, ``min``, ``minute``, ``h``, ``hr``, ``hour``, ``d``, ``day``, ``a``, ``year``, ``yr``, ``MWd/kg``, ``mwd/kg``, ``MWD/KG``, ``MWD/kg``, ``MWd/KG``
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
.. _saltproc_input:
2+
3+
SaltProc Input File
4+
===================
5+
6+
The main SaltProc input file is a JSON file validated against a JSON schema.
7+
In this section, we will describe the structure of this schema. The top level
8+
datatype of the schema is a JSON ``object``.
9+
10+
Required properties are as follows: ``proc_input_file``, ``dot_input_file``, ``output_path``, ``depcode``, ``simulation``, ``reactor``.
11+
12+
.. _proc_input_file_property:
13+
14+
``proc_input_file``
15+
-------------------
16+
17+
:description:
18+
File containing processing system objects
19+
20+
:type:
21+
``string``
22+
23+
:pattern:
24+
``^(.*)\\.json$``
25+
26+
27+
.. _dot_input_file_property:
28+
29+
``dot_input_file``
30+
------------------
31+
32+
:description:
33+
Graph file containing processing system structure
34+
35+
:type:
36+
``string``
37+
38+
:pattern:
39+
``^(.*)\\.dot$``
40+
41+
42+
.. _output_path_property:
43+
44+
``output_path``
45+
---------------
46+
47+
:description:
48+
Path output data storing folder
49+
50+
:type:
51+
``string``
52+
53+
:pattern:
54+
``^(.\\/)*(.*)$``
55+
56+
:default:
57+
``saltproc_runtime``
58+
59+
60+
.. _n_depletion_steps_property:
61+
62+
``n_depletion_steps``
63+
---------------------
64+
65+
:description:
66+
Number of steps for constant power and depletion interval case
67+
68+
:type:
69+
``number``
70+
71+
72+
.. _depcode_property:
73+
74+
``depcode``
75+
-----------
76+
77+
:description:
78+
Depcode class input parameters
79+
80+
:type:
81+
``object``
82+
83+
:default:
84+
``{}``
85+
86+
:properties:
87+
:ref:`depcode_input`
88+
89+
.. _simulation_property:
90+
91+
``simulation``
92+
--------------
93+
94+
:description:
95+
Simulation class input parameters
96+
97+
:type:
98+
``object``
99+
100+
:default:
101+
``{}``
102+
103+
:properties:
104+
:ref:`simulation_input`
105+
106+
.. _reactor_property:
107+
108+
``reactor``
109+
-----------
110+
111+
:description:
112+
Reactor class input parameters
113+
114+
:type:
115+
``object``. See :ref:`reactor_input` for object properties.
116+
117+
:default:
118+
``{}``
119+
120+
:properties:
121+
:ref:`reactor_input`
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
.. _simulation_input:
2+
3+
``simulation`` Properties
4+
=========================
5+
6+
Required properties: ``sim_name``, ``db_name``
7+
8+
.. _sim_name_property:
9+
10+
``sim_name``
11+
------------
12+
13+
:description:
14+
Name of simulation
15+
16+
:type:
17+
``string``
18+
19+
20+
.. _db_name_property:
21+
22+
``db_name``
23+
-----------
24+
25+
:description:
26+
Output HDF5 database file name
27+
28+
:type:
29+
``string``
30+
31+
:default:
32+
``saltproc_results.h5``
33+
34+
:pattern:
35+
``^(.*)\\.h5$``
36+
37+
38+
.. _restart_flag_property:
39+
40+
``restart_flag``
41+
----------------
42+
43+
:description:
44+
Restart simulation from the step when it stopped?
45+
46+
:type:
47+
``boolean``
48+
49+
:default:
50+
``false``
51+
52+
53+
.. _adjust_geo_property:
54+
55+
``adjust_geo``
56+
--------------
57+
58+
:description:
59+
switch to another geometry when keff drops below 1?
60+
61+
:type:
62+
``boolean``
63+
64+
:default:
65+
``false``

0 commit comments

Comments
 (0)