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:
MatPropsFunTestBaseTest 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_powerEqnFloatInt()[source]
Evaluates a PowerLaw with a mixture of integer and floating point coefficients and exponents.
- test_powerEqnNoOuterInter()[source]
Evaluates a PowerLaw with no outer multiplier or intercept term.