CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Write animation file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2006, 04:06
Default Write animation file
  #1
EA
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.
  Reply With Quote

Old   March 9, 2006, 05:41
Default Re: Write animation file
  #2
edi
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.
  Reply With Quote

Old   March 9, 2006, 07:34
Default Re: Write animation file
  #3
Jiri Novak
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?
  Reply With Quote

Old   March 9, 2006, 07:54
Default Re: Write animation file
  #4
EA
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.
  Reply With Quote

Old   March 9, 2006, 10:50
Default Re: Write animation file
  #5
Mario
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

  Reply With Quote

Old   March 9, 2006, 12:43
Default Re: Write animation file
  #6
edi
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.

  Reply With Quote

Old   March 9, 2006, 13:04
Default Re: Write animation file
  #7
Shanti
Guest
 
Posts: n/a
In what format did you save when you defined the animation sequence? It should be PPM format.
  Reply With Quote

Old   March 9, 2006, 14:00
Default Re: Write animation file
  #8
Jiri Novak
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!
  Reply With Quote

Old   March 10, 2006, 01:00
Default Re: Write animation file
  #9
EA
Guest
 
Posts: n/a
I chose metafile
  Reply With Quote

Old   March 10, 2006, 04:37
Default Re: Write animation file
  #10
Mario
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.
  Reply With Quote

Old   March 10, 2006, 05:34
Default Re: Write animation file
  #11
EA
Guest
 
Posts: n/a
Thanks. But I am using windows version of fluent
  Reply With Quote

Old   March 10, 2006, 11:40
Default Re: Write animation file
  #12
EA
Guest
 
Posts: n/a
Thanks a lot!
  Reply With Quote

Old   March 10, 2006, 12:44
Default Re: Write animation file
  #13
Shanti
Guest
 
Posts: n/a
It should be PPM file. Then we can write the animation file.
  Reply With Quote

Old   March 10, 2006, 23:28
Default Re: Write animation file
  #14
EA
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.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:11.