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:
- From the Report Type drop-down list, select the type of report from which the user wants to select the quantity.
- From the Solution drop-down menu, select the solution from which the user wants to select the quantity.
- From the Category group box, select the appropriate type of quantity to enter.
- From the Quantity group box, select the appropriate quantity or the geometry.
- From the Function group box, select a ready-made function (this option is the same as inserting the function on the Function group box).
- If applicable, on the Domain list, select the solution domain.
- Click Insert Into Expression.
The selected quantity is entered into the Expression area of the Output Variables window.
To insert a function:
- From the Function group box, select a ready-made function on the drop-down menu.
- Click Insert Function into Expression.
The function appears in the Expression area of the Output Variables group box.
-
When the user is finished defining the variable in the Expression field, click Add to add the new variable to the list.
-
Repeat steps 2 through 6 to add additional variables.
-
When the user is finished adding output variables, click Done to close the Output Variables window.
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.