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'
b4cInput = '\nnuclide flags:\n    B: {burn: false, xs: true}\n    C: {burn: false, xs: true}\nblocks:\n    poison: &block_poison\n        poison:\n            shape: Hexagon\n            material: B4C\n            Tinput: 600.0\n            Thot: 600.0\n            ip: 0.0\n            mult: 1\n            op: 10.0\nassemblies:\n    assem a: &assembly_a\n        specifier: IC\n        blocks: [*block_poison]\n        height: [1.0]\n        axial mesh points: [1]\n        xs types: [A]\n'
loadUZrAssembly(materialModifications)[source]
loadB4CAssembly(materialModifications: str)[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_materialModificationLength()[source]

If the wrong number of material modifications are defined, there is an error.

test_invalidComponentModification()[source]
test_zrWtFracModification()[source]
test_bothU235ZrWtFracModification()[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.

test_theoreticalDensity()[source]

Test the theoretical density can be loaded from material modifications.