armi.nuclearDataIO.cccc.tests.test_nhflux module

Test reading/writing of NHFLUX dataset.

class armi.nuclearDataIO.cccc.tests.test_nhflux.TestNhflux(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_fc()[source]

Verify the file control info.

test_fluxMoments()[source]

Verify that the flux moments are properly read.

The 5 flux moments values are manually verified for two nodes. The indices are converted to zero based from the original by subtracting one.

test_xyPartialCurrents()[source]

Verify that the XY-directed partial currents can be read.

The surface partial currents can be used to reconstruct the surface flux and corner flux values. This test shows that the outgoing current in one hex is identical to the incoming current in the adjacent hex.

test_zPartialCurrents()[source]

Verify that the Z-directed partial currents can be read.

The Z-directed partial currents are manually checked for one node surface.

test_write()[source]

Verify binary equivalence of written binary file.

class armi.nuclearDataIO.cccc.tests.test_nhflux.TestNhfluxVariant(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_fc()[source]

Verify the file control info.

test_fluxMoments()[source]
test_write()[source]

Verify binary equivalence of written binary file