TEC_TO_VTK
Convert a (particular) TECPLOT File to a set of VTK files


TEC_TO_VTK is a MATLAB program which reads a TECPLOT graphics file containing 80 images of the motion and deformation of a red blood cell, and outputs 80 separate VTK unstructured grid files, which can be read into PARAVIEW and animated.

The program was written to handle a single specific file. Some parts of the program might be useful for someone needing a similar kind of translation.

Usage:

tec_to_vtk ( )
expects to read the TECPLOT ASCII file 'rbc.dat' and creates 'rbc_001.vtk' through 'rbc_080.vtk'.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

TEC, a data directory which contains a description and examples of the TEC graphics files used by TECPLOT.

TEC_IO a MATLAB library which can read or write a TEC file containing a finite element model.

TEC_TO_FEM, a MATLAB program which converts a TEC file into an FEM model.

TEC_TO_OBJ, a FORTRAN90 program which can read a TECPLOT file describing a surface in 3D composed of triangles or quadrilaterals, and write an OBJ file.

THREED_TO_VTK, a MATLAB program which accepts computational data from a 3D finite element fluid flow program and writes it to a VTK "legacy" file for postprocessing by PARAVIEW.

TWOD_TO_VTK, a MATLAB program which accepts computational data from a 2D finite element fluid flow program and writes it to a VTK "legacy" file for postprocessing by PARAVIEW.

TWOD_TO_VTU, a MATLAB program which accepts computational data from a 2D finite element fluid flow program and writes it to a VTK unstructured grid file for postprocessing by PARAVIEW.

VTK, a data directory which contains examples of "legacy" (old style) VTK files, a file format used by the Visual Toolkit, and which can be displayed by the PARAVIEW program;

VTK_IO, a FORTRAN90 library which reads and writes files in the VTK format.

VTU, a data directory which contains examples of VTU files, an XML-based file format used by the Visual Toolkit for unstructured grids, and which can be displayed by the PARAVIEW program;

Source Code:

Examples and Tests:

RBC is data defining 80 "snapshots" of the motion and deformation of a red blood cell. This data was originally stored in a TECPLOT file. The tec_to_vtk program extracted 80 VTK files, and PARAVIEW turned that into an animation. (Actually, PARAVIEW turned it into an AVI animation which my bonehead copy of QUICKTIME couldn't decode, so I had to idiotize myself, and have PARAVIEW create 80 JPEG files, which QUICKTIME was then able to turn into a MOV file. Soon everything will be possible and nothing will work...)

You can go up one level to the MATLAB source codes.


Last revised on 06 February 2010.