def test_fullCoreConversion(self): cs = settings.Settings( os.path.join(test_reactors.TEST_ROOT, "armiRun.yaml")) case = cases.Case(cs=cs) mod = inputModifiers.FullCoreModifier() self.assertEqual(case.bp.gridDesigns["core"].symmetry, "third periodic") mod(case, case.bp, None) self.assertEqual(case.bp.gridDesigns["core"].symmetry, "full")
def test_example(self): builder = suiteBuilder.SeparateEffectsSuiteBuilder(self.baseCase) builder.addDegreeOfFreedom( inputModifiers.SettingsModifier("fpModel", v) for v in ("noFissionProducts", "infinitelyDilute", "MO99")) builder.addDegreeOfFreedom( inputModifiers.SettingsModifier("detailedAxialExpansion", v) for v in (True, )) builder.addDegreeOfFreedom( inputModifiers.SettingsModifier("buGroups", v) for v in ( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 100], [3, 5, 7, 9, 10, 20, 100], [3, 5, 10, 15, 20, 100], )) builder.addDegreeOfFreedom((inputModifiers.FullCoreModifier(), )) with directoryChangers.TemporaryDirectoryChanger(): suite = builder.buildSuite() for c in suite: c.writeInputs() self.assertTrue(os.path.exists("case-suite"))