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 test_getNumberDensities(self): o = buildOperatorOfEmptyHexBlocks() assems = o.r.core.getAssemblies(Flags.FUEL) blocks = assems[0].getBlocks(Flags.FUEL) b = blocks[0] fpDensities = self.lfps.getNumberDensities(objectWithParentDensities=b) for fp in ["GE73", "GE74", "GE76", "AS75", "KR85", "MO99", "SM150", "XE135"]: self.assertEqual(fpDensities[fp], 0.0)
def setUp(self): o = buildOperatorOfEmptyHexBlocks() self.fpModel = fissionProductModel.FissionProductModel(o.r, o.cs) o.removeAllInterfaces() o.addInterface(self.fpModel) dummyLFPs = test_lumpedFissionProduct.getDummyLFPFile() self.fpModel.setGlobalLumpedFissionProducts( dummyLFPs.createLFPsFromFile()) self.fpModel.setAllBlockLFPs()
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")