TAGGED: #python-#ironpython, ansys-thermal, mechanical
-
-
April 12, 2024 at 12:03 pm
thermalsr71
SubscriberHello everyone, just a little question.
I have a thermal model in ANSYS Mechanical with a couple of interesting temperature result objects on it. The thing is I'd like to create a Python code object that automatically exports these results every time the simulation is completed (the same way as doing a right-clik ->Export Text File on the interface).
Is there any way of doing that?
Thank you all for your attention
-
April 12, 2024 at 12:53 pm
Erik Kostson
Ansys EmployeeÂ
Hi
See this post that does that – instead of using ExportImage() method just change it to ExportToTextFile()
Â
https://discuss.ansys.com/discussion/comment/2042#Comment_2042?utm_source=community-search&utm_medium=organic-search&utm_term=export+and+python+code
Also this post does that, but instead of ExportImage again use ExportToTextFile - use the code in a Python code object (after post).
https://discuss.ansys.com/discussion/2161/insert-results-and-export-image-and-animation?utm_source=community-search&utm_medium=organic-search&utm_term=Export+and+image
All the best
Â
Erik
Â
-
April 12, 2024 at 12:56 pm
thermalsr71
SubscriberIt worked, thank you Erik once again.
-
April 12, 2024 at 1:21 pm
Erik Kostson
Ansys EmployeeÂ
Â
That is great -I also updated my post with the python code and added a filter for Temperature thermal results :
https://discuss.ansys.com/discussion/2161/insert-results-and-export-image-and-animation?utm_source=community-search&utm_medium=organic-search&utm_term=Export+and+image
All the best
Erik
Â
Â
-
- The topic ‘Export temperature data with Python code object’ is closed to new replies.
-
2342
-
925
-
599
-
591
-
527
© 2025 Copyright ANSYS, Inc. All rights reserved.