Plot a reactor facemapΒΆ

Load a test reactor from the test suite and plot a dummy power distribution from it. You can plot any block parameter.

run reactorFacemap
import logging

from armi.reactor.tests import test_reactors
from armi.utils import plotting
from armi import configure, runLog

# init ARMI logging tools
logging.setLoggerClass(runLog.RunLogger)

# configure ARMI
configure(permissive=True)

operator, reactor = test_reactors.loadTestReactor()
reactor.core.growToFullCore(None)
# set dummy power
for b in reactor.core.getBlocks():
    x, y, z = b.spatialLocator.getGlobalCoordinates()
    b.p.pdens = x ** 2 + y ** 2 + z ** 2

plotting.plotFaceMap(reactor.core, param="pdens", labelFmt="{0:.1e}")

Total running time of the script: ( 0 minutes 7.805 seconds)

Gallery generated by Sphinx-Gallery