Skip to content

Commit acd35a2

Browse files
authored
Merge pull request #395 from dean-krueger/doc-updates
Changed "-" to "_" in Input File Examples in Tutorial
2 parents 0b6dea7 + 09e9493 commit acd35a2

File tree

9 files changed

+266
-265
lines changed

9 files changed

+266
-265
lines changed

source/user/tutorial/add_commod_recipe.rst

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ and provides two bids accordingly.
4848
Activity: Create fuel commodities (optional)
4949
+++++++++++++++++++++++++++++++++++++++++++++++++++++
5050

51-
Let's build ``u-ore``, ``fresh-uox``, ``spent-uox``, and ``tails``,
51+
Let's build ``u_ore``, ``fresh_uox``, ``spent_uox``, and ``tails``,
5252
the four commodities available for trade in our simulation. Note that
5353
this part is **optional**, and is only needed if the user wants
5454
to specify the solution priority of each commodity.
5555

56-
* ``u-ore`` : natural uranium that is mined
56+
* ``u_ore`` : natural uranium that is mined
5757
* ``tails`` : waste from the enrichment process
58-
* ``fresh-uox``: fresh 4.0% enriched Uranium Oxide fuel that enters the reactor
59-
* ``spent-uox``: spent uranium oxide fuel that leaves the reactor after depletion
58+
* ``fresh_uox``: fresh 4.0% enriched Uranium Oxide fuel that enters the reactor
59+
* ``spent_uox``: spent uranium oxide fuel that leaves the reactor after depletion
6060

6161
When |Cyclus| needs
6262
to know the isotopic composition of a material, it looks at the recipe for that
@@ -93,7 +93,7 @@ where:
9393
* solution priority: number defining the relative priority for resolution in the dynamic
9494
resource exchange.
9595

96-
We will model four commodities: u-ore, fresh-uox, spent-uox, and tails.
96+
We will model four commodities: u_ore, fresh_uox, spent_uox, and tails.
9797

9898

9999
Activity: Building commodities
@@ -105,22 +105,22 @@ template.
105105
+-------------+-------------+---------------------+
106106
| Commodity | Name | Solution Priority |
107107
+=============+=============+=====================+
108-
| com1 | u-ore | 1.0 |
108+
| com1 | u_ore | 1.0 |
109109
+-------------+-------------+---------------------+
110-
| com2 | fresh-uox | 1.0 |
110+
| com2 | fresh_uox | 1.0 |
111111
+-------------+-------------+---------------------+
112-
| com3 | spent-uox | 1.0 |
112+
| com3 | spent_uox | 1.0 |
113113
+-------------+-------------+---------------------+
114114
| com4 | tails | 1.0 |
115115
+-------------+-------------+---------------------+
116116

117-
1. Let's start with ``u-ore``. In the ``<name>`` line replace ``com1`` with ``u-ore``
117+
1. Let's start with ``u_ore``. In the ``<name>`` line replace ``com1`` with ``u_ore``
118118
inside a ``commodity`` block.
119119

120120
.. code-block:: XML
121121
122122
<commodity>
123-
<name>u-ore</name>
123+
<name>u_ore</name>
124124
</commodity>
125125
126126
2. In the ``<solution_priority>`` section replace ``val1`` with ``1.0``.
@@ -129,7 +129,7 @@ inside a ``commodity`` block.
129129
130130
131131
<commodity>
132-
<name>u-ore</name>
132+
<name>u_ore</name>
133133
<solution_priority>1.0</solution_priority>
134134
</commodity>
135135
@@ -140,19 +140,19 @@ inside a ``commodity`` block.
140140
.. code-block:: XML
141141
142142
<commodity>
143-
<name>u-ore</name>
143+
<name>u_ore</name>
144144
<solution_priority>1.0</solution_priority>
145145
</commodity>
146146
<commodity>
147-
<name>fresh-uox</name>
147+
<name>fresh_uox</name>
148148
<solution_priority>1.0</solution_priority>
149149
</commodity>
150150
<commodity>
151151
<name>tails</name>
152152
<solution_priority>1.0</solution_priority>
153153
</commodity>
154154
<commodity>
155-
<name>spent-uox</name>
155+
<name>spent_uox</name>
156156
<solution_priority>1.0</solution_priority>
157157
</commodity>
158158
@@ -167,14 +167,14 @@ Concept: Recipes
167167
Most commodities are materials, which have a quantity and an
168168
isotopic composition.
169169
Recipes are the isotopic composition of a certain material. For
170-
example, u-ore has an isotropic composition of 0.711% :math:`^{235}`\ U and
170+
example, u_ore has an isotropic composition of 0.711% :math:`^{235}`\ U and
171171
99.284% :math:`^{238}`\ U. The recipe section of a |Cyclus| input file is
172172
typically located at the end of the input and is of the form:
173173

