Skip to content

Commit

Permalink
changed all - to _ in cyclus input file examples and within the body …
Browse files Browse the repository at this point in the history
…of the pages of tutorial
  • Loading branch information
dean-krueger committed Dec 11, 2024
1 parent 32b9979 commit e85e3ba
Show file tree
Hide file tree
Showing 9 changed files with 266 additions and 265 deletions.
57 changes: 29 additions & 28 deletions source/user/tutorial/add_commod_recipe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ and provides two bids accordingly.
Activity: Create fuel commodities (optional)
+++++++++++++++++++++++++++++++++++++++++++++++++++++

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

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

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

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


Activity: Building commodities
Expand All @@ -105,22 +105,22 @@ template.
+-------------+-------------+---------------------+
| Commodity | Name | Solution Priority |
+=============+=============+=====================+
| com1 | u-ore | 1.0 |
| com1 | u_ore | 1.0 |
+-------------+-------------+---------------------+
| com2 | fresh-uox | 1.0 |
| com2 | fresh_uox | 1.0 |
+-------------+-------------+---------------------+
| com3 | spent-uox | 1.0 |
| com3 | spent_uox | 1.0 |
+-------------+-------------+---------------------+
| com4 | tails | 1.0 |
+-------------+-------------+---------------------+

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

.. code-block:: XML
<commodity>
<name>u-ore</name>
<name>u_ore</name>
</commodity>
2. In the ``<solution_priority>`` section replace ``val1`` with ``1.0``.
Expand All @@ -129,7 +129,7 @@ inside a ``commodity`` block.
<commodity>
<name>u-ore</name>
<name>u_ore</name>
<solution_priority>1.0</solution_priority>
</commodity>
Expand All @@ -140,19 +140,19 @@ inside a ``commodity`` block.
.. code-block:: XML
<commodity>
<name>u-ore</name>
<name>u_ore</name>
<solution_priority>1.0</solution_priority>
</commodity>
<commodity>
<name>fresh-uox</name>
<name>fresh_uox</name>
<solution_priority>1.0</solution_priority>
</commodity>
<commodity>
<name>tails</name>
<solution_priority>1.0</solution_priority>
</commodity>
<commodity>
<name>spent-uox</name>
<name>spent_uox</name>
<solution_priority>1.0</solution_priority>
</commodity>
Expand All @@ -167,14 +167,14 @@ Concept: Recipes
Most commodities are materials, which have a quantity and an
isotopic composition.
Recipes are the isotopic composition of a certain material. For
example, u-ore has an isotropic composition of 0.711% :math:`^{235}`\ U and
example, u_ore has an isotropic composition of 0.711% :math:`^{235}`\ U and
99.284% :math:`^{238}`\ U. The recipe section of a |Cyclus| input file is
typically located at the end of the input and is of the form:

