+47 67 57 21 00
ANSYS Tutorial: User Defined Results, Part 2
ANSYS Workbench Tutorial: As we discussed in one of our previous blog article, we can set User Definer Results from ANSYS V12.0. The function of User Defined Results extends dramatically the postprocessing capability in Workbench. In this article we would like to present how to extract more complicated results with the help of Expression and Identifier in User Defined Results.
Assume we want to do some operations on the principal stresses and get such a result:
Usually we have to do such postprocessing in MAPDL (formerly ANSYS) with the help of array. But from ANSYS V12.0, it could be done easily in Workbench. Here we will use the same simple model as in the previous article to demonstrate how to do it.
First we set in three User defined Results with suitable expressions and identifiers
In these expressions, s1, s2 and s3 are ANSYS default expressions for the three principal stresses. Expression under Users Defined Result supports the following syntax:
- Operands: ( ‘+’, ‘-‘,’*’, ‘/’, ‘^’)
- Functions: (sqrt(), min()…) - always use lower case
- Numbers: (scalar quantities such as 1.0, 25, -314.23, or 2.5e12)
- Identifiers: unique user defined names
In ANSYS Help there are detailed descriptions on supported mathematical operations. Here is the path:
// Mechanical (formerly Simulation) // Using the Mechanical Application Features // Results in the Mechanical Application // Results Related Topics // Result Outputs // User Defined Results // User Defined Result Expressions
Identifiers are something like parameters in MAPDL. Such as in the first figure, we first do some operations on s1 and s2: abs(s1-s2) and assign the resulting values to abss12. In MAPDL, we have to assign values to a parameter before using it. But in Workbench, we can utilize an identifier in a User Defined Results before the identifier is defined.
Now we set the fourth User Defined Result to get the final results:
And here are contour plots for each User defined Results:
In this result operation identifiers are not indispensable and we can set a direct expression as in the following figure. But identifiers help us to define the expression clearly and more logically. In other situations, such as result will be used several times, identifiers will also be very helpful.
Do you want to learn more?
Please contact ANSYS Technical Support at EDR on +47 6757 2120 for technical questions, or ask for a sales representative for questions about licensing.
...or simply send us your contact information and we will get back to you:
You will also find more tutorials in our ANSYS Blog!



