We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
General Mechanical

General Mechanical

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

export pictures and temperature in transient thermal

    • sxj1121
      Subscriber

      Hello, everyone


      For transient thermal analysis in ANSYS Workbench, if I set total time as 120s and the duration as 0.1s, which means it will give me 1200 pictures. How to export those 1200 pictures automatically? Right now, I am using images --> image to file (.jpg) manually for the duration as 1s. But for 0.1s, exporting 1200 pictures manually will take forever.


      Besides, for a box (60*90*10cm), I set the mesh as 1cm. How to export the temperature of every single point on the top surface (60*90 cm, a total of 5,400 points ).


      I am using workbench 2019 R2 now.


      Any help would be appreciated!

    • peteroznewman
      Subscriber

      Hello,


      Let's say you plot the Temperature result for one face.  There is a Graph window under the Graphics window. 
      Use the Animation capability in the Graph window to write out an animation file.


      You could write out all 1200 frames, through that seems like too much data, by using the Result Sets button.
      Or you could just write out 120 frames and have a good animation by using the Distributed button.
      It takes no time to write out this size file. Make the graphics window smaller to reduce file size further.



      The last button I show on the Animation toolbar is the Export Animation File. You can choose between mp4, avi, wmv and gif.
      There are many utilities that can extract out all the individual images from the video frames.
      Choose gif for lossless image compression. ImageJ lets you scroll through the frames of an animated gif.
      You can save any particular frame as a jpg or tiff or other file type.  You can even create 120 windows from the stack.


      Why would you want 120 (or 1200) individual image frames?

    • sxj1121
      Subscriber

      Thank you so much! 


      I noticed that if I export the animation like this, it would take the temperature of the last time step as the reference to set colors (like red, blue, green and so on) of each second. But if I select each time step separately, it would take the temperature of itself as reference. Accordingly, those would give me different pictures. Is there any way to change this? 

    • peteroznewman
      Subscriber

      I assume you want the same fixed color scale for all images. To achieve that, you simply double click on the number below the Maximum in bold and type a number you want like 31 in my case.  Do the same for the number above the minimum, 23 in my case. Now that color scale is fixed for any time you choose in Mechanical.


      If you export the animated GIF, then all frames automatically use the color scale displayed without the need to fix the top and bottom values.

    • sxj1121
      Subscriber

      Thanks, this method works.


      I need such individual images because I need to do image processing such as trend analysis of these.


      By the way, is there any way to export all the temperature of all elements on the surface? Right now, I could convert from the grayscale value of each picture, but it's not accurate enough. Besides, selecting all elements on the surface manually would take too much time.

    • peteroznewman
      Subscriber

      For a temperature result on a face at a specific time, right mouse click on the result in the outline and Export Text File. You will get a text file with five columns for that time: Node number, X-coord, Y-coord, Z-coord, Temperature.


      There is a way to export the temperature for all the Result Sets (all times) using a Command Object. I just don't know the commands to use, but someone reading this discussion should be able to help.

    • sxj1121
      Subscriber

      Thank you so much for your time and consideration!

    • sxj1121
      Subscriber

      I still have questions about how Ansys convert the temperature to the color of the image? This would help me a lot. Thank you very much!

    • peteroznewman
      Subscriber

      You can assign a temperature to the top and bottom of each band. You can add or remove bands, you can assign a color to each band. ANSYS has defaults for all these, but you can override them. After you have defined a temperature range and assigned a color to that band, you are done.


    • sxj1121
      Subscriber

      Thank you so much for your help! Those methods help me a lot!


       


      I am still trying to figure out how to export all sets of results to excel or txt.

    • sxj1121
      Subscriber

      I write the following the code and u0se "insert commands" to insert those into the solution part in Workbench. But the test_vwrite.text only give me the result as follows:


       NODE               0.       0.00000


      The APDL commands are as follows:


      *CFOPEN, test_vwrite, txt


          ASEL,s,topsurface,,,,,1


          NSEL,s,node,,cur_node


          *get,nmax,NODE,0,NUM,MAX


          *get,nmin,NODE,0,NUM,MIN


          *do,i,nmin,nmax


             temp=temp(i)


             *vwrite,'NODE',i,temp


          *endo


      *cfclose

    • Yongchao Cheng
      Subscriber

      Hi, Do you solve this problem? I have the same question as yours. If you solve it, could you please share the solving method to me? Thanks.

    • Yongchao Cheng
      Subscriber

      How can I export all the results to .txt or .xls files automatically? There are thousands of results. If I save the results manually one-by-one, it is terrible for me. Thanks.



       

    • sxj1121
      Subscriber

      Sorry, I did not figure it out. So I exported images manually.

Viewing 13 reply threads
  • The topic ‘export pictures and temperature in transient thermal’ is closed to new replies.