.. code-block:: XML
<recipe>
<name>nat-u</name>
<name>nat_u</name>
<basis>mass</basis>
<nuclide>
<id>92235</id>
Expand Down Expand Up @@ -252,7 +252,7 @@ block to signify that this is a recipe and tab in and place the fill
.. code-block:: XML
<recipe>
<name>nat-u</name>
<name>nat_u</name>
</recipe>
2. To signify that the composition of this recipe is in terms of Mass, fill the
Expand All @@ -261,7 +261,7 @@ block to signify that this is a recipe and tab in and place the fill
.. code-block:: XML
<recipe>
<name>nat-u</name>
<name>nat_u</name>
<basis>mass</basis>
</recipe>
Expand All @@ -271,7 +271,7 @@ block to signify that this is a recipe and tab in and place the fill
.. code-block:: XML
<recipe>
<name>nat-u</name>
<name>nat_u</name>
<basis>mass</basis>
<nuclide>
<id>id1</id>
Expand All @@ -285,7 +285,7 @@ fill the composition tag with its mass composition, ``0.00711``.
.. code-block:: XML
<recipe>
<name>nat-u</name>
<name>nat_u</name>
<basis>mass</basis>
<nuclide>
<id>92235</id>
Expand All @@ -298,7 +298,7 @@ fill the composition tag with its mass composition, ``0.00711``.
.. code-block:: XML
<recipe>
<name>nat-u</name>
<name>nat_u</name>
<basis>mass</basis>
<nuclide>
<id>92235</id>
Expand All @@ -316,7 +316,7 @@ The recipe section of this tutorial is placed below.
.. code-block:: XML
<recipe>
<name>nat-u</name>
<name>nat_u</name>
<basis>mass</basis>
<nuclide>
<id>92235</id>
Expand All @@ -329,7 +329,7 @@ The recipe section of this tutorial is placed below.
</recipe>
<recipe>
<name>fresh-uox</name>
<name>fresh_uox</name>
<basis>mass</basis>
<nuclide>
<id>92235</id>
Expand All @@ -342,7 +342,7 @@ The recipe section of this tutorial is placed below.
</recipe>
<recipe>
<name>spent-uox</name>
<name>spent_uox</name>
<basis>mass</basis>
<nuclide>
<id>92235</id>
Expand All @@ -365,13 +365,14 @@ The recipe section of this tutorial is placed below.
Once complete, append this facility under the commodity section of your input file [#f1]_.


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

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

.. rubric:: Footnotes
.. [#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.
12 changes: 6 additions & 6 deletions source/user/tutorial/add_deploy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ template.
+-------------+-------------+---------------------+
| FuelFab | 1 | 1 |
+-------------+-------------+---------------------+
| 1178MWe BRAIDWOOD-1 | 2 | 1 |
| 1178MWe BRAIDWOOD_1 | 2 | 1 |
+-------------+-------------+---------------------+
| 1000MWe Lightwater-1 | 3 | 1 |
| 1000MWe LIGHTWATER_1 | 3 | 1 |
+-------------+-------------+---------------------+

Using the prototype facilities already created, the new institution should
Expand All @@ -100,8 +100,8 @@ look like the following:
<prototypes>
<val>UraniumMine</val>
<val>FuelFab</val>
<val>1178MWe BRAIDWOOD-1</val>
<val>1000We Lightwater-1</val>
<val>1178MWe BRAIDWOOD_1</val>
<val>1000We LIGHTWATER_1</val>
</prototypes>
<build_times>
Expand All @@ -122,8 +122,8 @@ look like the following:
</institution>
The above institution will create 1 ``UraniumMine`` and 1 ``FuelFab`` facility on
time step 1. The next time step will deploy the ``1178MWe BRAIDWOOD-1`` reactor
prototype. And finally, at time step 3, the ``1000We Lightwater-1`` will be deployed.
time step 1. The next time step will deploy the ``1178MWe BRAIDWOOD_1`` reactor
prototype. And finally, at time step 3, the ``1000We LIGHTWATER_1`` will be deployed.
This institution block goes inside the Region block, with the previously created
insitutions blocks.

Expand Down
16 changes: 8 additions & 8 deletions source/user/tutorial/add_fab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ The following configuration will be for a
MOX fuel fabrication plant that mixes separated
plutonium and natural uranium into MOX fuel:

* Filler stream commodity: ``u-ore``
* Filler stream recipe: ``nat-u``
* Filler stream commodity: ``u_ore``
* Filler stream recipe: ``nat_u``
* Filler stream inventory capacity: 1000 tonnes
* Fissile stream commodity: Separated-Fissile
* Fissile stream commodity: Separated_Fissile
* Fissile stream inventory capacity: 5 tonnes
* Output Commodity: Fresh-MOX-Fuel
* Output Commodity: Fresh_MOX_Fuel
* Maximum Throughput: 2 tonnes/timestep
* Specturm type: "thermal"

Expand All @@ -56,13 +56,13 @@ Filling in the template, the input block looks like:
<name>FuelFab</name>
<config>
<FuelFab>
<fill_commods> <val>U-ore</val> </fill_commods>
<fill_recipe>Nat-U</fill_recipe>
<fill_commods> <val>u_ore</val> </fill_commods>
<fill_recipe>nat_u</fill_recipe>
<fill_size>1000000</fill_size>
<fiss_commods><val>Separated-Fissile</val></fiss_commods>
<fiss_commods><val>Separated_Fissile</val></fiss_commods>
<fiss_size>5000</fiss_size>
<spectrum>thermal</spectrum>
<outcommod>Fresh-MOX-Fuel</outcommod>
<outcommod>Fresh_MOX_Fuel</outcommod>
<throughput>2000</throughput>
</FuelFab>
</config>
Expand Down
Loading

0 comments on commit e85e3ba

Please sign in to comment.