|
[Sponsors] |
March 9, 2006, 04:06 |
Write animation file
|
#1 |
Guest
Posts: n/a
|
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. |
|
March 9, 2006, 05:41 |
Re: Write animation file
|
#2 |
Guest
Posts: n/a
|
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. |
|
March 9, 2006, 07:34 |
Re: Write animation file
|
#3 |
Guest
Posts: n/a
|
...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?
|
|
March 9, 2006, 07:54 |
Re: Write animation file
|
#4 |
Guest
Posts: n/a
|
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. |
|
March 9, 2006, 10:50 |
Re: Write animation file
|
#5 |
Guest
Posts: n/a
|
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
|
|
March 9, 2006, 12:43 |
Re: Write animation file
|
#6 |
Guest
Posts: n/a
|
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. |
|
March 9, 2006, 13:04 |
Re: Write animation file
|
#7 |
Guest
Posts: n/a
|
In what format did you save when you defined the animation sequence? It should be PPM format.
|
|
March 9, 2006, 14:00 |
Re: Write animation file
|
#8 |
Guest
Posts: n/a
|
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!
|
|
March 10, 2006, 01:00 |
Re: Write animation file
|
#9 |
Guest
Posts: n/a
|
I chose metafile
|
|
March 10, 2006, 04:37 |
Re: Write animation file
|
#10 |
Guest
Posts: n/a
|
@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. |
|
March 10, 2006, 05:34 |
Re: Write animation file
|
#11 |
Guest
Posts: n/a
|
Thanks. But I am using windows version of fluent
|
|
March 10, 2006, 11:40 |
Re: Write animation file
|
#12 |
Guest
Posts: n/a
|
Thanks a lot!
|
|
March 10, 2006, 12:44 |
Re: Write animation file
|
#13 |
Guest
Posts: n/a
|
It should be PPM file. Then we can write the animation file.
|
|
March 10, 2006, 23:28 |
Re: Write animation file
|
#14 |
Guest
Posts: n/a
|
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
tecio compilation errors in latest 1.6.x | rsamuel | OpenFOAM Bugs | 2 | June 25, 2021 09:10 |
2.0.x on Mac OSX | niklas | OpenFOAM Installation | 74 | March 28, 2012 17:46 |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 05:43 |
gcc and executable file from Mac to Linux | simone Marras | Main CFD Forum | 0 | April 8, 2007 16:49 |