TAGGED: #python-#ironpython, ansys-thermal, mechanical
-
-
April 12, 2024 at 12:03 pmthermalsr71Subscriber
Hello 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 pmErik KostsonAnsys 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 pmthermalsr71Subscriber
It worked, thank you Erik once again.
-
April 12, 2024 at 1:21 pmErik KostsonAnsys 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.
- Ayuda con Error: “Unable to access the source: EngineeringData”
- 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
- How to select the interface delamination surface of a laminate?
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- SMART crack under fatigue conditions, different crack sizes can’t growth
- Frictional No separation contact
-
1281
-
591
-
544
-
524
-
366
© 2024 Copyright ANSYS, Inc. All rights reserved.