Skip to main content
Welcome back to Script Tip Friday! This week, Vishnu Venkataraman, a Senior Application Engineer at Ansys, shows us how to sum damage results by creating your own field using DPF. “In this article, I tackle the task of summing damage results by creating your own field using DPF. You can use the similar method to sum or manipulate contour results from multiple result objects. This particle example shows how to sum the damage results from 2 damage result objects and plot them using python results. (Thanks to Sascha and Pierre. This script is adapted from their scripts.) In this example we create our own scalar field and populate the data and id and use the created scalar fields to plot. The algorithm is like below: Your sample code will look like below: I am getting damage result objects by name “damage”. Please change that line according to your case.

Summation of 2 damage results

We also have a recording available for all who missed our hit Webinar, Scripting Hacks: Automating Repetitive Tasks in Ansys Mechanical. To access that recording, click here: Scripting Hacks Webinar