If you write a solution multiple times to the same file, you should get 
a time series that you can plot in Paraview (by pressing the play button 
or stepping):

Function u;
File file("solution.pvd");

file << u;
// Do something with u
file << u;
// Do something with u
file << u;

etc.

(If naming is a problem, call the rename() function on u:

u.rename("u1", "some description");)

/Anders


Jake Ostien wrote:
> Hi,
> 
> I would like to write more than one discrete function to a (single) 
> results file.  What I am looking to do is deform a mesh (or warp in 
> paraview) and then plot another scalar or vector field on the deformed 
> coordinates.  Right now that is not possible by construction of the 
> VTKFile class (for starters every function has the same name, 'u'), but 
> I was wondering if there was any outstanding reason why this might not 
> be implemented?  Or is there another output option that I could do this 
> in (I haven't looked)?
> 
> Thanks,
> Jake
> _______________________________________________
> DOLFIN-dev mailing list
> [email protected]
> http://www.fenics.org/mailman/listinfo/dolfin-dev
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to