Creating the Script to be Run on Evaluate

The script first imports the python math function and defines some constants.

import math

DA = DesignAssessment
DA.OutputDeprecatedWarnings(True)
UpstreamSolution = DesignAssessment.SolutionSelections()[0].Solutions()[0]

Three routines “EvaluateValueX”, “EvaluateDamage”, and “EvaluateCulmativeDamage”, are defined for performing the calculations for each equation. These are followed with definitions for two additional routines, “Plot” to plot the results and “EvaluateAllResults” to control the evaluate process. The following sections look at each of these routines, starting from the “EvaluateAllResults” entry point.


Release 18.2 - © ANSYS, Inc. All rights reserved.