174174
.. code-block:: XML
175175
176176
<recipe>
177-
<name>nat-u</name>
177+
<name>nat_u</name>
178178
<basis>mass</basis>
179179
<nuclide>
180180
<id>92235</id>
@@ -252,7 +252,7 @@ block to signify that this is a recipe and tab in and place the fill
252252
.. code-block:: XML
253253
254254
<recipe>
255-
<name>nat-u</name>
255+
<name>nat_u</name>
256256
</recipe>
257257
258258
2. To signify that the composition of this recipe is in terms of Mass, fill the
@@ -261,7 +261,7 @@ block to signify that this is a recipe and tab in and place the fill
261261
.. code-block:: XML
262262
263263
<recipe>
264-
<name>nat-u</name>
264+
<name>nat_u</name>
265265
<basis>mass</basis>
266266
</recipe>
267267
@@ -271,7 +271,7 @@ block to signify that this is a recipe and tab in and place the fill
271271
.. code-block:: XML
272272
273273
<recipe>
274-
<name>nat-u</name>
274+
<name>nat_u</name>
275275
<basis>mass</basis>
276276
<nuclide>
277277
<id>id1</id>
@@ -285,7 +285,7 @@ fill the composition tag with its mass composition, ``0.00711``.
285285
.. code-block:: XML
286286
287287
<recipe>
288-
<name>nat-u</name>
288+
<name>nat_u</name>
289289
<basis>mass</basis>
290290
<nuclide>
291291
<id>92235</id>
@@ -298,7 +298,7 @@ fill the composition tag with its mass composition, ``0.00711``.
298298
.. code-block:: XML
299299
300300
<recipe>
301-
<name>nat-u</name>
301+
<name>nat_u</name>
302302
<basis>mass</basis>
303303
<nuclide>
304304
<id>92235</id>
@@ -316,7 +316,7 @@ The recipe section of this tutorial is placed below.
316316
.. code-block:: XML
317317
318318
<recipe>
319-
<name>nat-u</name>
319+
<name>nat_u</name>
320320
<basis>mass</basis>
321321
<nuclide>
322322
<id>92235</id>
@@ -329,7 +329,7 @@ The recipe section of this tutorial is placed below.
329329
</recipe>
330330
331331
<recipe>
332-
<name>fresh-uox</name>
332+
<name>fresh_uox</name>
333333
<basis>mass</basis>
334334
<nuclide>
335335
<id>92235</id>
@@ -342,7 +342,7 @@ The recipe section of this tutorial is placed below.
342342
</recipe>
343343
344344
<recipe>
345-
<name>spent-uox</name>
345+
<name>spent_uox</name>
346346
<basis>mass</basis>
347347
<nuclide>
348348
<id>92235</id>
@@ -365,13 +365,14 @@ The recipe section of this tutorial is placed below.
365365
Once complete, append this facility under the commodity section of your input file [#f1]_.
366366

367367

368-
Let's take a look at the ``fresh-uox`` fuel recipe:
368+
Let's take a look at the ``fresh_uox`` fuel recipe (note that ``-`` is an illegal character for
369+
names in cyclus and ``_`` should be used instead):
369370

370371
.. image:: fuel_com.png
371372
:align: center
372-
:alt: Fuel recipe for fresh-uox
373-
The recipe name ``fresh-uox`` is specified, as are the isotope nuclide IDs and the
374-
corresponding mass fraction of each nuclide. The ``fresh-uox`` is composed of 4% U-235 and 96% U-238.
373+
:alt: Fuel recipe for fresh_uox
374+
The recipe name ``fresh_uox`` is specified, as are the isotope nuclide IDs and the
375+
corresponding mass fraction of each nuclide. The ``fresh_uox`` is composed of 4% U-235 and 96% U-238.
375376

