Skip to main content
The brilliant Pernelle Marone-Hitz, Lead Application Engineer at Ansys, is back again for this week’s Script Tip to show us how to create and export contact tool results for all time steps. Let’s break down the following scenario: “Using ACT scripting, I would like to create a contact tool pressure result for all contacts with names ending by “YES”. Then I would like to export the contact pressure results to a text file, for each time step.” The following script can be adapted to do this:
  • Define path to where results will be exported:
Reference some necessary items:
  • In connections, find children that are contacts and create a list of these contact regions:
  • From this list, create another list for contacts which name end by “YES”:
  • For contacts in myContactList, create a contact tool / pressure result:
  • Loop on all time steps and export results: