[Paraview] how to write boundary (face) data for 3D tetrahedra (cells) in ASCII VTK file for Paraview visualization? separate value for each face

Victor Udoewa udwvic001 at uct.ac.za
Fri Mar 13 07:11:08 EDT 2009


March 14, 2009


Hi, I am not using the VTK software, but I am writing a VTK file to
visualize with Paraview.
I have one problem--writing data for the face (boundary) of my 3D
tetrahedra (cells).
Does anyone know how to do this for an unstructured grid in vtk? The
cells are 3D tetrahedra.

Currently I use CELL_DATA and FIELD type in writing my ASCII file:
(each tetrahedra gets 4 values for each of the 4 faces)

CELL_DATA 7927
FIELD FieldData 1
Boundary 4 7927 int
0 0 0 2 0 0 0 0 0 1 0 2 0 0 1 0 0 0 0 0 0 3 0 3 etc.

I have no idea if Paraview (or the vtk file format) knows which
number goes to which face. I'm using the .inp file face numbering system.

But when I visualize this in Paraview it doesn't seem to work well.
There are surfaces with boundary values higher than 3. Most of the
picture is correct, but the tetrahedra (cells) on the corners between
boundary groups display wrong values.


I found a similar question on Kitwares mailing list 10 years ago but there
were no responses I could find.

http://public.kitware.com/pipermail/vtkusers/1999-November/052114.html

If you can help it would be greatly appreciated. Thanks.


Joy,
Victor Udoewa
Research Fellow
CERECAM
University of Cape Town
http://www.cerecam.uct.ac.za/

 
______________________________________________________________________________________________ 

UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 4500. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

_____________________________________________________________________________________________________
 


More information about the ParaView mailing list