armi.reactor.blueprints.tests.test_materialModifications module

Tests for material modifications.

class armi.reactor.blueprints.tests.test_materialModifications.TestMaterialModifications(methodName='runTest')[source]

Bases: 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'
loadUZrAssembly(materialModifications)[source]
test_noMaterialModifications()[source]
test_u235_wt_frac_modification()[source]

Test constructing a component where the blueprints specify a material modification for one nuclide.

test_u235_wt_frac_byComponent_modification1()[source]

Test constructing a component where the blueprints specify a material modification for one nuclide, for just one component.

test_u235_wt_frac_byComponent_modification2()[source]

Test constructing a component where the blueprints specify a material modification for one nuclide, for multiple components.

test_invalid_component_modification()[source]
test_zr_wt_frac_modification()[source]
test_both_u235_zr_wt_frac_modification()[source]
test_checkByComponentMaterialInput()[source]
test_filterMaterialInput()[source]
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.

test_matModsUpTheMRO()[source]

Make sure that valid/invalid material modifications are searched up the MRO for a material class.