Working with Variables
Defining an Expression
Expressions are mathematical descriptions that typically contain intrinsic functions, such as sin(x), and arithmetic operators, such as +, -, *, and /, well as defined variables. For example, you could define: x_size = 1mm, 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 dialog lists the available pre-defined constants. These may not be reassigned a new value.
Name |
Value |
Description |
abs0 |
-273.15 |
|
Boltz |
1.3806503E-023 |
Boltzmann constant (J/K) |
c0 |
299792458 |
Speed of light in vacuum (m/s) |
elecq |
8.854187817e-012 |
Permittivity of vacuum (F/m) |
eta |
376.730313461 |
Electron Charge (C) |
g0 |
9.80665 |
|
mathE |
2.718281828 |
. |
pi |
3.14159265358979 |
Ratio of circle circumference |
planck |
6.6260755e-034 |
. |
u0 |
1.25663706143582e-06 |
Permeability of vacuum (H/m) |
Numerical values may be entered in ANSYS’s shorthand for scientific notation. For example, 5x107 could be entered as 5e7.
Related Topics
Defining Mathematical Functions
Using Valid Operators for Expressions
Using Intrinsic Functions for Expressions
Using Piecewise Linear Functions for Expressions
Using Dataset Expressions
-
国内最全面的HFSS培训课程,包含7套视频教程和2本教材,资深专家讲解,视频操作演示,结合最新工程案例,让HFSS学习不再难...【详细介绍】