[vtkusers] VTK Legacy ASCII format - "Error reading ascii cell data!"
Hom Nath Gharti
hng.email at gmail.com
Wed Aug 18 17:31:39 EDT 2010
I think you should correct the following:
1. correct
CELLS 8022 160440
to
CELLS 8022 168462
because that number should be 8022*(20+1)!
2. you should add 20 (number of nodes in each element) in the first
position of each line of your connectivity lists, e.g.,
20 365 360 0 3 24318 24311 24313 24316 364 1 2 4 24322 24315 24321
24320 24319 24312 24314 24317
20 369 365 3 7 24325 24318 24316 24323 367 4 5 6 24329 24320 24328
24327 24326 24319 24317 24324
20 371 369 7 9 24332 24325 24323 24330 370 6 8 10 24336 24327 24335
24334 24333 24326 24324 24331
........
........
........
good luck!
HNG
On Wed, Aug 18, 2010 at 10:30 PM, hiro <mmessne2 at illinois.edu> wrote:
>
> I've been trying for a few hours to fix code converting PATRAN neutral files
> to vtk format (unstructured grid). Here's a link to a (2 MB ish) test
> output: https://netfiles.uiuc.edu/mmessne2/shared/test.vtk link . If you
> delete the cell information the points load in just fine. However no matter
> what I try I always get a "Error reading ascii cell data" error. I've
> checked:
>
> 1) Making sure the right amount of nodes and element connectivities are
> listed in the vtk file. The length of the cell_types section correctly
> matches the number of cells.
> 2) That the element connectivities are in the right range (0 to 56766 in
> this case).
> 3) The second parameter of the CELLS heading (total length of connectivity
> array) is correct. Since all the elements are 20-node hexes 20*8022=160440.
> 4) Cells have the right number of nodes (20).
>
> I just want to know if anyone can find what is wrong with the sample file I
> linked. Hopefully when I figure that out I can go back and fix the
> conversion code.
>
> Thanks,
> Mark
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Legacy-ASCII-format-Error-reading-ascii-cell-data-tp2640060p2640060.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list