2D and Circuit Building an Expression Using Existing Quantities

When entering an expression for a new output variable, insert part or all the expression using the options in the Function group box in the Output Variables window.

To add an input variable by inserting part or all of the expression:

From Product Menu > Results > Output Variables or, in the Project Manager window, right-click Results and select Output Variables to open the Output Variables window. In the Output Variables window, enter a name for the new variable in the Name field.

To insert a quantity:

  1. From the Report Type drop-down list, select the type of report from which the user wants to select the quantity.
  2. From the Solution drop-down menu, select the solution from which the user wants to select the quantity.
  3. From the Category group box, select the appropriate type of quantity to enter.
  4. From the Quantity group box, select the appropriate quantity or the geometry.
  5. From the Function group box, select a ready-made function (this option is the same as inserting the function on the Function group box).
  6. If applicable, on the Domain list, select the solution domain.
  7. Click Insert Into Expression.

The selected quantity is entered into the Expression area of the Output Variables window.

To insert a function:

  1. From the Function group box, select a ready-made function on the drop-down menu.
  2. Click Insert Function into Expression.

The function appears in the Expression area of the Output Variables group box.

  1. When the user is finished defining the variable in the Expression field, click Add to add the new variable to the list.

  2. Repeat steps 2 through 6 to add additional variables.

  3. When the user is finished adding output variables, click Done to close the Output Variables window.

Note: Remember that the evaluated value of an expression is always interpreted in SI units. However, when an angle quantity is plotted in a report, the user can plot values in units other than SI. If the user wants to plot the polar angle of a complex simulation result, S11 say, choose between ang_deg(S11) and ang_rad(S11). Both of these return the exact same angle quantity but in degree and radian units respectively.

Note that when used in expressions, some surprising outcomes might result. For example, the expression "1+ang_deg(S11)" represents an ‘angle’ and the number "1" is treated as "1 rad". The angle SI unit is attached to any unitless number that is added/subtracted from an angle value. If the user treats "1" as degrees, make it explicit and use "1deg + ang_deg(S11)" instead.

If the user are interested in unitless degree values, two additional functions exist: ang_deg_val(S11) and cang_deg_val(S11). These return simple numbers and are treated so by any expression. If the complex S11 lies on the positive Y axis say, ang_deg_val(S11) is 90 and "1 + ang_deg_val(S11)" is 91.