COCO - CAPE-OPEN to CAPE-OPEN simulation environment
 Help

Information Calculator

The information calculator unit calculates information for an information stream. It can take input from multiple information inlet streams. The output value is calculated by a user-specified formula.

To change the name of the output information, edit the unit operation and go to the Information tab. You can also change the unit of measure of the output information; hit the button on the right of the output information.

You can add and remove input information streams by using the Add and Remove buttons. Double-click an existing input definition to modify it. Input names can only consist of alpha-numeric characters and underscores, and must not start with a number.

The information calculator requires a formula for the output result. The input data and output data are in SI units, but in the simulation environment the output data is exposed as a parameter, and can be shown in desired units of measure.

Formula syntax

The output formula can use the names of the input data as variable names. The following operands can be used in the formulas. The operators are in order of precedence. Use brackets to make order of operations explicit.

operandsamplemeaning
-a - bsubstraction
+a + baddition
*a * bmultiplication
/a / bdivision
-- anegation (unary minus)
^a ^ bpower (a to the power of b)

The following values can be used:

valuedescription
PI3.1415926535897932384626433832795
Runiversal gas constant, 8.314 J/mol/K
numberany numeric value
input namevalue of an input variable

The following functions can be used:

functionsampledescription
SQRTSQRT(a)square root
SINSIN(a)sine
COSCOS(a)cosine
TANTAN(a)tangent
SINHSINH(a)hyperbolic sine
COSHCOSH(a)hyperbolic cosine
TANHTANH(a)hyperbolic tangent
ASINASIN(a)arc sine
ACOSACOS(a)arc cosine
ATANATAN(a)arc tangent
FLOORFLOOR(a)nearest lower integer
CEILCEIL(a)nearest higher integer
ROUNDROUND(a)nearest integer
EXPEXP(a)natural exponent
LOGLOG(a)natural logarithm
LOG10LOG10(a)10 based logarithm
MINMIN(a,b)minimum of two values
MAXMAX(a,b)maximum of two values
MODMOD(a,b)modulus

All formulas are case-insensitive. In the above, a and b are arbitrary expressions.

INDEX
CONTENT