armi.matProps.tests package

Generic testing tools for the matProps package.

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

Bases: TestCase

Base class that provides some common functionality for testing matProps 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.

static polynomialEvaluation(powerMap, value)[source]

Perform a polynomial evaluation at a specified value.

Parameters:
  • powerMap (dict) – Dictionary mapping power to its corresponding coefficient.

  • value (float) – Independent variable to evaluate the polynomial at.

Returns:

The polynomial evaluation

Return type:

float

static powerLawEvaluation(coefficients, value)[source]

Perform a power law evaluation at a specified value.

static hyperbolicEvaluation(coefficients, value)[source]

Perform a hyperbolic function evaluation at a specified value.

static createEqnPoly(coefficients)[source]

Creates a symbolic polynomial function from a dictionary of powers.

static createEqnPower(coefficients)[source]

Creates a symbolic power law function from a dictionary of constants.

static createEqnHyper(coefficients)[source]

Creates a symbolic hyperbolic function from a dictionary of constants.

belowMinimumCheck(yamlData, tableData=None)[source]

Check if a ValueError is thrown if attempting to evaluate below the min value of a given T variable.

aboveMaximumCheck(yamlData, tableData=None)[source]

Checksif a ValueError is thrown if attempting to evaluate above the max value of the T variable.

Submodules