Note
Click here to download the full example code
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.
Out:
=========== Case Information ===========
=========== Input File Information ===========
=========== Reactor Cycle Information ===========
=========== Constructing Reactor and Verifying Inputs ===========
=========== Adding Assemblies to <Core: core id:140232145422272> ===========
=========== Verifying Assembly Configurations ===========
=========== Summarizing Source of Material Data for <Core: core id:140232145422272> ===========
=========== Applying Geometry Modifications ===========
=========== Initializing Mesh, Assembly Zones, and Nuclide Categories ===========
=========== Adding Assemblies to <Core: sfp id:140232101678720> ===========
=========== Summarizing Source of Material Data for <Core: sfp id:140232101678720> ===========
=========== Applying Geometry Modifications ===========
=========== Initializing Mesh, Assembly Zones, and Nuclide Categories ===========
=========== Creating Interfaces ===========
=========== Interface Stack Summary ===========
=========== Triggering Init Event ===========
=========== 01 - main Init ===========
=========== 02 - fissionProducts Init ===========
=========== 03 - xsGroups Init ===========
=========== 04 - fuelHandler Init ===========
=========== 05 - history Init ===========
=========== 06 - database Init ===========
=========== 07 - memoryProfiler Init ===========
=========== 08 - snapshot Init ===========
=========== Completed Init Event ===========
from armi.reactor.tests import test_reactors
from armi.utils import plotting
from armi import configure, runLog
# 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}")
plotting.close()
Total running time of the script: ( 0 minutes 6.407 seconds)