fd_to_tec


fd_to_tec, a MATLAB code which reads two files defining a finite difference model (FD format) and writes a TECPLOT ASCII file suitable for display by tecplot().

The finite difference model is assumed to include two items:

A naming convention assumes that these files share a common prefix, followed by the suffixes "_nodes.txt" and "_values.txt". Thus, the "carlos" set of data would be contained in the files "carlos_nodes.txt" and "carlos_values.txt".

FD_TO_TEC reads these two files, calls MATLAB's delaunayn function to get a triangularization (if the node data is 2D) or a tetrahedralization (if the node data is 3D) and writes the element data to a file (which turns the FD model into an FEM model), and writes an equivalent TECPLOT ASCII ".dat" file.

The TECPLOT home page contains a description of the tecplot() program.

Usage:

fd_to_tec ( 'prefix' )
where reads the files 'prefix'_nodes.txt, and 'prefix'_values.txt; creates an element file 'prefix'_elements.txt, and creates the TECPLOT ASCII file 'prefix'.dat.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

fd_to_tec is available in a MATLAB version and an Octave version.

Related Data and Programs:

fd_to_tec_test

fd, a data directory which contains examples of FD files, two text files that can be used to describe many finite difference models;

fem_to_tec, a MATLAB code which converts FEM models into TECPLOT ASCII graphics files.

tec, a data directory which contains a description and examples of TECPLOT ASCII graphics files.

tec_io, a MATLAB code which reads and writes TECPLOT ASCII graphics files.

Source Code:


Last revised on 11 January 2019.