We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Export temperature data with Python code object

    • thermalsr71
      Subscriber

      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

    • 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

       

    • thermalsr71
      Subscriber

      It worked, thank you Erik once again.

    • 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

       

       

Viewing 3 reply threads
  • The topic ‘Export temperature data with Python code object’ is closed to new replies.