Read and Write TEC Files

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

There are several kinds of TEC files; the routines given here can only handle the case where a single ZONE record is used to define finite element data, using a DATAPACKING value of "POINT" (not "BLOCK"), and a ZONETYPE of

The data to be written or read is assumed to have a logical organization into three groups:

The TECPLOT home page contains a description of the TECPLOT program.


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


TEC_IO is available in a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

FEM_50, a MATLAB program which implements a finite element solver in just 50 lines of code.

FEM_50_HEAT, a MATLAB program which is a modified version of FEM_50 suitable for solving the heat equation.

FEM_IO, a MATLAB library which reads or writes an FEM model.

FEM_TO_TEC, a MATLAB program which reads the three files defining an FEM model and writes an equivalent TEC file.

FEM2D, a data directory which contains examples of 2D FEM files, text files that describe a 2D finite element geometry and associated nodal values;

FEM2D_PACK, a MATLAB library which is useful for finite element calculations.

FEM2D_POISSON, a MATLAB program which solves Poisson's equation on a square, using the finite element method.

HOT_PIPE, a MATLAB library which can be run with FEM_50_HEAT.

HOT_POINT, a MATLAB library which can be run with FEM_50_HEAT.

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

TEC_TO_FEM, a MATLAB program which reads a TEC file and writes a set of three files defining the equivalent FEM model.

Source Code:

Examples and Tests:

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

Last revised on 26 April 2006.