Using the Fields Calculator
The Fields Calculator is a very powerful tool for postprocessing. It is available for HFSS, Maxwell, Q3D, Icepak, and Mechanical solutions. While standard postprocessed results (such as S-parameters, Y or Z matrix, animated field plots, and near and far field patterns) serve most simulation requirements, the Fields Calculator enables you to perform further computations using basic field quantities. The calculator computes derived quantities from the general electric, thermal, or displacement field solution; writes field quantities to files; locates maximum and minimum field values; and performs other operations on the field solution. Using this calculator, you can perform mathematical operations on all saved field data in the modeled geometry at a single frequency. The resulting quantities can be plotted, tabulated, or exported.
The Fields Calculator includes predefined expressions appropriate for each solver and lets you create and save additional named expressions.
To view information on a command or screen area, click over the button or screen area on the illustration below.
At the top-left corner of the calculator is a list of Named Expressions, which are standard or user-defined field quantities that are accessible from outside of the calculator. They can be added, copied to stack, saved to, or loaded from a library file using the buttons right beneath the list.
At the lower-left corner of the calculator is the solution Context section, in which you can select the desired solutions, field types, frequency, and phase for the current session.
The top-right of the calculator contains the Data field, in which calculator entries are held in stack registers. The data type in the Data field is denoted by its prefix abbreviation.
Immediately beneath the stack is the row of Stack Command buttons that define some basic operations for the data in the Data Stack.
The bottom half of the calculator holds the columns containing the actual calculator buttons, organized into columns, classifying them by the type of operation and the type of data upon which the operation can be performed. These columns are headed Input, General, Scalar, Vector, and Output.
At the very bottom of the calculator is the button to exit, Done. The Fields Calculator interface is discussed in detail in subsequent sections.
The calculator does not perform the computations until a value is needed or is forced for a result. This makes it more efficient, saving computing resources and time; you can do all the calculations without regard to data storage of all the calculated points of the field. It is generally easier to do all the calculations first, then plot the results.
With the Show Algebraic option, users can create custom field quantities using algebraic expressions. Users can enter equations directly in the Data field, which is now editable. The text entered is in black when it parses and red when it does not. The Stack Command buttons can also be used to define an algebraic expression; the input text will be inserted at the current insert point in the Data field.
An algebraic expression can be saved in the Named Expressions list. If Show Algebraic is selected, all the named expressions will be listed in algebraic format. If Show Stack is selected, the named expressions will be listed in stack format.
The Show Algebraic option is only available if the user has activated the Maxwell Support Expression Input in Fields Calculator option has been selected in the Beta Options window:
This window is accessed from Tools > Options > General Options menu; in the window that opens, click Beta Options.
Scripting Support
All calculator operations are fully scriptable. You can save the commands used in a Fields Calculator session by first clicking the Tools > Record Script to File menu and replay the same commands by clicking the Tools > Run Script menu in a later session.
For more information on scripting for the Fields Calculator, see Fields Calculator Scripting Commands.
Related Topics
Calculating Derived Output Quantities
Using the Fields Calculator with a Layout Component in the Design