|
[Sponsors] |
December 6, 2004, 16:34 |
Animating Comet results
|
#1 |
Guest
Posts: n/a
|
As far as I know the only graphical output format for Comet is 'ps' which is very limited in use. I am trying to be able to animate the free surface results I am getting. Anybody develop a system?
|
|
December 8, 2004, 04:54 |
Re: Animating Comet results
|
#2 |
Guest
Posts: n/a
|
I was told that linux distributions contain a tool that directly converts ps to mpg. If someone knows a tools for windows or HP-UX system please let me know.
I use to write out ngeom and npost files from Comet an with provis in expert mode you can batch process all time steps. unfortunately provis' expert mode is not officially supported, so you have look at the echo file. prepare your provis scene (sections, streamlines ...) and ifile a script like this (sample for two time steps only) mesh,read,ngeom,"0025.ngeom" post,read,npost,"0025.npost" update scdu,gif,"0025.gif" mesh,read,ngeom,"0030.ngeom" post,read,npost,"0030.npost" update scdu,gif,"0030.gif" |
|
December 8, 2004, 18:13 |
Re: Animating Comet results
|
#3 |
Guest
Posts: n/a
|
Thanks so much JBS. I was un-aware of provis (until now). I wrote the files to make the npost files and then read them. Labor intensive, but better than what I had.
GIMP can turn a 'ps' file into a jpeg, but I don't know if it can make mpegs. |
|
December 9, 2004, 05:15 |
Re: Animating Comet results
|
#4 |
Guest
Posts: n/a
|
This is how I proceed to create the animations from the Comet results. 1) Generate a script that creates you from the scan of the results directories an input file for Cometpp. This is quite labor intensive for the first time, quite easy afterwards) 2) Run the Cometpp script and dump out the ps-files. 3) Convert them using gs (Ghostscript) into ppm-files after having rotated the Postcript file. 4) Use the mpeg_encode executable from the Berkeley University to create the mpeg-animations.
This is a quite short notice. Check at your local support office for the methodology, they ahve the same but much more detailed with a small example. If not, come back to me, I can send you some example files via email. Take care... |
|
December 9, 2004, 05:56 |
Re: Animating Comet results
|
#5 |
Guest
Posts: n/a
|
A good tool for converting ps to png or gif is "pstoimg" which comes with the latex2html-package. Here you can scale the final image, make is transparent ...
Just use some scripting for converting lots of files: #!/usr/bin/perl @ps_files = <*.ps>; foreach $file (@ps_files) { ($part) = ($file =~ /(.*).ps/); # base filename system("pstoimg $file -type png -scale 2"); } |
|
December 9, 2004, 12:51 |
Re: Animating Comet results
|
#6 |
Guest
Posts: n/a
|
And then make an animated GIF outof it with the whirlgif tool (if you don't have it, google it!) Have fun...
|
|
December 9, 2004, 14:37 |
Re: Animating Comet results
|
#7 |
Guest
Posts: n/a
|
For that I use my old Indigo2. At first the png's are converted to rgb and then there is dmconvert or movieconvert. Quicktime with RLE is my favorite. It is loosless compression and runs at all platforms.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Animating Lagrangian Particles in ParaView | xiao | ParaView | 4 | April 8, 2008 02:24 |
Animating a solution - help badly needed | Dave | FLUENT | 11 | August 20, 2007 05:00 |
error when animating | Ralf Schmidt | FLUENT | 1 | April 18, 2007 09:11 |
Animating VIV around 2D cylinder | Dash Swift | FLUENT | 0 | August 19, 2006 20:19 |
animating unsteady flows | phil | FLUENT | 2 | December 2, 2002 05:07 |