armi.reactor.systemLayoutInput module¶
The legacy SystemLayoutInput class and supporting code.
This module contains the soon-to-be defunct SystemLayoutInput
class, which used to
be used for specifying assembly locations in the core. This has been replaced by the
systems:
and grids:
sections of Blueprints
, but still exists to facilitate
input migrations.
See also
reactor.blueprints.reactorBlueprint
, reactor.blueprints.gridBlueprint
-
class
armi.reactor.systemLayoutInput.
SystemLayoutInput
[source]¶ Bases:
object
Geometry file. Contains 2-D mapping of geometry.
This approach to specifying core layout has been deprecated in favor of the
armi.reactor.blueprints.gridBlueprints.GridBlueprints
andsystems:
section ofarmi.reactor.blueprints.Blueprints
-
_GEOM_FILE_EXTENSION
= '.xml'¶
-
ROOT_TAG
= 'reactor'¶
-
readGeomFromFile
(fName)[source]¶ Read the 2-d geometry input file.
See also
fromReactor()
Build SystemLayoutInput from a Reactor object.
-
readGeomFromStream
(stream)[source]¶ Read geometry info from a stream.
This populates the object with info from any source.
Notes
There are two formats of geometry: yaml and xml. This tries xml first (legacy), and if it fails it tries yaml.
-
toGridBlueprints
(name: str = 'core')[source]¶ Migrate old-style SystemLayoutInput to new GridBlueprint.
Returns a list of GridBlueprint objects. There will at least be one entry, containing the main core layout. If equilibrium fuel paths are specified, it will occupy the second element.
-
_readYaml
(stream)[source]¶ Read geometry from yaml.
Notes
This is intended to replace the XML format as we converge on consistent inputs.
-
modifyEqPaths
(modifiedPaths)[source]¶ Modifies the geometry object by updating the equilibrium path indices and equilibrium path cycles.
- Parameters
modifiedPaths (dict, required) – This is a dictionary that contains the indices that are mapped to the eqPathIndex and eqPathCycle. modifiedPath[indices] = (eqPathIndex, eqPathCycle)
-
_getModifiedFileName
(originalFileName, suffix)[source]¶ Generates the modified geometry file name based on the requested suffix
-
_writeYaml
(stream, sysName='core')[source]¶ Write the system layout in YAML format.
These can eventually either define a type/specifier mapping and then point to a grid definition full of specifiers to be populated, or they can just be a list of “singles” which define indices:specifier.
Note
So far, only singles are implemented (analogous to old XML format)
-
_writeAsciiMap
()[source]¶ Generate an ASCII map representation.
Warning
This only works for HexGrid.
-
growToFullCore
()[source]¶ Convert geometry input to full core.
Notes
This only works for Hex 1/3rd core geometry inputs.
-
classmethod
fromReactor
(reactor)[source]¶ Build SystemLayoutInput object based on the current state of a Reactor.
See also
readGeomFromFile()
Builds a SystemLayoutInput from an XML file.
-