|
[Sponsors] |
March 4, 2010, 21:14 |
Making Animation
|
#1 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
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 |
|
March 5, 2010, 01:53 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
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. |
|
March 5, 2010, 23:19 |
Making Animation
|
#3 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
Hi Niels Nielsen
Thank you very much for your reply but I want to make an animation not a picture. Thanks |
|
March 6, 2010, 04:24 |
|
#4 |
Senior Member
KGN
Join Date: Oct 2009
Location: Chennai, India
Posts: 121
Rep Power: 16 |
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 |
|
March 6, 2010, 04:46 |
|
#5 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
Hi mecbe
Thank you very much. Best regards |
|
March 8, 2010, 02:29 |
|
#6 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
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
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
March 10, 2010, 02:54 |
|
#7 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
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 |
|
March 10, 2010, 03:48 |
|
#8 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
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 |
|
March 10, 2010, 06:44 |
Making Animation
|
#9 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
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 Code:
connect to mplayerhq.hu:2401 failed: Connection refusedata@ata-laptop:~$ 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] |
|
September 14, 2013, 06:01 |
|
#10 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 14, 2013, 08:04 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Ehsan Quote:
Best regards, Bruno
__________________
Last edited by wyldckat; September 14, 2013 at 11:05. |
||
|
|
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 |