triangulation_node_to_element, a C code which reads datafiles describing a set of nodes, their triangulation, and the value of one or more quantities at each node, and outputs a file that averages the quantities for each element. This operation in effect creates an "order1" finite element model of the data.

The program reads three data files:

and creates


triangulation_node_to_element prefix


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


triangulation_node_to_element is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

TRIANGULATION, a C code which carries out various operations on order 3 ("linear") or order 6 ("quadratic") triangulations.


Source Code:

Last revised on 23 August 2019.