# HV-3099: Create Derived Results

Learn how to create derived results.

This exercise uses the cwing.xml file located in the animation folder as both the model and results file.
In this tutorial you will:
• Create and contour a new scalar result
• Create and contour a new tensor result type
• Create a new result type which is locked to a particular Load Case
To access the Derived Results Expression Builder:
• Click the Derived Results button on the Result toolbar.

OR

• Select Create > Derived Results from the menu bar.

The Derived Results Expression Builder allows you to perform math operations on the scalar and tensor results types that are available in the result file. See the Expression Builder topic for additional information.

## Create a Scalar Derived Result

1. Load the cwing.xml file, located in the animation folder.
2. In the Results Browser, expand the folders for Results, Tensors, and then Stress.
3. Right click on P1 (major) and select Create > Derived Result.
Note: In the Table and Table component fields, Stress and P1 (major) are already selected. This is because Derived Result was selected from a result in the Results Browser. If a result was not selected, or if the Derived Result Expression Builder was launched from the icon on the toolbar , the first result listed in the result file would be loaded.
4. Enter Stress Amplitude for the Label.
5. In the Table field, leave Stress as the selection. Also, for the Table component, leave P1 (major) selected. Click Insert to add the P1 (major) stress to the expression.
In the Expression field, T3.C7 is entered. This is the short hand notation that HyperView uses for this result.
6. In the Expression field, after T3.C7, enter a minus sign (-).
7. For Table component, select P3 (minor) and then click Insert.
8. Update the Expression by adding abs( before T3.C7.
9. Finish updating the Expression by adding )/2 after T3.C9 so that the complete expression reads as shown below:
10. Uncheck the option for Display alias.
This displays the Expression with the full component names. While it is easy to read in this example, viewing the full component names in the Expression can be hard to read when more complicated equations are used.
11. Check the option for Display alias and then click Apply.
Note: Do not close the dialog as we will use the icon to create another derived result.

## Create a Tensor Derived Result

1. In the Expression Builder, click the icon located to the right of the Label field.
2. Enter Double Stress for the Label.
3. For Table, select Stress.
4. Click Insert to add Stress to the Expression.
5. In the Expression field, type *2.0 so that the expression is as shown below:
6. Click OK.

## Plot the Two Derived Results

1. Within the Results Browser, expand the folders for Results and Scalars.
2. Next to Stress Amplitude, click the contour icon to apply a contour to the model in the graphics window with the new result:
3. Next, within the Results Browser, under Results, expand the folder for Tensors.
Note: There is now a new Tensor called Double Stress.
4. Expand the folder for Double Stress.

HyperView determines if the new result type is a tensor or scalar and then lists the new result in the appropriate folder in the Results Browser.

5. Click the contour icon next to any of the components (for example, vonMises to apply a contour in the graphics window with the new result.

## Created a Derived Results for a Specific Load Case

1. In the Results Browser, expand the Scalar folder and select the icon next to Stress Amplitude to create a contour plot.
2. Also in the Results Browser, change the subcase by clicking on SUBCASE 1 = Load Case 1: Max Torque, and SUBCASE 2 = Load Case 2: Min Torque.
Note: The contour changes to reflect the updated subcase.
3. Next we will create a Derived Result that references a specific subcase. Right-click in the white area of the Results Browser and select Create > Derived Result.
4. In the Expression Builder, enter Stress Difference for the Label.
5. Under Select, click the downwards pointing arrows next to Show All.

This shows all the options available for the selected results. This includes specifying a specific Loadcase and Frame.

6. For Table, select Stress.
7. For Table component, select vonMises.
8. For Layer and Resource leave the default values.
9. For Loadcase and Frame, leave the value set to Current.
10. Click Insert to add the result to the Expression.
11. Add a minus sign - to the Expression after T3.C11.
12. Next, a specific Loadcase will be specified for the vonMises stress value. Update the Loadcase field to SUBCASE 1 = Load Case 1: Max Torque and then click Insert.
13. In the Expression field, add 100*( to the beginning of the expression.
14. At the end of the expression, add )/T3.C11.
1. Verify that the expression in the Expression field is as shown below:
15. Click OK.
16. Using the Results Browser, expand the Scalar folder and select the icon next to Stress Difference to contour the model.
17. Update the subcase to SUBCASE 1 = Load Case1: Max Torque.
Note: All the values are zero. This is because the expression in the Stress Difference result subtracts the vonMises Stress from Subcase 1 from the Current Subcase, which in this case is also Subcase 1.