Named Expression Library

The named expression library in the Fields Calculator provides a way to conveniently calculate frequently used quantities. Some standard field quantities have been pre-defined and are always accessible. These field quantities have a gray background color and cannot be deleted. You can assign a name to the top entry of Data Stack and add it in the Named Expression list. The library comes with several predefined expressions. Once these new expressions are added/loaded, they are available through HFSS’s standard post-process capabilities. For example, they can be copied back to the Data Stack in calculator by Copy to Stack for further operations, or be plotted using Report Editor and Field Overlay.

You can combine calculator Input commands in any legal fashion, including complex quantities, to produce new named expressions.

To add a named expression of your own to the Fields Calculator list:

  1. In the register display area, create the expression by using the calculator Input commands.

    You can combine input commands in any legal fashion, including the use of complex quantities. If you select an input command that is not legal for a current operation, you receive an error message.

  2. When you finish creating the expression, click Add in the Named Expressions panel.

    The Named Expression dialog box appears.

  3. Type a name for the expression in the Name text box.

    The new expression is added to the list of named expressions.

To copy a named expressions to the Calculator Stack:

To delete named expressions that you added:

When the Named Expression list contains one or more user-defined expressions, the Delete and Clear All buttons are active. (You cannot delete or clear the predefined named expressions.)

To save one or more named expressions for the Fields Calculator to a personal Library:

  1. Click Save To on the Fields Calculator.

    The Select Expressions for Saving dialog box displays.

  2. If any new named expressions exist, you can select one or more to save to a file.
  3. Specify a file name and click OK to save the file.

To load named expressions for the Fields Calculator from a personal library:

  1. From the Fields Calculator, click Load From.

    This displays a file browser that you can use to search for existing .clc files.

  2. Select the library to load and click OK.

    This loads the expression file you have selected.