CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Write animation file (http://www.cfd-online.com/Forums/fluent/40051-write-animation-file.html)

EA March 9, 2006 04:06

Write animation file
 
I can play the animation in fluent. When I write it to MPEG file, I got the following error message

CX_Hardcopy_Window: error opening PPM file .\pressure_1_0000.ppm. CX_Hardcopy_Window: error opening PPM file .\pressure_1_0001.ppm. CX_Hardcopy_Window: error opening PPM file .\pressure_1_0002.ppm. CX_Hardcopy_Window: error opening PPM file .\pressure_1_0003.ppm. CX_Hardcopy_Window: error opening PPM file .\pressure_1_0004.ppm. ...

cxa file

AnimationSequence1.0 NAME: .\pressure WINID: 0 STORAGE: 2 FRAMES: 200 Frame 0 2 pressure_0000.hmf 0 Frame 1 2 pressure_0001.hmf 0 ...

Thanks.

edi March 9, 2006 05:41

Re: Write animation file
 
What's your OS? Linux/Unix or Windows? If Linux, it often simply doesn't work, guys from the support told me it is a bug. You can save your frames as jpgs or tiffs one by one with a journal and then join them with an external application. If Windows, a friend of mine had a similar problem some time ago solved moving a configuration file, but I don't remember any detail...sorry.

Edi.

Jiri Novak March 9, 2006 07:34

Re: Write animation file
 
...having this problem with exactly the same error (Linux Suse 10), I am looking for some external software for completing the particular JPGs into the one animation (AVI or GIF). Does anyone know any handsome animator for Linux?

EA March 9, 2006 07:54

Re: Write animation file
 
I'm using windows. Is there any software that can open hmf files directly? I'm not familiar with journal. Would you mind giving a simple example?

Thanks a lot.

Mario March 9, 2006 10:50

Re: Write animation file
 
I use ImageMagic (freeware) under linux to create gif-animations. First you have to convert jpg to gif and then merge the gif-pictures into a single gif animation. Here's the site: http://www.imagemagick.org and some more examples of the usage: http://www.cit.gu.edu.au/~anthony/graphics/imagick6


edi March 9, 2006 12:43

Re: Write animation file
 
I searched once on the web for a .hmf viewer for free, but I didn't find anything, if you will be luckier, please let me know...here a simple example of a jou that saves ps files with a little annotation from hmf files written during a transient simulation. I think it doesn't need any comment, it just push buttons instead of me...

(define j 0.02)

(cx-annotate '(1.29904 -0.479065 -0.050389) '(1.29904 -0.479065 -0.050389) "<*" (format #f "t=~ds" j))

(cx-gui-do cx-activate-item "Graphics Hardcopy*PanelButtons*PushButton1(OK)") (cx-gui-do cx-set-text-entry "Select File*FilterText" "*.ps") (cx-gui-do cx-activate-item "Select File*Apply") (cx-gui-do cx-set-text-entry "Select File*Text" "000.ps") (cx-gui-do cx-activate-item "Select File*OK")

(do ((i 1 (+ i 1))) ((= i 212))

(cx-gui-do cx-activate-item "Playback*Frame1(Playback)*ButtonBox6*PushButton5( step_forward)")

(set! j (+ 0.02 (* 0.02 i))) (cx-annotate '(1.29904 -0.479065 -0.050389) '(1.29904 -0.479065 -0.050389) "<*" (format #f "t=~ds" j))

(cx-gui-do cx-activate-item "Graphics Hardcopy*PanelButtons*PushButton1(OK)") (cx-gui-do cx-set-text-entry "Select File*FilterText" "*.ps") (cx-gui-do cx-activate-item "Select File*Apply") (cx-gui-do cx-set-text-entry "Select File*Text" (format #f "~03d.ps" i)) (cx-gui-do cx-activate-item "Select File*OK")

)

For creating animation under windows, I like makeavi very much http://makeavi.sourceforge.net/

Hope this helps

Edi.


Shanti March 9, 2006 13:04

Re: Write animation file
 
In what format did you save when you defined the animation sequence? It should be PPM format.

Jiri Novak March 9, 2006 14:00

Re: Write animation file
 
Do you ran any batch file in your working directory or simply write commands from bash? If first, i hope you wouldn't get annoyed if i ask for that batch file providing converting+merging JPEGs into one GIF. That helps me save time.. Thank You!

EA March 10, 2006 01:00

Re: Write animation file
 
I chose metafile

Mario March 10, 2006 04:37

Re: Write animation file
 
@Jiri Novak

Hardcopying jpg-pictures from fluent is done by a linux script. converting jpg to gif and merging them to a single gif animation is done by two shell comands ("mogrify" and "convert") provided by Imagemagic.

EA March 10, 2006 05:34

Re: Write animation file
 
Thanks. But I am using windows version of fluent

EA March 10, 2006 11:40

Re: Write animation file
 
Thanks a lot!

Shanti March 10, 2006 12:44

Re: Write animation file
 
It should be PPM file. Then we can write the animation file.

EA March 10, 2006 23:28

Re: Write animation file
 
Thank you. I found out that the problem occurs when I close fluent and reload the animation sequence. If I write MPEG immediately after recording, there is no such error.


All times are GMT -4. The time now is 20:57.