<div dir="ltr"><div><span style="line-height:1.5;font-size:13.1999998092651px">You are right, ParaView does not read hdf5 directly but rather hdf5 based formats (hdf5 + additional info): both netcdf and xdmf have readers.</span></div><div><span style="line-height:1.5;font-size:13.1999998092651px">You can get a list of all readers supported by your ParaView installation using Help in ParaView. Additional readers can be enabled with</span></div><div><span style="line-height:1.5;font-size:13.1999998092651px">compile time options.</span></div><div><br></div><div>You can write Xdmf data using vtkXdmfWriter or vtkXdm3Writer (you'll have to link with the VTK library). These writers have tests which is a good way to see an example of how to use the class. <span style="line-height:1.5;font-size:13.1999998092651px">You can also take a look at the VTK XML based formats: vtkXMLPolyDataWriter, vtkXMLImageDataWriter, vtkXMLUnstructuredGridWriter/Reader. Probably you could write data with a library that comes with that format and then read it with ParaView.</span></div><div><br></div><div>Do you need parallel writing/reading?</div><div dir="ltr"><div><br></div><div>Dan</div><div><br></div><div><br> <br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jun 7, 2015 at 4:26 AM Paul Anton Letnes <<a href="mailto:pa@letnes.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=pa@letnes.com&cc=&bcc=&su=&body=','_blank');return false;">pa@letnes.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dan!<br>
<br>
I’m familiar with the HDF5 library and documentation, but thanks anyway for the link.<br>
<br>
I don’t see how I can have ParaView read and understand HDF5 files. That is, there are several readers (e.g. H5Nimrod) that use HDF5 as the underlying format, but I don’t see how to get paraview to understand which arrays are coordinates (nodes?), which are results, etc. for my application.<br>
<br>
Perhaps I should stress again that I have limited experience with ParaView, and since the supported file formats and possibilities seem endless, I have trouble getting an overview of sensible choices.<br>
<br>
My preference for hdf5 is partly due to other software in my organization supporting this format, and my own familiarity with it.<br>
<br>
Paul<br>
<br>
> On 7. jun. 2015, at 04.07, Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=dan.lipsa@kitware.com&cc=&bcc=&su=&body=','_blank');return false;">dan.lipsa@kitware.com</a>> wrote:<br>
><br>
> Hi Paul,<br>
> Indeed #2 makes sense, especially if you want to change the in-house format. To write the file (from the simulation) it seems to me you should checkout<br>
><br>
> <a href="https://www.hdfgroup.org/HDF5/doc/fortran/index.html" target="_blank">https://www.hdfgroup.org/HDF5/doc/fortran/index.html</a><br>
><br>
> I don't see why ParaView would be used in that process. Am I missing something?<br>
> Dan<br>
><br>
><br>
><br>
> On Sat, Jun 6, 2015 at 8:04 AM Paul Anton Letnes <<a href="mailto:pa@letnes.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=pa@letnes.com&cc=&bcc=&su=&body=','_blank');return false;">pa@letnes.com</a>> wrote:<br>
> Hi, fellow paraviewers!<br>
><br>
> I’ve spent some time playing with tutorials and user manuals, and so far I’m impressed with what paraview can do.<br>
><br>
> I am working on a specialized structural engineering program that, mainly, performs simulations of pipes with circular cross sections. Each pipe is split into nodes and 1D elements, and results are reported at points (or, less commonly, elements) along the pipe.<br>
><br>
> Some results are reported once per cross section; e.g, the tension in the pipe has a single value for the entire cross section. Other results, e.g. plastic strain, is reported for a number of points along the circumference of the pipe (say, 5-50 points), for each of the cross sections. The results can be either “snapshots” or time series.<br>
><br>
> After what I’ve seen from the paraview documentation, possible approaches include:<br>
> 1. Create a paraview plugin to read our current in-house file format.<br>
> 2. Directly write output files in an already supported format.<br>
> 3. Write pvpython scripts that perform the conversion on the fly.<br>
><br>
> Approach 1 is probably a lot of work and the file format is not of interest to anyone else (optimally, I’d like to replace it), so this seems less attractive. Approach 3 is probably less user-friendly for our users.<br>
><br>
> The second approach seems sensible, but the paraview documentation does not give many examples of how to do this. Optimally, I’d like to write a hdf5-based format (xdmf? netcdf? raw hdf5?) directly from Fortran, but I haven’t found documentation on how to do this. Using hdf5 seems attractive as it’s so widely supported by e.g. matlab, python, and other postprocessing tools used in the industry. Getting a single results database would simplify a lot of workflows!<br>
><br>
> What would you guys do?<br>
><br>
> Cheers<br>
> Paul<br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br>
</blockquote></div></div>