CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Making Animation

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By linnemann
  • 3 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2010, 21:14
Default Making Animation
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
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, 01:53
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
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 5, 2010, 23:19
Default Making Animation
  #3
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
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, 04:24
Default
  #4
Senior Member
 
KGN
Join Date: Oct 2009
Location: Chennai, India
Posts: 121
Rep Power: 16
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, 04:46
Default
  #5
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Hi mecbe
Thank you very much.
Best regards
ata is offline   Reply With Quote

Old   March 8, 2010, 02:29
Default
  #6
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
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, 02:54
Default
  #7
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
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, 03:48
Default
  #8
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
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, 06:44
Default Making Animation
  #9
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
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 08:05. Reason: Added [CODE][/CODE]
ata is offline   Reply With Quote

Old   September 14, 2013, 06:01
Default
  #10
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 08:04
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, smog and PenPencil like this.
__________________

Last edited by wyldckat; September 14, 2013 at 11:05.
wyldckat is offline   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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 07:20.