CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Making Animation

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

Like Tree2Likes
  • 1 Post By linnemann
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   March 4, 2010, 22:14
Default Making Animation
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 8
ata is on a distinguished road
Hi FOAMers
I run dam break tutorial of OpenFOAM. How could I make an animation for surface of fluid in time with paraview?
Any help will be appreciated.
All the best
ata is offline   Reply With Quote

Old   March 5, 2010, 02:53
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 442
Rep Power: 13
linnemann will become famous soon enough
Hi

Create a contour which is based on gamma and set the value to 0.99 or 0.01 depending on gamma = 1 water or gamma = 0 water.

Hope this helps.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   March 6, 2010, 00:19
Default Making Animation
  #3
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 8
ata is on a distinguished road
Hi Niels Nielsen
Thank you very much for your reply but I want to make an animation not a picture.
Thanks
ata is offline   Reply With Quote

Old   March 6, 2010, 05:24
Default
  #4
Member
 
KGN
Join Date: Oct 2009
Location: Chennai, India
Posts: 95
Rep Power: 7
mecbe2002 is on a distinguished road
Hi,
First you create contours for say 20 time steps. Then use ImageMagick package to convert the jpeg to mpeg.

you ref to page U-165 of UserGuide
mecbe2002 is offline   Reply With Quote

Old   March 6, 2010, 05:46
Default
  #5
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 8
ata is on a distinguished road
Hi mecbe
Thank you very much.
Best regards
ata is offline   Reply With Quote

Old   March 8, 2010, 03:29
Default
  #6
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 442
Rep Power: 13
linnemann will become famous soon enough
Hi

You could also build paraview with ffmpeg support and be able to export directly to avi.

you need the right version of ffmpeg from here
immortality likes this.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   March 10, 2010, 03:54
Default
  #7
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 8
ata is on a distinguished road
Hi linnemann
thank you very much but I don not understand your guid. Is it for windows OS?
and
when I run dam break tutorial an try to convert jpg files according to users guide pdf file I got this error:
execvp failed, errno = 2 (No such file or directory)
convert: "mpeg2encode" "/tmp/gmL2nNc9" "movie.mpg".
convert: Delegate failed ("mpeg2encode" "%i" "%o").

Could any one help me?
Thanks
ata is offline   Reply With Quote

Old   March 10, 2010, 04:48
Default
  #8
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,554
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi

I would suggest that you use ffmpeg, not necessarily as a build in functionality in paraFoam. My experience is that ffmpeg is faster and uses less memory than older versions of convert (newer versions rely on ffmpeg).

One comment on ffmpeg, be sure to use the "-b Nk" option, with N being large, e.g. 20000, as it specifies the maximum bit rate, and the default is so low that it results in movies of an awful quality.

Best regards,

Niels
ngj is offline   Reply With Quote

Old   March 10, 2010, 07:44
Default Making Animation
  #9
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 8
ata is on a distinguished road
Hi Niels Gjoel Jacobsen
Thank you very much for your reply. I have two problems.
1. According to read me file of ffmpeg when I type
Code:
 cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
in terminal I got this error:
Code:
 connect to mplayerhq.hu:2401 failed: Connection refusedata@ata-laptop:~$
2. Always I want to build paraview from its source it does not work correctly. So I install paraview via synaptic package manager but in red me file has been written:
7) Finally rebuild VTK or ParaView.
Is it possible for me not to rebuild paraview?
Could you or any one help me?
Thanks
Best regards

Last edited by wyldckat; September 14, 2013 at 09:05. Reason: Added [CODE][/CODE]
ata is offline   Reply With Quote

Old   September 14, 2013, 07:01
Default
  #10
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,173
Rep Power: 16
immortality is on a distinguished road
Hi
what do mean "Frame rate(fps)" and "No.Of Frames/timestep" in CFD cases?
there is frame rate (-r option) in ffmpeg too,whats difference between this option and frameRate that is specified in paraview for making images?
which values is better and why?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 14, 2013, 09:04
Default
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,706
Blog Entries: 33
Rep Power: 75
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all!

@Ehsan
Quote:
Originally Posted by immortality View Post
what do mean "Frame rate(fps)" and "No.Of Frames/timestep" in CFD cases?
there is frame rate (-r option) in ffmpeg too,whats difference between this option and frameRate that is specified in paraview for making images?
which values is better and why?
So, let me try to explain this in a simple way:
  1. A frame in movies is a single picture (or image).
  2. FPS means "Frames Per Second".
  3. Frames per Timestep depends the type of simulation you're performing (steady-state vs transient), but in transient this equates to the following example:
    1. You have a simulation that has 2.0 seconds of real time simulation (which probably took several hours to simulate).
    2. You chose to only save every 0.1s of real time - this is the referred time step.
    3. This means that you have 21 frames with unique data, which includes the 0s time step.
  4. As for the best value, the paradigm is simple: how fast do you want people to see your simulation?
    • If you want the simulation to be shown in real time, you only need 10 frames per second, because you only have 10 frames of unique data to represent.
    • If you want people to see the simulation more slowly than real time, for example to show 2.0s displayed in 10.0s, then this means that you want 1/5 th of the frame rate, namely 2 frames per second (10 real fps * 1/5 = 2).
I hope this makes things a lot clearer.

Best regards,
Bruno
immortality likes this.

Last edited by wyldckat; September 14, 2013 at 12:05.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
Making animation (URGENT)! Matej CFX 3 August 24, 2004 05:15


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