Specifying Expressions for Adaptive Convergence

You can specify additional convergence criteria through the use of expressions and output variables. The Max Delta or the Max Percent Delta defined for expression convergence represents the difference in values of the expressions between consecutive adaptive passes. If the difference in the value of the expression between consecutive passes is less than the Max Delta or the Max Percent Delta value this part of the convergence criteria is satisfied.

To set expressions as Convergence criteria:

  1. Double-click the setup icon in the Project tree to open the Solution Setup dialog.
  2. Click the Expression Cache tab in the Solution Setup and click Add... to open the Add to Expression Cache dialog.
  3. Specify the context for the expression you define. For Modal Solution Data, you do not need context other than the Solution. Other selections require more context:
  1. Under the Trace tab, select from the Category, Quantity and Function lists to create expressions.

Selecting a listed category lists the Quantities and Functions available for each category. If you have defined one or more output variables, you can see them listed as Quantities by selecting the Output Variables Category. The Output Variables button opens a dialog that lets you define additional output variables.

When you have created an expression, it appears in the Expression field of the Trace tab. If desired, you can use the Range Function button to select range functions to apply to the expression.

Under the Calculation Range tab, you can view the values of available sweep variables. Clicking the ellipsis [...] button in the Edit column opens a list of values.

  1. When you have created an expression that you want to add to the cache, click Add Calculation.

This adds the selected expression and the associated context to a table in the Expression Cache tab. You can select any additional expressions with contexts and add them in the same way.

  1. When you have added the expressions you want, click Done to close the Add to Expression Cache dialog.

The Expression Cache tab of the Solution Setup lists the expressions you have added as a table.
Driven Solution Setup dialog, Expression Cache  tab.

To excite particular sources for particular output variables, you can assign a post process variable to the magnitude of sources you might want to edit, and assign the expression value in the Expression Cache. With PP Variables, you can control convergence based on several combinations of active sources.

  1. To designate one or more expressions for convergence, click the field for the Convergence column for each expression.

This opens an Adaptive Convergence dialog.
Adaptive Convergence dialog.

Check Use this expression for convergence to enable the radio buttons. You can then specify the Max Delta between passes or the Max Percent Delta criteria. The Max Delta solves a potential issue if your expression is essentially zero and the numeric noise from pass to pass causes the maximum percentage delta to remain high. In that case adaptive refinement continues until you get to the maximum number of passes.

  1. Click OK to close the Solution Setup dialog.
Related Topics:

Viewing Convergence Data

Specifying Output Variables