10.1.2.1.4. armicontrib.dif3d.tests.test_dif3dOutputReader module

Test output reading.

The output files are created by a DRAGON/DIF3D run as coordinated by the dif3ddemo.cli.makeTestFixtures entry point.

Specifically, the 1/3-core nodal hex case is read here.

The basis for the test results is shown in Test Report.

class armicontrib.dif3d.tests.test_dif3dOutputReader.TestOutputReader(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test case for output reading.

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.

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

test_readKeff()[source]

Read output files directly from binary files in test fixture.

test_readTotalFlux()[source]

Compare flux in a block to a manually extracted flux from the text output file.

Grab plenum block in ring 3, position 2, axial node 5. This is position label A3002E

test_readPeakFlux()[source]

Test reading peak flux from region A3002E

test_readMGFlux()[source]

Compare processed values with entries copied from output file

test_power()[source]

Compare power, power density, and peak power density with value manually extracted

Values came from REGION TOTALS table in output. Note that we need to use a core region here rather than a plenum.

test_tenthousandRegion()[source]