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(name=None, gridName=None, origin=None)[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.

name

name of the attribute within the Python class

Type

str

key

name of the attribute within the YAML representation

Type

str

type

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.

Type

type or ANY

default

default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

Type

value or NODEFAULT

storage_name

'_yamlized_' + name, stored as a separate attribute for speed.

Type

str

name

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

name

name of the attribute within the Python class

Type

str

key

name of the attribute within the YAML representation

Type

str

type

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.

Type

type or ANY

default

default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

Type

value or NODEFAULT

storage_name

'_yamlized_' + name, stored as a separate attribute for speed.

Type

str

gridName

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

name

name of the attribute within the Python class

Type

str

key

name of the attribute within the YAML representation

Type

str

type

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.

Type

type or ANY

default

default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

Type

value or NODEFAULT

storage_name

'_yamlized_' + name, stored as a separate attribute for speed.

Type

str

origin

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

name

name of the attribute within the Python class

Type

str

key

name of the attribute within the YAML representation

Type

str

type

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.

Type

type or ANY

default

default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

Type

value or NODEFAULT

storage_name

'_yamlized_' + name, stored as a separate attribute for speed.

Type

str

static _resolveSystemType(typ: str)[source]
construct(cs, bp, reactor, geom=None)[source]

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

_loadAssemblies(cs, container, gridDesign, gridContents, bp)[source]
_modifyGeometry(container, gridDesign)[source]

Perform post-load geometry conversions like full core, edge assems.

__round_trip_data
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 SystemBlueprint

key_attr

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

name

name of the attribute within the Python class

Type

str

key

name of the attribute within the YAML representation

Type

str

type

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.

Type

type or ANY

default

default value if not supplied in YAML. If default=NODEFAULT, then the attribute must be supplied.

Type

value or NODEFAULT

storage_name

'_yamlized_' + name, stored as a separate attribute for speed.

Type

str

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.