Dear Angwenyi, You are overwriting the file in each step. To avoid this, you need to take the lines: ... File("waveEqn.pvd")<< phi ... output = File("waveEqn.pvd") outside of the time loop. all the best --cjc On 22 December 2015 at 11:05, Angwenyi David <kipkoej@gmail.com> wrote:
Dear all,
I would like to get the animation on the linear wave equation in the tutorial as a visualisation in Paraview. I used the following code to store result files:
... phi -= dt / 2 * p ... t += dt ... if step % 10 == 0: ... File("waveEqn.pvd")<< phi ... output = File("waveEqn.pvd") ... output << phi ... del output
I expected a number of files that would form snapshots for the animation, but I got a single file. Could you please show me how to go about it.
Regards.
David
-- http://www.imperial.ac.uk/people/colin.cotter www.cambridge.org/9781107663916