I wrote a simple variable time-step solver and use ParaView as post-processor. For every timestep I wrote a ".vtu" file to the disk. Unfortunately, I was not able to find a way to put the time information within this files. What I found was this: A possible solution is to write a single meta-data file, called ".pvd" file, which is a simple xml file and can be opened with ParaView.
Ah, excellent. I've always wondered how to do that for Visit. It's good to know that one can do that for paraview at least.
It looks like e.g. this: <VTKFile type="Collection" version="0.1" ByteOrder="LittleEndian"> <Collection> <DataSet timestep="0.01" group="" part="0" file="solution-001.vtu"/> <DataSet timestep="0.0456855" group="" part="0" file="solution-002.vtu"/> <DataSet timestep="0.0932504" group="" part="0" file="solution-003.vtu"/> </Collection> </VTKFile> There it is possible to put some meta-information to every ".vtu" file, particularly the timestep. I wrote a small application based on RapidXml (http://rapidxml.sourceforge.net/), which creates such a ".vpd" file and for every timestep parses the existing ".pvd" file, adds a DataSet node and writes it back to the disk. Everything compiles fine and runs well, but somehow I get an error after some iterations. As my solver runs well without this, it is not really a deal.ii problem.
Which program produces the error?
So my question is rather: is there another possibility to write out the time information (and use ParaView)? If not, I would suggest to add it (and would offer my help for it where possible), as I assume this problem not only occurs to me?
I think it might actually be simpler to just write the file from scratch every time, rather than reading it in, parsing it as XML, adding something to it and then writing it out again. This is how we generate the .pvtu files that tie together multiple files for a single visualization. We write these .pvtu files in DataOutBase::write_pvtu_record. What sort of meta-information can one attach in these .vpd files? Want to give it a try to write the equivalent of the write_pvtu_record file that would take a collection of meta-information plus filename and writes it all out?
Best W. ------------------------------------------------------------------------ Wolfgang Bangerth email: [email protected] www: http://www.math.tamu.edu/~bangerth/ _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
