Simulation object property fields accept formulas as well as specific numeric values. This page explains the capabilities of the equation interpreter used to convert these formulas to specific numeric vlaues.
For instance, if you wish to set a value to the square root of 3 divided by e, just enter sqrt(3)/exp(1) into the field. The expression will be automatically evaluated when you press Enter or click on a different field. Equations which become undefined (i.e. 1/0) should be avoided.
The following table provides a list of available operators and constants.
|Algebraic operators||+, -, *, /|
|Trigonometric operators||sin, cos, tan, asin, acos, atan, atan2|
|Power operators||^ or **, exp, log10, log, sqrt|
|Logical operators||>, <, >=, <=, ==, !=|
|Other operators||abs, mod|
|Constants||c (speed of light in m/s), pi (the value of Pi)|
Index profile for <Object defined dielectric> (Optical)
In addition to the above parameters, equations can be used to specify a position dependent refractive index when the material is set to <Object defined dielectric>. In such situations, the position variables x,y,z are local relative coordinates of the object, not the global coordinates. See graded index waveguide for an example.