How to create a video from Paraview

  1. Download this 'movie.pvsm' file and put in the folder where you have the vtu files. 
  2. Then Go to File -> Load State -> Choose File Names, click on ... and select your own vtu files.
  3. If you have done this correctly, then you should be able to see the domain outline plus the particles for the first snapshot like this:
  4. If you have walls, you could open file and add wall.vtu files here, then adjust base on your own conditions, as I am having periodic boundary, so no walls needed for me.
  5. You could rotate the whole domain in 3D or change the colorbar in the Glyph settings, once you are happy with the representation, save it as a video in next step.
  6. Go to File -> Save Animation, Type in a name for the output, then use the setting shown in the picture below:
  7. Note that here you have to choose White Background, the resolution and Frame Rate you could decide by yourself.

 

Alternatively, you could also first output png images for each snapshot, then join those images together using either a software of ffmpeg package in terminal (available in linux or mac):

ffmpeg -y -framerate 60 -i '%*.png' -c:v libx264 -crf 29 -r 60 movie.mp4


Once you have a nice video, please follow How to add a MercuryDPM logo to a video and add the logo to your video, then you could upload it to MercuryDPM youtube channel.

 

If you have questions, please contact Hao for further details.