TRIANGULATION_ORDER6_CONTOUR is a MATLAB function which reads datafiles describing a set of nodes, a triangulation of the nodes into six-node triangles, and a scalar evaluated at the nodes. It produces a plot of the triangulation, and several styles of color contour plots of the scalar
This program has a flaw - MATLAB can easily display linear data, so the program essentially divides each quadratic 6-node triangle into smaller 3-node triangles, and lets MATLAB compute and display a surface which is planar over each triangle. This is only an approximation, and if the "fine scale" quadratic behavior of the solution is of interest, it will not show up using this program! To do so well requires computing the underlying quadratic function at numerous sampling points before constructing and displaying the (now much smaller) planar surfaces that approximate the quadratic surface.
The program reads three data files that form a "finite element model" of a scalar quantity defined over a 2D region:
The program automatically displays five plots:
FEM is a data directory which contains a description and examples of the FEM format.
FEM_BASIS_T6_DISPLAY is a MATLAB program which reads a quadratic triangle mesh and displays any associated basis function.
FEM2D_POISSON generates data that may be plotted by this program. FEM2D_POISSON is available in a FORTRAN90 version, a C++ version and a MATLAB version.
TABLE is a format used for each of the three input data files.
TRIANGULATION is a MATLAB library of routines for carrying out various operations on order 3 ("linear") or order 6 ("quadratic") triangulations.
TRIANGULATION_MASK is an executable MATLAB program, which takes an existing triangulation and deletes triangles and their corresponding nodes as requested by the user.
TRIANGULATION_ORDER3_CONTOUR is a similar program which handles the case where the triangulation is of order 3.
TRIANGULATION_ORDER6 is a directory which describes the format for the node and element files describing an order 6 triangulation.
TRIANGULATION_ORIENT is an executable MATLAB program that reads data defining a triangulation, makes sure that every triangle has positive orientation, and if not, writes a corrected triangle file.
TRIANGULATION_REFINE is an executable MATLAB program that reads data defining a triangulation, replaces each triangle by four congruent smaller ones, and writes the new triangulation information to a file.
VECTOR_MAGNITUDE_GRID is a MATLAB program which reads node and vector data from a file, computes an interpolatory function, evaluates on a uniform grid of points specified by the user, and displays a contour plot of the vector magnitude.
You can go up one level to the MATLAB source codes.