Skip to content

Commit

Permalink
Moving C5G7 into its own test dir (#1941)
Browse files Browse the repository at this point in the history
john-science authored Oct 9, 2024
1 parent 3d0b871 commit c6f46e5
Showing 6 changed files with 18 additions and 15 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion armi/tests/test_lwrInputs.py
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ def test_loadC5G7(self):

# load the reactor
_o, r = test_reactors.loadTestReactor(
os.path.join(TEST_ROOT, "tutorials"),
os.path.join(TEST_ROOT, "c5g7"),
inputFileName=TEST_INPUT_TITLE,
)

2 changes: 1 addition & 1 deletion armi/utils/tests/test_plotting.py
Original file line number Diff line number Diff line change
@@ -116,7 +116,7 @@ def test_plotCartesianBlock(self):

with TemporaryDirectoryChanger():
cs = settings.Settings(
os.path.join(TEST_ROOT, "tutorials", "c5g7-settings.yaml")
os.path.join(TEST_ROOT, "c5g7", "c5g7-settings.yaml")
)

blueprint = blueprints.loadFromCs(cs)
26 changes: 13 additions & 13 deletions doc/tutorials/walkthrough_lwr_inputs.rst
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ to specify their composition. The composition details below are documented in Ta
`NEA/NSC/DOC(96)2 <https://www.oecd-nea.org/upload/docs/application/pdf/2020-01/nsc-doc96-02-rev2.pdf>`_.


.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: start-custom-isotopics
:end-before: end-custom-isotopics
@@ -64,7 +64,7 @@ position in the grid that has any of the specifiers in this list.
You will see the `<<: *guide_tube` notation below. This means use the
specifications of guide_tube, but make the modifications that apear below.

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-custom-isotopics
:end-before: end-block-uo2
@@ -79,7 +79,7 @@ The next assembly is very similar. We define three separate fuel pins,
each with different ``latticeIDs``, and then use YAML anchors to just
copy the moderator, guide tube, and fission chamber from the previous assembly.

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-block-uo2
:end-before: end-block-mox
@@ -88,7 +88,7 @@ The moderator block
-------------------
The moderator block for the radial and axial reflectors is very simple:

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-block-mox
:end-before: end-block-mod
@@ -98,7 +98,7 @@ The 3-D Assembly definitions
Now that the pins are defined, we stack them into assemblies, very similar
to what we did in the SFR tutorial. There are three distinct assembly definitions.

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-block-mod
:end-before: end-assemblies
@@ -111,7 +111,7 @@ they would be here alongside the core. We also anchor the core at the global
coordinates (0,0,0). If we wanted the core at some other elevation, we could
adjust that here.

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-assemblies
:end-before: end-systems
@@ -124,7 +124,7 @@ from an XML file. In this tutorial, we define the grid directly with an
textual ``lattice map`` input section. The core map is particularly simple; it
only has 9 assemblies.

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-systems
:end-before: end-grid-core
@@ -134,14 +134,14 @@ Recall that on the ``uo2`` block above we said that we want to apply the grid
with the name ``UO2 grid``, and wanted to fill any ``U`` position with
the ``fuel`` component defined up there. Here's where we define that grid.

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-grid-core
:end-before: end-grid-UO2

Similarly, we define the ``MOX grid`` as follows:

.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-grid-UO2
:end-before: end-grid-MOX
@@ -151,7 +151,7 @@ the assembly.

Nuclide Flags
-------------
.. literalinclude:: ../../armi/tests/tutorials/c5g7-blueprints.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-blueprints.yaml
:language: yaml
:start-after: end-grid-MOX
:end-before: end-nucflags
@@ -167,7 +167,7 @@ Really, the only thing the settings file does in this case is point to the bluep
file. As we turn this case into an actual run, we may add various cross section
and neutrons options to evaluate the benchmark.

.. literalinclude:: ../../armi/tests/tutorials/c5g7-settings.yaml
.. literalinclude:: ../../armi/tests/c5g7/c5g7-settings.yaml
:language: yaml

Defining fuel management
@@ -228,5 +228,5 @@ This should show a simple representation of the block.

Here are the full files used in this example:

* :download:`Blueprints <../../armi/tests/tutorials/c5g7-blueprints.yaml>`
* :download:`Settings <../../armi/tests/tutorials/c5g7-settings.yaml>`
* :download:`Blueprints <../../armi/tests/c5g7/c5g7-blueprints.yaml>`
* :download:`Settings <../../armi/tests/c5g7/c5g7-settings.yaml>`
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -314,6 +314,9 @@ armi = [
"tests/1DslabXSByCompTest.yaml",
"tests/armiRun-SHUFFLES.txt",
"tests/armiRun.yaml",
"tests/c5g7",
"tests/c5g7/c5g7-blueprints.yaml",
"tests/c5g7/c5g7-settings.yaml",
"tests/COMPXS.ascii",
"tests/detailedAxialExpansion/armiRun.yaml",
"tests/detailedAxialExpansion/refSmallCoreGrid.yaml",

0 comments on commit c6f46e5

Please sign in to comment.