TRIANGULATION_NODE_TO_ELEMENT
Average Node Data to Create Element Data
TRIANGULATION_NODE_TO_ELEMENT,
a C program 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:

a node file, containing
X, Y coordinates of points;

an element file,
containing a list of sets of three points making up each
triangular element; (if this file does not exist, the
program will generate the element data automatically).

a node values file,
containing the values of one or more data items
at each node.
and creates

an element values file,
containing the values of the data, averaged over
the nodes in each element.
Usage:
triangulation_node_to_element prefix
where

prefix_nodes.txt, lists the node coordinates;

prefix_elements.txt lists the indices of nodes that form elements
(this file is optional, and if not supplied, the information will
be generated internally);

prefix_values.txt contains the value assigned to each node.

prefix_element_values.txt will contain the values averaged
over the nodes in each element.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
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 library which
carries out various operations on order 3 ("linear") or order 6
("quadratic") triangulations.
triangulation_node_to_element_test
Source Code:
Last revised on 23 August 2019.