SimcenterKnowledge

Expressions > Inputs to expressions

Mathematical operators in expressions

The following table lists the mathematical operators that you can use in the formula for an expression.

Mathematical operators

Operator Description Example Result(1)
Algebraic operators:
+ Addition 5.1+7.4 Returns 12.5
Subtraction 12.3–3.5 Returns 8.8
* Multiplication 3.0*6.0 Returns 18.0
/ Division 1.25/2.5 Returns 0.5
^ Exponentiation 2.4^2.0 Returns 5.76
Logical operators:
> Greater than time>6.0 Returns true if time greater than 6.0Returns false if time less than or equal to 6.0
< Less than time<6.0 Returns true if time less than 6.0Returns false if time greater than or equal to 6.0
>= Greater than or equal to time>=6.0 Returns true if time greater than or equal to 6.0Returns false if time less than 6.0
<= Less than or equal to time<=6.0 Returns true if time less than or equal to 6.0Returns false if time greater than 6.0
== Equal time==6.0 Returns true if time equal to 6.0Returns false if time not equal to 6.0
= Not equal time
Or
&& And 16&&0 Returns falseNote: Returns true if both of the arguments are nonzero for numerical arguments, or if both of the arguments are true for Boolean arguments.Returns false if one or both of the arguments is zero for numerical arguments, or if one or both of the arguments is false for Boolean arguments.
Conditional operator:
if (condition) then (action) else (action) If/else structure if time==100 then 1500 else 2000 Returns 1500 at time equals 100, and returns 2000 at all other times
if time =100 then 1500 else 2000 Returns 2000 at time equals 100, and returns 1500 at all other times
(1) For information on how units can affect the results of mathematical operations, see Units in expressions.

Operations of equal precedence

The expression system evaluates mathematical operations of equal precedence like multiplication and division from left to right.

Example:

4/2*5 evaluates to 10

Example:

4*2/5 evaluates to 1.6

Example:

4/2/5 evaluates to 0.4

As a best practice, in formulas for expressions where ambiguity about the order of operations exists, use parentheses to force the ordering of the mathematical operations.

How do I

Change rename and variable prefix settings

Find units and unit designations

Specify a thermal plugin function

Learn more

Inputs to expressions

Restrictions on auto-generated expressions

Fields in expressions

Units in expressions

Migrating expressions that include angular measures

Inconsistent units warnings

Look up more details

Mathematical functions in expressions

Lookup functions in expressions

Utility functions in expressions

Thermal-flow functions in expressions

Auto-generated expressions

Field function

Mapped field function

Temperatures in expressions

Complex numbers in expressions

Quick links

Command reference

Pre/Post video examples

Bulk Entry Descriptions

Simcenter 3D tutorials

Browse Simcenter 3D help by product area

Mathematical operators in expressions, Simcenter 3D 2021.1 Series

© 2020 Siemens

window.mainLanguage="en_US"

window.delivId=""

window.projectId=""

MathJax.Hub.Config({ TeX: { extensions: ["autoload-all.js"] }, tex2jax: { displayMath: [ ] }, "SVG": { scale: 125 } });

Source: https://docs.sw.siemens.com/en-US/doc/289054037/PL20200601120302950.advanced/xid909539 · retrieved 2026-07-17