armi.matProps.tests.test_1DSymbolicFunction module

Simple examples to verify constant, polynomial, hyperbolic, and power law functional forms.

class armi.matProps.tests.test_1DSymbolicFunction.Test1DSymbolicFunction(methodName='runTest')[source]

Bases: MatPropsFunTestBase

Test 1D symbolic 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_polynomialEqnIntInt()[source]

Evaluates a PolynomialFunction that has 8 power values that are all integers.

Ensure that the override methods PolynomialFunction._parseSpecific() and PolynomialFunction._calcSpecific() are functioning appropriately. A minimal input with a defined polynomial function is provided. The polynomial is comprised of all integer coefficients and powers to ensure that matProps can properly handle integer inputs. The function is evaluated at several values in the valid range and compared to a lambda expression inside the test method to make sure their results are equivalent.

test_polynomialEqnFloatInt()[source]

Evaluates a PolynomialFunction with floating point coefficients and integer point power terms.

test_polynomialEqnFloatFloat()[source]

Evaluates a PolynomialFunction with floating point coefficients and floating point power terms.

test_polynomialDiffFloatTypes()[source]

Evaluates a PolynomialFunction with floating point coefficients power terms, checking exact values.

test_symbolicEqnError()[source]

Ensure symbolic equations fail correctly when given empty or nonsense inputs.

test_powerEqn()[source]

Evaluates a PowerLaw with floating point coefficients and exponents.

test_powerEqnAllInt()[source]

Evaluates a PowerLaw with integer coefficients and exponents.

test_powerEqnFloatInt()[source]

Evaluates a PowerLaw with a mixture of integer and floating point coefficients and exponents.

test_powerEqnNoInter()[source]

Evaluates a PowerLaw with no intercept term.

test_powerEqnNoOuter()[source]

Evaluates a PowerLaw with no outer multiplier term.

test_powerEqnNoOuterInter()[source]

Evaluates a PowerLaw with no outer multiplier or intercept term.

test_constantsEval()[source]

Evaluates a PowerLaw for integer and floating point values.

test_hyperbolicEqnEval()[source]

Evaluates a HyperbolicFunction for integer and floating point values.

test_hyperbolicEqnEval2()[source]

Evaluates a HyperbolicFunction for a different set of floating point values.