<div dir="ltr">I found a solution to the problem. The CFD code was writing the offsets incorrectly. When I adjust them manually, Paraview can read the file just fine.<div><br></div><div>This thread goes into a little more detail: <a href="https://www.cfd-online.com/Forums/paraview/198220-paraview-not-reading-some-fields-dataset.html">https://www.cfd-online.com/Forums/paraview/198220-paraview-not-reading-some-fields-dataset.html</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 30, 2018 at 1:24 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It looks like you have integer overflow (<a href="https://en.wikipedia.org/wiki/Integer_overflow" target="_blank">https://en.wikipedia.org/<wbr>wiki/Integer_overflow</a>). I'd suggest using a datatype with more precision and see if that fixes the issue.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Jan 30, 2018 at 3:15 PM, Tate Fanning <span dir="ltr"><<a href="mailto:t8fanning@gmail.com" target="_blank">t8fanning@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>I've output a vtu file from a CFD code. When trying to load the dataset into Paraview I get the following errors:</div><div><br></div><div>[CODE]Error reading uncompressed binary data header. Read 0 of 4 bytes. </div><div>ERROR: In C:\bbd\7cc78367\source-paravie<wbr>w\VTK\IO\XMLParser\vtkXMLDataP<wbr>arser.cxx, line 609 vtkXMLDataParser (0000009CC7674520): Error reading uncompressed binary data header. Read 0 of 4 bytes.</div><div><br></div><div>Cannot read point data array "Cyl_Velocity" from PointData in piece 0. The data array in the element may be too short. ERROR: In C:\bbd\7cc78367\source-paravie<wbr>w\VTK\IO\XML\vtkXMLDataReader.<wbr>cxx, line 443 vtkXMLUnstructuredGridReader (0000009C837CFCE0): Cannot read point data array "Cyl_Velocity" from PointData in piece 0. The data array in the element may be too short.[/CODE]</div><div><br></div><div>If I ask Paraview to not read the offending arrays, it reads the other arrays in fine. From these errors, it seems the data file has some issues with a few specific arrays. </div><div><br></div><div>Upon inspection of the first part of the vtu file, the offending arrays (Cyl_Velocity and Rel_Velocity) have negative offsets. </div><div><br></div><div>[CODE]<VTKFile type="UnstructuredGrid" version="0.1" byte_order="BigEndian"></div><div><span style="white-space:pre-wrap"> </span><UnstructuredGrid></div><div> <Piece NumberOfPoints=" 9855039" NumberOfCells=" 9523296"></div><div> <Points></div><div> <DataArray type="Float64" Name="coordinates" NumberOfComponents="3" format="appended" offset=" 0" /></div><div> </Points></div><div> <Cells></div><div> <DataArray type="Int32" Name="connectivity" format="appended" offset=" 236520940" /></div><div> <DataArray type="Int32" Name="offsets" format="appended" offset=" 541266416" /></div><div> <DataArray type="Int32" Name="types" format="appended" offset=" 579359604" /></div><div> </Cells></div><div> <PointData></div><div> <DataArray type="Float64" Name="rho" format="appended" offset=" 617452792" /></div><div> <DataArray type="Float64" Name="P" format="appended" offset=" 696293108" /></div><div> <DataArray type="Float64" Name="Phi" format="appended" offset=" 775133424" /></div><div> <DataArray type="Float64" Name="TKE" format="appended" offset=" 853973740" /></div><div> <DataArray type="Float64" Name="EPS" format="appended" offset=" 932814056" /></div><div> <DataArray type="Float64" Name="mut/mul" format="appended" offset=" 1011654372" /></div><div> <DataArray type="Float64" Name="WDist" format="appended" offset=" 1090494688" /></div><div> <DataArray type="Float64" Name="TimeStep" format="appended" offset=" 1169335004" /></div><div> <DataArray type="Float64" Name="T" format="appended" offset=" 1248175320" /></div><div> <DataArray type="Float64" Name="Processor" format="appended" offset=" 1327015636" /></div><div> <DataArray type="Float64" Name="Soundspeed" format="appended" offset=" 1405855952" /></div><div> <DataArray type="Float64" Name="Lam.Visc" format="appended" offset=" 1484696268" /></div><div> <DataArray type="Float64" Name="Yplusw" format="appended" offset=" 1563536584" /></div><div> <DataArray type="Float64" Name="Qdotw" format="appended" offset=" 1642376900" /></div><div> <DataArray type="Float64" Name="vort-x" format="appended" offset=" 1721217216" /></div><div> <DataArray type="Float64" Name="vort-y" format="appended" offset=" 1800057532" /></div><div> <DataArray type="Float64" Name="vort-z" format="appended" offset=" 1878897848" /></div><div> <DataArray type="Float64" Name="helicity" format="appended" offset=" 1957738164" /></div><div> <DataArray type="Float64" Name="Velocity" NumberOfComponents="3" format="appended" offset=" <a href="tel:(203)%20657-8480" value="+12036578480" target="_blank">2036578480</a>" /></div><div> <DataArray type="Float64" Name="Cyl_Velocity" NumberOfComponents="3" format="appended" offset=" -2021867876" /></div><div> <DataArray type="Float64" Name="Rel_Velocity" NumberOfComponents="3" format="appended" offset=" -1785346936" /></div><div> </PointData></div><div> <CellData> </CellData>[/CODE]</div><div><br></div><div>The CFD code also can output data files for a specific surface. When I load one of those into Paraview, it has no issues with any data array in that file, and everything works fine.</div><div><br></div><div>Upon inspection of the first part of a single surface vtu file with no issues, no array has a negative offset.</div><div><br></div><div>[CODE] <span style="white-space:pre-wrap"> </span><VTKFile type="UnstructuredGrid" version="0.1" byte_order="BigEndian"></div><div><span style="white-space:pre-wrap"> </span><UnstructuredGrid></div><div> <Piece NumberOfPoints=" 176025" NumberOfCells=" 174528"></div><div> <Points></div><div> <DataArray type="Float64" Name="coordinates" NumberOfComponents="3" format="appended" offset=" 0" /></div><div> </Points></div><div> <Cells></div><div> <DataArray type="Int32" Name="connectivity" format="appended" offset=" 4224604" /></div><div> <DataArray type="Int32" Name="offsets" format="appended" offset=" 7017056" /></div><div> <DataArray type="Int32" Name="types" format="appended" offset=" 7715172" /></div><div> </Cells></div><div> <PointData></div><div> <DataArray type="Float64" Name="rho" format="appended" offset=" 8413288" /></div><div> <DataArray type="Float64" Name="P" format="appended" offset=" 9821492" /></div><div> <DataArray type="Float64" Name="Phi" format="appended" offset=" 11229696" /></div><div> <DataArray type="Float64" Name="TKE" format="appended" offset=" 12637900" /></div><div> <DataArray type="Float64" Name="EPS" format="appended" offset=" 14046104" /></div><div> <DataArray type="Float64" Name="mut/mul" format="appended" offset=" 15454308" /></div><div> <DataArray type="Float64" Name="WDist" format="appended" offset=" 16862512" /></div><div> <DataArray type="Float64" Name="TimeStep" format="appended" offset=" 18270716" /></div><div> <DataArray type="Float64" Name="T" format="appended" offset=" 19678920" /></div><div> <DataArray type="Float64" Name="Processor" format="appended" offset=" 21087124" /></div><div> <DataArray type="Float64" Name="Soundspeed" format="appended" offset=" 22495328" /></div><div> <DataArray type="Float64" Name="Lam.Visc" format="appended" offset=" 23903532" /></div><div> <DataArray type="Float64" Name="Yplusw" format="appended" offset=" 25311736" /></div><div> <DataArray type="Float64" Name="Qdotw" format="appended" offset=" 26719940" /></div><div> <DataArray type="Float64" Name="vort-x" format="appended" offset=" 28128144" /></div><div> <DataArray type="Float64" Name="vort-y" format="appended" offset=" 29536348" /></div><div> <DataArray type="Float64" Name="vort-z" format="appended" offset=" 30944552" /></div><div> <DataArray type="Float64" Name="helicity" format="appended" offset=" 32352756" /></div><div> <DataArray type="Float64" Name="Velocity" NumberOfComponents="3" format="appended" offset=" 33760960" /></div><div> <DataArray type="Float64" Name="Cyl_Velocity" NumberOfComponents="3" format="appended" offset=" 37985564" /></div><div> <DataArray type="Float64" Name="Rel_Velocity" NumberOfComponents="3" format="appended" offset=" 42210168" /></div><div> </PointData></div><div> <CellData> </CellData>[/CODE]</div><div><br></div><div>So I think the offset sign is relevant to my problem, but I don't really know what it means or how to fix it. Does anyone know what I can do to fix my data set, or at least know what the underlying problem is?</div><div><br></div><div>Thank you.</div><span class="m_3636648959309893299HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_3636648959309893299m_-1030091485065213590gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="color:rgb(136,136,136)"><b><font face="georgia, serif">Tate Fanning</font></b><br><font color="#666666"><font face="times new roman, serif">Ph.D. Candidate</font><br><font face="times new roman, serif">Turbomachinery Research Lab</font><br><font face="times new roman, serif">BYU Mechanical Engineering</font><br><font face="times new roman, serif"><a href="tel:(360)%20953-7457" value="+13609537457" target="_blank">360-953-7457</a></font><br><font face="times new roman, serif"><a href="mailto:t8fanning@gmail.com" target="_blank">t8fanning@gmail.com</a></font><br><br></font></div></div></div></div></div>
</font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://paraview.org/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://paraview.org/mailman/l<wbr>istinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="color:rgb(136,136,136)"><b><font face="georgia, serif">Tate Fanning</font></b><br><font color="#666666"><font face="times new roman, serif">Ph.D. Candidate</font><br><font face="times new roman, serif">Turbomachinery Research Lab</font><br><font face="times new roman, serif">BYU Mechanical Engineering</font><br><font face="times new roman, serif">360-953-7457</font><br><font face="times new roman, serif"><a href="mailto:t8fanning@gmail.com" target="_blank">t8fanning@gmail.com</a></font><br><br></font></div></div></div></div></div>
</div>