The Simple Math panel contains tools for applying mathematical operations to curves. You can combine two curves, transform a curve, or export a curve.
The operations available depend on the number of curves:
Number of Curves |
Valid Operations |
One |
Add, Subtract, Divide, Max, Min |
Two or more |
log, exp (exponent), sin, cos, atan, invert (swap X and Y), translate (add a constant), scale (multiply by a constant), external (enables export of a curve) |
For every operation, you can specify that the x or y values of the curve remain fixed.
Examples of external filters are in the filters subdirectory. External filters exchange data with Engineering Solutions, using the standard curve data file format.
There are no subpanels on the Simple Math panel. All inputs and command buttons are located on the main panel.
Input |
Action |
plot = |
Click this button to pick the desired plot from a list of plots in the model. |
1st curve = |
Click this button to select a curve from the available curves in the model, which will serve as your initial curve (for example, when subtracting, the second curve is subtracted from the first one.) |
2nd curve = |
Click this button to select a curve from the available curves in the model, which will serve as your secondary curve (for example, when subtracting, the second curve is subtracted from the first one.) This field can be left blank when performing single-curve operations. |
target = |
|
(operation switch) |
Use this switch to pick the desired mathematical operation. The available operations depend on the number of curves selected, and the operation chosen may cause additional inputs to display on the panel. |
x-fixed / y-fixed |
Use this toggle to determine whether the X or Y values of the curves should remain fixed during the operation. Only the values not chosen here are affected by the operation (for example, multiplied or subtracted). |
factor = |
This field only displays when the operation is translate or scale. Use it to specify the amount (in model units) to translate or scale. |
filter = |
This field only displays when the operation is external. Either click the txt box to type in a file name (at the end of the file path displayed), or click the button to open a standard file browser so that you can navigate to the desired file path and/or select an existing file name to overwrite. |
params = |
This field only displays when the operation is external. Use it to type in any necessary parameters. |
The following action buttons appear:
Button |
Action |
execute |
Perform the selected mathematical operation on the specified curves. |
reject |
Undo the most recent mathematical operation. |
return |
Exit the panel. |
The curve data file format is documented in the XY Plotting section of the User’s Guide.