armi.physics.neutronics.tests.test_energyGroups module

Energy group tests.

class armi.physics.neutronics.tests.test_energyGroups.TestEnergyGroups(methodName='runTest')[source]

Bases: 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_invalidGroupStructureType()[source]

Test that the reverse lookup fails on non-existent energy group bounds.

Test Case: Check the neutron energy group bounds logic fails correctly for the wrong structure. T_ARMI_EG_NE0
signature: test_invalidGroupStructureType
requirements: R_ARMI_EG_NE
test_consistenciesBetweenGSAndGSType()[source]

Test that the reverse lookup of the energy group structures work.

Test Case: Check the neutron energy group bounds for a given group structure. T_ARMI_EG_NE1
signature: test_consistenciesBetweenGSAndGSType
requirements: R_ARMI_EG_NE
test_getFastFluxGroupCutoff()[source]

Test ability to get the ARMI energy group index contained in energy threshold.

Test Case: Return the energy group index which contains a given energy threshold. T_ARMI_EG_FE
signature: test_getFastFluxGroupCutoff
requirements: R_ARMI_EG_FE