How to make animations for parabolic problems??

Asked by Alpha Zeta

I would like to make a simple animation of the time evolution of the solution to a 2-dimensional parabolic PDE. I'm using a standard time stepping discretisation to the time derivative.

What is the easiest way to make an animation/video of the solution? Should I save the numerical solution to file at each time step, and then use some external program for reading the sequence of files, or is there a neater one file solution that will lead immediately to animations?

Also, help on using whatever required external program would be much appreciated.

Many thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johan Hake (johan-hake) said :
#1

Save to a ParaView file (pvd). Open sequence in ParaView and save an
animation. If ParaView is not compiled with encoder you save it as a
bunch of png files. These can then be encoded using for example ffmpeg,
imagemagick

You can most probably find some tutorial on how to use ParaView on the net.

Johan

On 09/17/2012 12:55 AM, Alpha Zeta wrote:
> New question #208765 on FEniCS Project:
> https://answers.launchpad.net/fenics/+question/208765
>
> I would like to make a simple animation of the time evolution of the
> solution to a 2-dimensional parabolic PDE. I'm using a standard time
> stepping discretisation to the time derivative.
>
> What is the easiest way to make an animation/video of the solution?
> Should I save the numerical solution to file at each time step, and
> then use some external program for reading the sequence of files, or
> is there a neater one file solution that will lead immediately to
> animations?
>
> Also, help on using whatever required external program would be much
> appreciated.
>
> Many thanks.
>

Can you help with this problem?

Provide an answer of your own, or ask Alpha Zeta for more information if necessary.

To post a message you must log in.