def testReadReactor(self): reactor = test_reactors.buildOperatorOfEmptyHexBlocks().r reactor.core.symmetry = geometry.SymmetryType( geometry.DomainType.THIRD_CORE, geometry.BoundaryType.PERIODIC) geom = SystemLayoutInput.fromReactor(reactor) self.assertEqual(geom.assemTypeByIndices[(2, 1)], "fuel") self.assertEqual(str(geom.geomType), geometry.HEX)
def testReadReactor(self): reactor = test_reactors.buildOperatorOfEmptyHexBlocks().r reactor.core.symmetry = geometry.THIRD_CORE + geometry.PERIODIC geom = SystemLayoutInput.fromReactor(reactor) self.assertEqual(geom.assemTypeByIndices[(2, 1)], "fuel") self.assertEqual(geom.geomType, "hex")