CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Problem opening vtu-file in Paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2020, 02:59
Default
  #21
New Member
 
Mons
Join Date: May 2019
Posts: 21
Rep Power: 7
monika_1387 is on a distinguished road
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 View Post
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
monika_1387 is offline   Reply With Quote

Old   September 1, 2020, 16:39
Default opening vtu files from SU2 7.0.6 in Paraview 5.8.1
  #22
New Member
 
Join Date: Jun 2020
Posts: 23
Rep Power: 6
rn86j is on a distinguished road
I guess it won't be too long before SU2 7.0.7 appears !!
Thanks
rn86j is offline   Reply With Quote

Old   April 3, 2021, 13:14
Default Paraview and large vtu error
  #23
New Member
 
E30
Join Date: Apr 2021
Posts: 1
Rep Power: 0
ehsanizadi is on a distinguished road
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
ehsanizadi is offline   Reply With Quote

Old   April 5, 2021, 15:12
Default opening vtu file from SU2 7.0.5 in Paraview
  #24
New Member
 
Join Date: Jun 2020
Posts: 23
Rep Power: 6
rn86j is on a distinguished road
May be try the the latest versions 7.1... onwards of SU2
Some of the earlier versions had issues in the vtu files
rn86j is offline   Reply With Quote

Old   June 12, 2024, 07:04
Default
  #25
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 139
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by ddubey01 View Post
I've had this same problem in the past, and I solved by pasting the following into my configuration file: OUTPUT_FILES= PARAVIEW_ASCII

Upon adding this to your configuration file and running it, a working .vtk file should be outputted and ready for visualization on Paraview.

This actually worked, Thanks
Sakun is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 21:40.