This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

saving figures with a different name in every time step

+1 vote

Hi,

I have a script which includes a time loop, at the end of which I want to save the (pvd) graphical output with a name that includes the time level,

Could you please guide me as to how I could update the figure name with the time level in every step?

Many thanks,

asked Aug 20, 2013 by hnili FEniCS Novice (590 points)

1 Answer

+4 votes
 
Best answer

It is demonstrated in the demo:

demo/undocumented/advection-diffusion
answered Aug 21, 2013 by johanhake FEniCS Expert (22,480 points)
selected Aug 21, 2013 by Jan Blechta

Yes, found it. Thank you very much

...