FEM_TO_TEC, a FORTRAN90 code which reads three files defining a finite element model (FEM format) and writes a TECPLOT ASCII file suitable for display by TECPLOT.

The finite element model is assumed to include three items:

FEM_TO_TEC reads these three files and writes an equivalent TECPLOT ASCII file that can be processed by the TECPLOT graphics program.

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


fem_to_tec ( 'node_file', 'element_file', 'value_file', 'tec_file' )


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


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

Related Data and Programs:


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

FEM_TO_MEDIT, a FORTRAN90 program which reads a pair of FEM files defining node coordinates and elements, and creates a corresponding MEDIT mesh file.

FEM_TO_TRIANGLE, a FORTRAN90 program which reads FEM files defining a 2D mesh of triangles, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding pair of node and element files for use by Jonathan Shewchuk's triangle program.

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

TEC, a data directory which contains a description and examples of TEC graphics files.

TEC_IO, a FORTRAN90 library which reads or writes a TEC file containing a finite element model.

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


Source Code:

Last revised on 24 February 2023.