-
-
August 23, 2019 at 7:58 pm
sxj1121
SubscriberHello, 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!
-
August 25, 2019 at 2:05 am
peteroznewman
SubscriberHello,
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?
-
August 25, 2019 at 3:53 am
sxj1121
SubscriberThank 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?Â
-
August 25, 2019 at 1:55 pm
peteroznewman
SubscriberI 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.
-
August 25, 2019 at 6:48 pm
sxj1121
SubscriberThanks, 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.
-
August 25, 2019 at 8:49 pm
peteroznewman
SubscriberFor 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.
-
August 26, 2019 at 1:22 am
sxj1121
SubscriberThank you so much for your time and consideration!
-
August 26, 2019 at 11:18 pm
sxj1121
SubscriberI 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!
-
August 27, 2019 at 12:16 am
peteroznewman
Subscriber -
August 28, 2019 at 7:07 pm
sxj1121
SubscriberThank 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.
-
September 6, 2019 at 4:38 pm
sxj1121
SubscriberI 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
-
April 26, 2020 at 8:50 pm
Yongchao Cheng
SubscriberHi, 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.
-
April 26, 2020 at 8:58 pm
-
April 27, 2020 at 1:49 pm
sxj1121
SubscriberSorry, I did not figure it out. So I exported images manually.
-
- The topic ‘export pictures and temperature in transient thermal’ is closed to new replies.
-
3276
-
1036
-
1004
-
859
-
798
© 2025 Copyright ANSYS, Inc. All rights reserved.