armi.reactor.blueprints.tests.test_materialModifications module¶
- class armi.reactor.blueprints.tests.test_materialModifications.TestMaterialModifications(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.
- uZrInput = '\nnuclide flags:\n U: {burn: false, xs: true}\n ZR: {burn: false, xs: true}\nblocks:\n fuel: &block_fuel\n fuel1: &component_fuel_fuel1\n shape: Hexagon\n material: UZr\n Tinput: 600.0\n Thot: 600.0\n ip: 0.0\n mult: 1\n op: 10.0\n fuel2: &component_fuel_fuel2\n shape: Hexagon\n material: UZr\n Tinput: 600.0\n Thot: 600.0\n ip: 0.0\n mult: 1\n op: 10.0\nassemblies:\n fuel a: &assembly_a\n specifier: IC\n blocks: [*block_fuel]\n height: [1.0]\n axial mesh points: [1]\n xs types: [A]\n'¶
- boronInput = '\nnuclide flags:\n U: {burn: false, xs: true}\n ZR: {burn: false, xs: true}\nblocks:\n fuel: &block_fuel\n fuel1: &component_fuel_fuel1\n shape: Hexagon\n material: B\n Tinput: 600.0\n Thot: 600.0\n ip: 0.0\n mult: 1\n op: 10.0\n fuel2: &component_fuel_fuel2\n shape: Hexagon\n material: B\n Tinput: 600.0\n Thot: 600.0\n ip: 0.0\n mult: 1\n op: 10.0\nassemblies:\n fuel a: &assembly_a\n specifier: IC\n blocks: [*block_fuel]\n height: [1.0]\n axial mesh points: [1]\n xs types: [A]\n'¶
- test_invalidMatModName()[source]¶
This test shows proves that we can detect invalid material modification names when they are specified on an assembly blueprint. We happen to know that ZR_wt_frac is a valid modification for the UZr material class, so we use that in the first call to prove that things initially work fine.