- HFSS15在線幫助
- 首頁
- HFSS教學(xué)
- HFSS 15 在線幫助文檔
Working with Variables
Defining Mathematical Functions
A mathematical function is an expression that references another defined variable. A function’s definition can include both expressions and variables.
The following mathematical functions may be used to define expressions:
Basic |
/, +, -, *, mod (modulus), ** (exponentiation), - (Unary minus), == (equals), ! (not), != (not equals), > (greater than), < (less than), >= (greater than equals), <= (less than equals), && (logical and), || (logical or) |
Intrinsic |
if, sqn, abs, exp, pow, ln (natural log), log (log to the base 10), lg (log to the base 2), sqrt, floor, ceil, round, rand (returns a random number between 0 and 1), deg, rad |
Trigonometric |
sin, cos, tan, asin, acos, atan, sinh, cosh, tanh |
The predefined variables X, Y, Z, Phi, Theta, R, and Rho must be entered as such. X, Y, and Z are the rectangular (cartesian) coordinates. Phi, Theta, and Rho are the spherical coordinates. R is the cylindrical radius, and Rho is the spherical radius.
If you do not specify units, all trigonometric expressions expect their arguments to be in radians, and the inverse trigonometric functions’ return values are in radians. If you want to use degrees, you must supply the unit name deg. When the argument to a trigonometric expression is a variable, the units are assumed to be radians. These function names are reserved and may not be used as variable names.
As far as expression evaluation is concerned: units are conversion factors (that is, from the given unit to SI). Note also that the evaluated value of an expression) is always interpreted as in SI units.
Related Topics
Setting Coordinate Systems
Expressing Cartesian, Cylindrical or Spherical Coordinates
-
國內(nèi)最全面的HFSS培訓(xùn)課程,包含7套視頻教程和2本教材,資深專家講解,視頻操作演示,結(jié)合最新工程案例,讓HFSS學(xué)習(xí)不再難...【詳細(xì)介紹】