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
Dear Cotter, I did so, but got a single file. I thought I could get as many files as timesteps; which files I could open all at once in Paraview to generate a video. Any direction? Angwenyi
On 22 Dec 2015, at 12:10, Colin Cotter <colin.cotter@imperial.ac.uk> wrote:
del output
participants (2)
- 
                
                Angwenyi David
- 
                
                Colin Cotter