Defining an Expression

Expressions are mathematical descriptions that typically contain intrinsic functions, such as sin(x), and arithmetic operators, such as +, -, *, and /, as well as defined variables. For example, you could define: x_size = 1 mm, y_size = x_size + sin(x_size). Defining one variable in terms of another makes a dependent variable. Dependent variables, though useful in many situations, cannot be the subject of optimization, sensitivity analysis, tuning, or statistical analysis.

The Constants tab of the Project Variables window lists the available predefined constants, which can not be reassigned a new value.



Numerical values may be entered in Ansys’ shorthand for scientific notation. For example, 5x107 could be entered as 5e7.

Note: Maxwell 2D, 3D, and RMxprt do not support expressions that include the combination of array and intrinsic variables.

Related Topics 

Defining Mathematical Functions

Using Valid Operators for Expressions

Using Intrinsic Functions for Expressions

Using Piecewise Linear Functions for Expressions

Using Dataset Expressions