armi.physics.neutronics.latticePhysics.tests.test_latticeInterface module

Test the Lattice Interface.

class armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.LatticeInterfaceTester(r, cs)[source]

Bases: LatticePhysicsInterface

readExistingXSLibraries(cycle, node)[source]
class armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.LatticeInterfaceTesterLibFalse(r, cs)[source]

Bases: LatticeInterfaceTester

Subclass setting _newLibraryShouldBeCreated = False.

class armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.TestLatticePhysicsInterfaceBase(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.

class armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.TestLatticePhysicsInterface(methodName='runTest')[source]

Bases: TestLatticePhysicsInterfaceBase

Test Lattice Physics Interface.

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_includeGammaXS()[source]

Test that we can correctly flip the switch to calculate gamma XS.

test_latticePhysicsInterface()[source]

Super basic test of the LatticePhysicsInterface.

test_interactBOL()[source]

Test interactBOL() with different update frequencies.

Notes

Unlike other interactions, self.o.r.core.lib is not set to None by the BOC interaction, so this test does not have a good means of verifying the correct function, so we use self.testVerification instead.

test_interactBOC()[source]

Test interactBOC() with different update frequencies.

Notes

Unlike other interactions, self.o.r.core.lib is not set to None by the BOC interaction, so this test does not have a good means of verifying the correct function, so we use self.testVerification instead.

test_interactEveryNode()[source]

Test interactEveryNode() with different update frequencies.

test_interactEveryNodeFirstCoupled()[source]

Test interactEveryNode() with LatticePhysicsFrequency.firstCoupledIteration.

test_interactEveryNodeAll()[source]

Test interactEveryNode() with LatticePhysicsFrequency.all.

test_interactFirstCoupledIteration()[source]

Test interactCoupled() with different update frequencies on first iteration.

test_interactAll()[source]

Test interactCoupled() with different update frequencies on non-first iteration.

class armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.TestLatticePhysicsLibraryCreation(methodName='runTest')[source]

Bases: TestLatticePhysicsInterfaceBase

Test variations of _newLibraryShouldBeCreated.

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_libCreation_NoGenXS()[source]

No ISOTXS and xs gen not requested.

test_libCreation_GenXS()[source]

No ISOTXS and xs gen requested.

test_libCreation_NoGenXS_2()[source]

ISOTXS present and has all of the necessary information.

test_libCreation_GenXS_2()[source]

ISOTXS present and does not have all of the necessary information.

test_libCreation_GenXS_3()[source]

ISOTXS present and does not have all of the necessary information.