armi.materials.tests.test_materials module
Tests materials.py.
- class armi.materials.tests.test_materials.AbstractMaterialTest[source]
Bases:
objectBase for material tests.
- MAT_CLASS = None
- VALID_TEMP_K = 500
- class armi.materials.tests.test_materials.MaterialConstructionTests(methodName='runTest')[source]
Bases:
TestCaseCreate 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.
- class armi.materials.tests.test_materials.MaterialFindingTests(methodName='runTest')[source]
Bases:
TestCaseMake sure materials are discoverable as designed.
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.
- class armi.materials.tests.test_materials.CaliforniumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
Californium
- class armi.materials.tests.test_materials.CesiumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.MagnesiumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- VALID_TEMP_K = 1000
- class armi.materials.tests.test_materials.MagnesiumOxideTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.MOXTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.NaClTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.PotassiumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.ScandiumOxideTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.SodiumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.ThoriumUraniumMetalTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.UraniumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.UraniumOxideTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
UraniumOxide
- class armi.materials.tests.test_materials.ThoriumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.ThoriumOxideTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
ThoriumOxide
- class armi.materials.tests.test_materials.VoidTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.MixtureTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
_Mixture
- class armi.materials.tests.test_materials.LeadTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- VALID_TEMP_K = 600
- class armi.materials.tests.test_materials.LeadBismuthTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
LeadBismuth
- class armi.materials.tests.test_materials.CopperTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.ZrTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.InconelTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.Inconel600Tests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
Inconel600
- class armi.materials.tests.test_materials.Inconel625Tests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
Inconel625
- class armi.materials.tests.test_materials.InconelX750Tests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
InconelX750
- class armi.materials.tests.test_materials.Alloy200Tests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.CaH2Tests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.HafniumTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.HT9Tests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.HastelloyNTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- MAT_CLASS
alias of
HastelloyN
- class armi.materials.tests.test_materials.TZMTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.YttriumOxideTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.ZincOxideTests(methodName='runTest')[source]
Bases:
AbstractMaterialTest,TestCaseCreate 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.
- class armi.materials.tests.test_materials.FuelMaterialTests(methodName='runTest')[source]
Bases:
TestCaseCreate 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.
- baseInput = '\nnuclide flags:\n U: {burn: false, xs: true}\n ZR: {burn: false, xs: true}\ncustom isotopics:\n customIsotopic1:\n input format: mass fractions\n density: 1\n U: 1\n customIsotopic2:\n input format: mass fractions\n density: 1\n ZR: 1\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'
- class armi.materials.tests.test_materials.PickledMaterialsTests(methodName='runTest')[source]
Bases:
TestCaseCreate 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.
- test_simpleReload()[source]
Prove that the material pickling works, creating reasonable copies of the matProps material.
- test_massFrac()[source]
Ensure that setting the mass fractions on one pickled material does not affect another copy.