376377
.. rubric:: Footnotes
377378
.. [#f1] The exact order of the sections in a |Cyclus| input file are of minor consequence. The ``control`` sequence must go first, but the other sequences can go in any order that makes sense to the user. The traditional organization of an input file is: control, archetypes, commodities, facilities, regions/institutions, and recipes.

source/user/tutorial/add_deploy.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ template.
8383
+-------------+-------------+---------------------+
8484
| FuelFab | 1 | 1 |
8585
+-------------+-------------+---------------------+
86-
| 1178MWe BRAIDWOOD-1 | 2 | 1 |
86+
| 1178MWe BRAIDWOOD_1 | 2 | 1 |
8787
+-------------+-------------+---------------------+
88-
| 1000MWe Lightwater-1 | 3 | 1 |
88+
| 1000MWe LIGHTWATER_1 | 3 | 1 |
8989
+-------------+-------------+---------------------+
9090

9191
Using the prototype facilities already created, the new institution should
@@ -100,8 +100,8 @@ look like the following:
100100
<prototypes>
101101
<val>UraniumMine</val>
102102
<val>FuelFab</val>
103-
<val>1178MWe BRAIDWOOD-1</val>
104-
<val>1000We Lightwater-1</val>
103+
<val>1178MWe BRAIDWOOD_1</val>
104+
<val>1000We LIGHTWATER_1</val>
105105
</prototypes>
106106
107107
<build_times>
@@ -122,8 +122,8 @@ look like the following:
122122
</institution>
123123
124124
The above institution will create 1 ``UraniumMine`` and 1 ``FuelFab`` facility on
125-
time step 1. The next time step will deploy the ``1178MWe BRAIDWOOD-1`` reactor
126-
prototype. And finally, at time step 3, the ``1000We Lightwater-1`` will be deployed.
125+
time step 1. The next time step will deploy the ``1178MWe BRAIDWOOD_1`` reactor
126+
prototype. And finally, at time step 3, the ``1000We LIGHTWATER_1`` will be deployed.
127127
This institution block goes inside the Region block, with the previously created
128128
insitutions blocks.
129129

source/user/tutorial/add_fab.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ The following configuration will be for a
3939
MOX fuel fabrication plant that mixes separated
4040
plutonium and natural uranium into MOX fuel:
4141

42-
* Filler stream commodity: ``u-ore``
43-
* Filler stream recipe: ``nat-u``
42+
* Filler stream commodity: ``u_ore``
43+
* Filler stream recipe: ``nat_u``
4444
* Filler stream inventory capacity: 1000 tonnes
45-
* Fissile stream commodity: Separated-Fissile
45+
* Fissile stream commodity: Separated_Fissile
4646
* Fissile stream inventory capacity: 5 tonnes
47-
* Output Commodity: Fresh-MOX-Fuel
47+
* Output Commodity: Fresh_MOX_Fuel
4848
* Maximum Throughput: 2 tonnes/timestep
4949
* Specturm type: "thermal"
5050

@@ -56,13 +56,13 @@ Filling in the template, the input block looks like:
5656
<name>FuelFab</name>
5757
<config>
5858
<FuelFab>
59-
<fill_commods> <val>U-ore</val> </fill_commods>
60-
<fill_recipe>Nat-U</fill_recipe>
59+
<fill_commods> <val>u_ore</val> </fill_commods>
60+
<fill_recipe>nat_u</fill_recipe>
6161
<fill_size>1000000</fill_size>
62-
<fiss_commods><val>Separated-Fissile</val></fiss_commods>
62+
<fiss_commods><val>Separated_Fissile</val></fiss_commods>
6363
<fiss_size>5000</fiss_size>
6464
<spectrum>thermal</spectrum>
65-
<outcommod>Fresh-MOX-Fuel</outcommod>
65+
<outcommod>Fresh_MOX_Fuel</outcommod>
6666
<throughput>2000</throughput>
6767
</FuelFab>
6868
</config>

0 commit comments

Comments
 (0)