-
-
February 24, 2023 at 3:21 pmm.vp2209Subscriber
Hello,
I am trying to automate a workflow in Workbench and would be grateful for some ideas.
At the moment my simulation solves several transient thermal analyses, in which the solution temperature distrubution of an analysis A is imported an initial condition for the next B analysis. The geometry is not the same and therefore I am importing the initial temperature condition via an external data block in WB.
This process is very tedious to do manually and I have managed to create a button using ACT Scriptting in Mechanical to export my temeprature profiles to txt files. But now I have to press the button manually everytime the solution is obtained. Is there a way to make Mechanical export the data directly without me pressing a button?
Then for the other task, which is creating and setting up the external data files I have also created a scrip using ACT. I wrote my python script and then make WB read it. This means that I have to read my scrip everytime an analysis is finishes and I want this operation to be performed.
Is there a way of making workbench solve my mechanical system A, save the results to txt (without me pressing a button) and directly creating the external data for mechanical system B?
To this, is there a way to "enter" mechanical via the python scripting of WB? So I could develop a code that first saves the txt files in system A and directly generates the external data block and imports loads into system B.
Thanks in advance!
-
February 24, 2023 at 3:48 pmErik KostsonAnsys Employee
Â
Hi
Â
Below is something that might be of help using Workbench scripting and calling Mechanical from there.
https://www.linkedin.com/pulse/script-tip-friday-automate-imported-loads-set-up-?trk=pulse-article_more-articles_related-content-card
Â
All the best
Â
Erik
Â
-
- The topic ‘ACT Workbench Automation Multiple Analyses’ is closed to new replies.
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- How to apply Compression-only Support?
- Geometric stiffness matrix for solid elements
- Frictional No separation contact
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- Script Error Code:800a000d
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
-
1411
-
599
-
591
-
555
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.