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

Animating Comet results

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2004, 16:34
Default Animating Comet results
  #1
Derek Coon
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?
  Reply With Quote

Old   December 8, 2004, 04:54
Default Re: Animating Comet results
  #2
JBS
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"

  Reply With Quote

Old   December 8, 2004, 18:13
Default Re: Animating Comet results
  #3
Derek Coon
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.
  Reply With Quote

Old   December 9, 2004, 05:15
Default Re: Animating Comet results
  #4
4xF
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...
  Reply With Quote

Old   December 9, 2004, 05:56
Default Re: Animating Comet results
  #5
Jörn Beilke
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");
}
  Reply With Quote

Old   December 9, 2004, 12:51
Default Re: Animating Comet results
  #6
4xF
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...
  Reply With Quote

Old   December 9, 2004, 14:37
Default Re: Animating Comet results
  #7
Jörn Beilke
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.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[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


All times are GMT -4. The time now is 23:49.