CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Problem opening vtu-file in Paraview (https://www.cfd-online.com/Forums/su2/227916-problem-opening-vtu-file-paraview.html)

monika_1387 August 31, 2020 01:59

I had the same issue from my LES results. So I generated my small size vtk from restart.dat file in MATLAB because my system freeze whenever I tried opening .vtu files from LES data dumped from SU2 code. So may be its just issue with code.





Quote:

Originally Posted by Situla (Post 774343)
Hello!


So I have been struggling for a while now trying to open my vtu files in Paraview. The error I get is this:

ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\ IO\XML\vtkXMLUnstructuredDataReader.cxx, line 657 vtkXMLUnstructuredGridReader (0000024E05BE8EC0): Cannot read cell connectivity from Cells in piece 0 because the "offsets" array is not monotonically increasing or starts with a value other than 0.

I obtained this vtu file by running CFD_SOL on my solution_flow.dat, which I again obtained from renaming the restart_flow.dat that is written at the end of the simulation.
This is the second (and very small) of four vtu files of a multi-physics problem (gas flow past three warm cylinders).
Most sense I can make of the error is by opening the vtu file in Notepad++, where I found these three lines:
<Cells>
<DataArray type="Int32" Name="connectivity" NumberOfComponents= "1" offset="1816" format="appended"/>
<DataArray type="Int32" Name="offsets" NumberOfComponents= "1" offset="3452" format="appended"/>


I am not sure if this "offset" variable is the same as in the error message, but it is clearly not 0.
This is my first multi-physics SU2 simulation, so I am not very experienced with how to deal with this.

I have attached the entire vtu-file and the mesh file.


Thank you for your time!
Martin




Edit: Above error appears with Paraview 5.8.0. I have tried opening this same exact file in Paraview 5.6.1, where I find a similar yet different error:


ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\ IO\XML\vtkXMLUnstructuredDataReader.cxx, line 616 vtkXMLUnstructuredGridReader (000001D73D38B500): Cannot read cell connectivity from Cells in piece 0 because the "offsets" array is not monotonically increasing or starts with a value less than 1.



What strikes me as bizarre is that in this version, Paraview seems to expect an array starting value > 0, whereas in the newer version, it seems Paraview would accept ONLY 0 as starting value. Clearly, there is not a value that can satisfy both conditions, which raises two questions: What value does it really need to be, and what value does my file have?




Edit2: added MWE


rn86j September 1, 2020 15:39

opening vtu files from SU2 7.0.6 in Paraview 5.8.1
 
I guess it won't be too long before SU2 7.0.7 appears !!
Thanks

ehsanizadi April 3, 2021 12:14

Paraview and large vtu error
 
Hi,

I am trying to open a large VTU file using Paraview. There are around 400000 unstructured data points in it. But in Paraview when I want to open it I get the following error:
"cannot read cell offsets from cells in piece 0 because the offset"

I tried Paraview versions 5.5, 5.6, 5.7, 5.8 & 5.9 on two different versions of Ubuntu and on Windows, but the error is the same.

I have also tried installing SU2, but it did not work for me. Also, I tried pasting the following into my configuration file: OUTPUT_FILES= PARAVIEW_ASCII, however, it did not solve my problem either.

I appreciate any help.
Thanks
E30

rn86j April 5, 2021 14:12

opening vtu file from SU2 7.0.5 in Paraview
 
May be try the the latest versions 7.1... onwards of SU2
Some of the earlier versions had issues in the vtu files


All times are GMT -4. The time now is 02:13.