You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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``
118
118
inside a ``commodity`` block.
119
119
120
120
.. code-block:: XML
121
121
122
122
<commodity>
123
-
<name>u-ore</name>
123
+
<name>u_ore</name>
124
124
</commodity>
125
125
126
126
2. In the ``<solution_priority>`` section replace ``val1`` with ``1.0``.
@@ -129,7 +129,7 @@ inside a ``commodity`` block.
129
129
130
130
131
131
<commodity>
132
-
<name>u-ore</name>
132
+
<name>u_ore</name>
133
133
<solution_priority>1.0</solution_priority>
134
134
</commodity>
135
135
@@ -140,19 +140,19 @@ inside a ``commodity`` block.
140
140
.. code-block:: XML
141
141
142
142
<commodity>
143
-
<name>u-ore</name>
143
+
<name>u_ore</name>
144
144
<solution_priority>1.0</solution_priority>
145
145
</commodity>
146
146
<commodity>
147
-
<name>fresh-uox</name>
147
+
<name>fresh_uox</name>
148
148
<solution_priority>1.0</solution_priority>
149
149
</commodity>
150
150
<commodity>
151
151
<name>tails</name>
152
152
<solution_priority>1.0</solution_priority>
153
153
</commodity>
154
154
<commodity>
155
-
<name>spent-uox</name>
155
+
<name>spent_uox</name>
156
156
<solution_priority>1.0</solution_priority>
157
157
</commodity>
158
158
@@ -167,14 +167,14 @@ Concept: Recipes
167
167
Most commodities are materials, which have a quantity and an
168
168
isotopic composition.
169
169
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
171
171
99.284% :math:`^{238}`\ U. The recipe section of a |Cyclus| input file is
172
172
typically located at the end of the input and is of the form:
173
173
174
174
.. code-block:: XML
175
175
176
176
<recipe>
177
-
<name>nat-u</name>
177
+
<name>nat_u</name>
178
178
<basis>mass</basis>
179
179
<nuclide>
180
180
<id>92235</id>
@@ -252,7 +252,7 @@ block to signify that this is a recipe and tab in and place the fill
252
252
.. code-block:: XML
253
253
254
254
<recipe>
255
-
<name>nat-u</name>
255
+
<name>nat_u</name>
256
256
</recipe>
257
257
258
258
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
261
261
.. code-block:: XML
262
262
263
263
<recipe>
264
-
<name>nat-u</name>
264
+
<name>nat_u</name>
265
265
<basis>mass</basis>
266
266
</recipe>
267
267
@@ -271,7 +271,7 @@ block to signify that this is a recipe and tab in and place the fill
271
271
.. code-block:: XML
272
272
273
273
<recipe>
274
-
<name>nat-u</name>
274
+
<name>nat_u</name>
275
275
<basis>mass</basis>
276
276
<nuclide>
277
277
<id>id1</id>
@@ -285,7 +285,7 @@ fill the composition tag with its mass composition, ``0.00711``.
285
285
.. code-block:: XML
286
286
287
287
<recipe>
288
-
<name>nat-u</name>
288
+
<name>nat_u</name>
289
289
<basis>mass</basis>
290
290
<nuclide>
291
291
<id>92235</id>
@@ -298,7 +298,7 @@ fill the composition tag with its mass composition, ``0.00711``.
298
298
.. code-block:: XML
299
299
300
300
<recipe>
301
-
<name>nat-u</name>
301
+
<name>nat_u</name>
302
302
<basis>mass</basis>
303
303
<nuclide>
304
304
<id>92235</id>
@@ -316,7 +316,7 @@ The recipe section of this tutorial is placed below.
316
316
.. code-block:: XML
317
317
318
318
<recipe>
319
-
<name>nat-u</name>
319
+
<name>nat_u</name>
320
320
<basis>mass</basis>
321
321
<nuclide>
322
322
<id>92235</id>
@@ -329,7 +329,7 @@ The recipe section of this tutorial is placed below.
329
329
</recipe>
330
330
331
331
<recipe>
332
-
<name>fresh-uox</name>
332
+
<name>fresh_uox</name>
333
333
<basis>mass</basis>
334
334
<nuclide>
335
335
<id>92235</id>
@@ -342,7 +342,7 @@ The recipe section of this tutorial is placed below.
342
342
</recipe>
343
343
344
344
<recipe>
345
-
<name>spent-uox</name>
345
+
<name>spent_uox</name>
346
346
<basis>mass</basis>
347
347
<nuclide>
348
348
<id>92235</id>
@@ -365,13 +365,14 @@ The recipe section of this tutorial is placed below.
365
365
Once complete, append this facility under the commodity section of your input file [#f1]_.
366
366
367
367
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):
369
370
370
371
.. image:: fuel_com.png
371
372
: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.
375
376
376
377
.. rubric:: Footnotes
377
378
.. [#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.
0 commit comments