The Expressions details view contains the following tabs:
You can access lists of variables, expressions, locators, functions and constants by right-clicking in the definition window when defining an expression. Although valid values can be chosen from each of the various lists, the validity of the expression itself is not checked until you click CEL Operators, Constants, and Expressions and CFX Expression Language (CEL) in CFD-Post.
. For details, seeAny expressions not containing variables are evaluated when you click
.Enter the definition of a new expression or edit the definition of an existing expression in the Definition text field.
For details, see CFX Expression Language (CEL).
The value of the expression is shown in the Value field.
Click
to restore the expression to the definition stored in the database.Use this to undo changes that have not yet been applied.
Click Definition box.
to commit any changes or entries made in the
After you have defined an expression, you can right-click it to make it a parameter for use in a Design Exploration:
You may choose Use as Workbench output parameter.
If the expression will not influence CFX-Pre, you may choose Use as Workbench input parameter. Note that this is not a common situation.
If the expression will influence CFX-Pre, you must use the Expression shortcut menu in CFX-Pre to make the expression an Ansys Workbench input parameter.
The Plot tab enables you to plot an expression for a range of one of its variables with the other variables (if there are any others) held constant.
If you have multiple cases loaded and an expression that applies to only one case highlighted, specify the Case.
Choose the number of sample data points (# of Points) of the expression that you would like plotted.
Select the independent variable (X) of the expression for use in the plot.
Specify a Range for this variable in the plot.
All other values are constant (their check boxes cannot also be checked). Enter fixed values for them.
Click Plot Expression to view the plot.
After viewing the chart, you may click Define Plot to return the Plot tab to its previous state (which shows the plot settings).
The Evaluate tab is provided to help you verify that the expression highlighted in the Expression tree view is set up correctly. To evaluate an expression:
If you have multiple cases loaded and a locator-based function (such as "areaAve(Pressure)@outlet") highlighted, specify the Case in which you want the expression evaluated.
If the expression requires that you provide values, type them in.
Click
.The value of the expression is displayed in the Value field.