armi.materials.tests.test_materials module

Tests materials.py.

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

test_material_initialization()[source]

Make sure all materials can be instantiated without error.

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

Bases: 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: _Material_Test, 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 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: _Material_Test, 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 Cs

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

Bases: _Material_Test, 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 Magnesium

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

Bases: _Material_Test, 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 MgO

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

Bases: _Material_Test, 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 Molybdenum

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

Bases: _Material_Test, 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 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: _Material_Test, 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 NaCl

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

Bases: _Material_Test, 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 NZ

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

Bases: _Material_Test, 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 Potassium

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

Bases: _Material_Test, 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 Sc2O3

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

Bases: _Material_Test, 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 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: _Material_Test, 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 Tantalum

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

Bases: _Material_Test, 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 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: _Material_Test, 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 Uranium

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

Bases: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 _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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 CaH2

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

Bases: _Material_Test, 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 Hafnium

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

Bases: _Material_Test, 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 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: _Material_Test, 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 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: _Material_Test, 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 Y2O3

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

Bases: _Material_Test, 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 ZnO

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

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]