armi.matProps.tests.test_piecewiseFunction module

Tests related to piecewise functions.

class armi.matProps.tests.test_piecewiseFunction.TestPiecewiseFunction(methodName='runTest')[source]

Bases: MatPropsFunTestBase

Tests related to piecewise functions.

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_piecewiseEqnEval()[source]

Tests the parsing of a PiecewiseFunction and make sure it evaluates at the appropriate sub function.

test_piecewiseEqnGap()[source]

Test that PiecewiseFunction evaluates correctly with gaps.

test_piecewiseEqnPoly()[source]

Test that makes a PiecewiseFunction composed of multiple PolynomialFunctions.

test_piecewiseEqnPolyTable()[source]

Test that makes a PiecewiseFunction composed of a mixture of polynomial and table functions.

test_inputCheckPiecewiseMinTemp()[source]

Test to make sure an error is thrown when attempting to evaluate below the minimum valid range.

test_inputCheckPiecewiseMaxTemp()[source]

Test to make sure an error is thrown when attempting to evaluate above the maximum valid range.

test_piecewiseEqn2d()[source]

Test that PiecewiseFunction evaluates correctly with multiple dimensions.

test_piecewiseEqnOverlap()[source]

Test that PiecewiseFunction fails to load with overlapping regions.

test_piecewiseEqnDiffVars()[source]

Test that PiecewiseFunction fails to load when child functions use different variables.