armi.reactor.blueprints.reactorBlueprint module

Definitions of top-level reactor arrangements like the Core (default), SFP, etc.

See documentation of blueprints in The Blueprints Input File for more context. See example in armi.reactor.blueprints.tests.test_reactorBlueprints.

This was built to replace the old system that loaded the core geometry from the cs[‘geometry’] setting. Until the geom file-based input is completely removed, this system will attempt to migrate the core layout from geom files. When geom files are used, explicitly specifying a core system will result in an error.

System Blueprints are a big step in the right direction to generalize user input, but was still mostly adapted from the old Core layout input. As such, they still only really support Core-like systems. Future work should generalize the concept of “system” to more varied scenarios.

See also

armi.reactor.blueprints.gridBlueprints

Method for storing system assembly layouts.

armi.reactor.systemLayoutInput.SystemLayoutInput

Deprecated method for reading the individual

face-map

class armi.reactor.blueprints.reactorBlueprint.SystemBlueprint(*args, **kwargs)[source]

Bases: yamlize.objects.Object

The reactor-level structure input blueprint.

Note

We use string keys to link grids to objects that use them. This differs from how blocks/assembies are specified, which use YAML anchors. YAML anchors have proven to be problematic and difficult to work with

A Reactor Level Structure like a core or SFP.

Notes

yamlize does not call an __init__ method, instead it uses __new__ and setattr this is only needed for when you want to make this object from a non-YAML source.

typ

Represents an attribute of a Python class, and a key/value pair in YAML.

Variables
  • name (str) – name of the attribute within the Python class

  • key (str) – name of the attribute within the YAML representation

  • type (type or ANY) – type of the attribute within the Python class. When ANY, the type is a pass-through and whatever YAML determines it should be will be applied.

  • default (value or NODEFAULT) – default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

  • storage_name (str) – '_yamlized_' + name, stored as a separate attribute for speed.

name

Represents an attribute of a Python class, and a key/value pair in YAML.

Variables
  • name (str) – name of the attribute within the Python class

  • key (str) – name of the attribute within the YAML representation

  • type (type or ANY) – type of the attribute within the Python class. When ANY, the type is a pass-through and whatever YAML determines it should be will be applied.

  • default (value or NODEFAULT) – default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

  • storage_name (str) – '_yamlized_' + name, stored as a separate attribute for speed.

gridName

Represents an attribute of a Python class, and a key/value pair in YAML.

Variables
  • name (str) – name of the attribute within the Python class

  • key (str) – name of the attribute within the YAML representation

  • type (type or ANY) – type of the attribute within the Python class. When ANY, the type is a pass-through and whatever YAML determines it should be will be applied.

  • default (value or NODEFAULT) – default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

  • storage_name (str) – '_yamlized_' + name, stored as a separate attribute for speed.

origin

Represents an attribute of a Python class, and a key/value pair in YAML.

Variables
  • name (str) – name of the attribute within the Python class

  • key (str) – name of the attribute within the YAML representation

  • type (type or ANY) – type of the attribute within the Python class. When ANY, the type is a pass-through and whatever YAML determines it should be will be applied.

  • default (value or NODEFAULT) – default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

  • storage_name (str) – '_yamlized_' + name, stored as a separate attribute for speed.

construct(cs, bp, reactor, geom=None)[source]

Build a core/IVS/EVST/whatever and fill it with children.

attributes = <yamlize.attribute_collection.AttributeCollection object>
class armi.reactor.blueprints.reactorBlueprint.Systems(*args, **kwargs)[source]

Bases: yamlize.maps.KeyedList

Initialize a Map.

Parameters
  • *args – sequence of key/value pairs.

  • **kwargs – kwargs for input to OrderedDict.

attributes = <yamlize.attribute_collection.KeyedListAttributeCollection object>
item_type

alias of armi.reactor.blueprints.reactorBlueprint.SystemBlueprint

key_attr

Represents an attribute of a Python class, and a key/value pair in YAML.

Variables
  • name (str) – name of the attribute within the Python class

  • key (str) – name of the attribute within the YAML representation

  • type (type or ANY) – type of the attribute within the Python class. When ANY, the type is a pass-through and whatever YAML determines it should be will be applied.

  • default (value or NODEFAULT) – default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

  • storage_name (str) – '_yamlized_' + name, stored as a separate attribute for speed.

armi.reactor.blueprints.reactorBlueprint.summarizeMaterialData(container)[source]

Create a summary of the material objects and source data for a reactor container.

Parameters

container (Core object) – Any Core object with Blocks and Components defined.