Curve Calculator

The summary curve calculator is a tool to do relative simple vector calculations on a set of curves. The created curves can be stored for later use in the project.

The calculator can be run by pressing the calculator icon in the menu bar, or by right-clicking on either a summary case or the summary plot collection.

Calculation Settings

To make a new calculated curve, click on New Calculation. This will add a new calculation to Calculated Summaries. Before choosing which curves to do calculations on, a calculation expression must be made. The default expression Calculation_1 := x + y will do a vector addition on the curves which x and y are placeholders for, and assign it to the calculation Calculation_1. How to assign curves to assign to x and y will be covered in section Summary Address Selection.

Operators and Functions

Possible operations and functions are found by right-clicking in the expression window. The following tables show all the options available.

Assignment Operators

OPERATORDEFINITION
:=Assign

Basic Operators

OPERATORDEFINITION
+Addition
-Subtraction
*Multiplication
/Division
%Modulus
^Power

Scalar Functions

FUNCTIONDEFINITION
avgAverage
maxMaximum
minMinimum
sumSum

Trigonometry Functions

FUNCTIONDEFINITION
acosArc cosine (in radians)
acoshInverse hyperbolic cosine (in radians)
asinArc sine (in radians)
asinhInverse hyperbolic sine (in radians)
atanArc tangent (in radians)
atanhInverse hyperbolic tangent (in radians)
cosCosine
coshHyperbolic cosine
cotCotangent
cscCosecant
deg2radConvert x from degrees to radians
deg2gradConvert x from degrees to radians
rad2degConvert x from radians to degrees
grad2degConvert x from radians to degrees
secSecant
sinSine
sincSine cardinal
sinhHyperbolic sine
tanTangent
tanhHyperbolic tangent

Vector Functions

FUNCTIONDEFINITION
absAbsolute value
ceilRounding up
floorRounding down
fracFractional portion of input
logNatural logarithm
log10Base 10 logarithm
powPower
roundRound x to the nearest integer
sgnSign of x, -1 where x < 0, +1 where x > 0, else zero
sqrtSquare root
truncInteger portion of input

Unit

It is possible to add a unit to the calculated curve, in the field Unit beneath the expression field. This will be used as the label on the y-axis when the curve is used in a plot.

Summary Address Selection

An expression consists of placeholders (variables) for curves (summary address). By clicking Parse Expression, the variables will appear in the table below the settings. To assign a summary address to a variable, click Edit. This action will open a Summary Address Selection dialog. Use the dialog to select a summary address and press OK. Repeat the procedure for all the variables.

Generating Curves

After assigning summary addresses to all variables, click Calculate to evaluate the expression. The curve is saved and can be accessed in the Plot Editor selecting the Summary Type: Calculated.

The curves can also be found in an existing curve’s Property Editor. Choose the case Calculated, and the curves will appear in Vector Selection.