armi.materials.tests.test_materials module

Tests materials.py

class armi.materials.tests.test_materials.MaterialConstructionTests(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.

test_material_initialization()[source]

Make sure all materials can be instantiated without error.

class armi.materials.tests.test_materials.MaterialFindingTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

Make 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.

test_findMaterial()[source]
class armi.materials.tests.test_materials.Californium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.californium.Californium

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
test_porosities()[source]
test_getCorrosionRate()[source]
class armi.materials.tests.test_materials.Cesium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.cs.Cs

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Magnesium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.magnesium.Magnesium

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.MagnesiumOxide_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.mgO.MgO

test_pseudoDensity()[source]
test_linearExpansionPercent()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Molybdenum_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.molybdenum.Molybdenum

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.MOX_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.mox.MOX

test_density()[source]
test_getMassFracPuO2()[source]
test_getMolFracPuO2()[source]
test_getMeltingPoint()[source]
test_applyInputParams()[source]
class armi.materials.tests.test_materials.NaCl_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.sodiumChloride.NaCl

test_density()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.NiobiumZirconium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.nZ.NZ

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Potassium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.potassium.Potassium

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.ScandiumOxide_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.scandiumOxide.Sc2O3

test_pseudoDensity()[source]
test_linearExpansionPercent()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Sodium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.sodium.Sodium

test_pseudoDensity()[source]
test_specificVolumeLiquid()[source]
test_enthalpy()[source]
test_thermalConductivity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Tantalum_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.tantalum.Tantalum

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.ThoriumUraniumMetal_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.thU.ThU

test_pseudoDensity()[source]
test_meltingPoint()[source]
test_thermalConductivity()[source]
test_linearExpansion()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Uranium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.uranium.Uranium

test_applyInputParams()[source]
test_thermalConductivity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.UraniumOxide_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.uraniumOxide.UraniumOxide

test_adjustMassEnrichment()[source]
test_meltingPoint()[source]
test_density()[source]
test_thermalConductivity()[source]
test_linearExpansion()[source]
test_linearExpansionPercent()[source]
test_heatCapacity()[source]

Check against Figure 4.2 from ORNL 2000-1723 EFG

test_getTemperatureAtDensity()[source]
test_getDensityExpansion3D()[source]
test_removeNucMassFrac()[source]
test_densityTimesHeatCapactiy()[source]
test_getTempChangeForDensityChange()[source]
test_duplicate()[source]
test_propertyValidTemperature()[source]
test_applyInputParams()[source]
class armi.materials.tests.test_materials.Thorium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.thorium.Thorium

test_setDefaultMassFracs()[source]
test_pseudoDensity()[source]
test_linearExpansion()[source]
test_thermalConductivity()[source]
test_meltingPoint()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.ThoriumOxide_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.thoriumOxide.ThoriumOxide

test_density()[source]
test_linearExpansion()[source]
test_thermalConductivity()[source]
test_meltingPoint()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Void_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.void.Void

test_pseudoDensity()[source]
test_density()[source]

this material has no density function

test_linearExpansion()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Mixture_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.mixture._Mixture

test_density()[source]

this material has no density function

test_setDefaultMassFracs()[source]
test_linearExpansion()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Lead_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.lead.Lead

test_volumetricExpansion()[source]
test_linearExpansion()[source]
test_setDefaultMassFracs()[source]
test_pseudoDensity()[source]
test_heatCapacity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.LeadBismuth_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.leadBismuth.LeadBismuth

test_setDefaultMassFracs()[source]
test_pseudoDensity()[source]
test_volumetricExpansion()[source]
test_heatCapacity()[source]
test_getTempChangeForDensityChange()[source]
test_dynamicVisc()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Copper_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.copper.Cu

test_setDefaultMassFracs()[source]
test_densityNeverChanges()[source]
test_linearExpansionPercent()[source]
test_getChildren()[source]
test_getChildrenWithFlags()[source]
class armi.materials.tests.test_materials.Sulfur_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.sulfur.Sulfur

test_setDefaultMassFracs()[source]
test_pseudoDensity()[source]
test_volumetricExpansion()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Zr_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.zr.Zr

test_thermalConductivity()[source]
test_linearExpansion()[source]
test_linearExpansionPercent()[source]
test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Inconel_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

test_setDefaultMassFracs()[source]
test_pseudoDensity()[source]
test_Iconel800_linearExpansion()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Inconel600_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.inconel600.Inconel600

test_00_setDefaultMassFracs()[source]
test_01_linearExpansionPercent()[source]
test_02_linearExpansion()[source]
test_03_pseudoDensity()[source]
test_polyfitThermalConductivity()[source]
test_polyfitHeatCapacity()[source]
test_polyfitLinearExpansionPercent()[source]
test_heatCapacity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Inconel625_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.inconel625.Inconel625

test_00_setDefaultMassFracs()[source]
test_01_linearExpansionPercent()[source]
test_02_linearExpansion()[source]
test_03_pseudoDensity()[source]
test_polyfitThermalConductivity()[source]
test_polyfitHeatCapacity()[source]
test_polyfitLinearExpansionPercent()[source]
test_heatCapacity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.InconelX750_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.inconelX750.InconelX750

test_00_setDefaultMassFracs()[source]
test_01_linearExpansionPercent()[source]
test_02_linearExpansion()[source]
test_03_pseudoDensity()[source]
test_polyfitThermalConductivity()[source]
test_polyfitHeatCapacity()[source]
test_polyfitLinearExpansionPercent()[source]
test_heatCapacity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Alloy200_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.alloy200.Alloy200

test_nickleContent()[source]

Assert alloy 200 has more than 99% nickle per its spec

test_linearExpansion()[source]
test_linearExpansionHotter()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.CaH2_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.caH2.CaH2

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.Hafnium_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.hafnium.Hafnium

test_pseudoDensity()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.HastelloyN_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.hastelloyN.HastelloyN

test_thermalConductivity()[source]
test_heatCapacity()[source]
test_linearExpansionPercent()[source]
test_meanCoefficientThermalExpansion()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.TZM_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.tZM.TZM

test_00_applyInputParams()[source]
test_01_pseudoDensity()[source]
test_02_linearExpansionPercent()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.YttriumOxide_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.yttriumOxide.Y2O3

test_pseudoDensity()[source]
test_linearExpansionPercent()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.ZincOxide_TestCase(methodName='runTest')[source]

Bases: armi.materials.tests.test_materials._Material_Test, 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.

MAT_CLASS

alias of armi.materials.zincOxide.ZnO

test_density()[source]
test_linearExpansionPercent()[source]
test_propertyValidTemperature()[source]
class armi.materials.tests.test_materials.FuelMaterial_TestCase(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.

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'
loadAssembly(materialModifications)[source]
test_class1Class2_class1_wt_frac()[source]
test_class1Class2_classX_custom_isotopics()[source]