Hi, I’m working with xml .VTU files and I’d like to add a comment in the top line xml header that para-view won’t interpret or throw an error with and I’m unsure what specific text is safe here.
Where comment is arbitrary data that para-view doesn’t care about.
I know I can add extra data further down the file itself however this is for a CFD research flow solver and it works out easier to maintain my codebase keeping stuff on the first line of the file if I can.
For completeness of the question my exact file structure is as follows:
(Yes I know raw binary is technically a violation of xml format but I’ve never worked with xmls prior to this project so the xml police can fight me for it.)
Hi, yeah I tried before making the post however paraview threw up an error interpreting it, though in retrospect its possible the editor I was using broke the appended data. I’m being pretty hasty atm throwing stuff together because I’m on a bit of a tight turnaround so I was a bit sloppy. Once I find the time I’ll double check for the sake of due diligence.
Irregardless I realised that there is an xml standard for comments in:
<!-- [COMMENT] -->
which works well enough for my purposes.
Regarding HDF, I did consider using them for this project however I think with the way I’m exporting my results they would impact the performance of my work. This is for an unsteady CFD code for problems around Mach 7 so I believe the cost of writing the partition data (ghost points) in HDF may be significant as compared to my current method that writes result data from different partitions by redefining the partition view of the results file from a global reference frame to a local one and then treating it as a contiguous write.
It’s possible I overlooked something when reading the HDF standard w.r.t. performance but this is just the cost of learning what’s worth doing and what isn’t, I would not be surprised if I live to regret the xml writer.
It is definitely better when reading the same data mutliples times in a temporal context, other than that, we are working on a benchmark to provide actual numbers.
With HDF can you have one file that contains multiple sets of temporal data on multiple meshes for things like runtime mesh refinement codes? And will paraview’s filters generally support this?
ie, starting with mesh A, refined to B, refined to C:
---------------------------------------------------------------------------
time | 1 2 3 4 5 6 7 8 9
mesh | A A A B B C C C C
I remember struggling to fully wrap my head around the hdf format in specifics when I looked last and concluded I couldn’t but I expect I just misunderstood it.
Yes, thats exactly what you can do. And yes, filters supports that, some filters even optimize for such usecase and avoid recompuation in that case. It is called static mesh.