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: armi.physics.neutronics.latticePhysics.latticePhysicsInterface.LatticePhysicsInterface

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

Bases: armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.LatticeInterfaceTester

subclass setting _newLibraryShouldBeCreated = False

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

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

Bases: armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.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_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: armi.physics.neutronics.latticePhysics.tests.test_latticeInterface.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