FEM2D_SCALAR_DISPLAY_GPL is a MATLAB program which reads datafiles describing a set of nodes, their triangulation, and the value of a scalar quantity at each node, and creates a graphics file of the corresponding surface plot, which can be displayed by GNUPLOT.
The program reads three data files:
fem2d_scalar_display_gpl ( 'prefix' )where 'prefix' is the common prefix for the node, element and value files:
The program creates two files:
To actually create the plot, type
gnuplot < prefix_commands.txtwhich will create the file prefix.png
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
FEM2D_SCALAR_DISPLAY_GPL is available in a MATLAB version.
DIST_PLOT, a MATLAB program which makes contour plots of the distance function, as defined and used in Persson and Strang's distmesh code;
FEM2D_MESH_DISPLAY, a MATLAB program which reads the FEM model of a 2D mesh, consisting of polygonal elements of any uniform order, and displays an image of the elements and nodes, with optional numbering.
FEM2D_SCALAR_DISPLAY, a MATLAB program which reads information about nodes, elements and nodal values for a 2D finite element method (FEM) and creates a surface plot of U(X,Y), using the MATLAB graphics system.
FEM2D_SCALAR_DISPLAY_BRIEF, a MATLAB program which reads information about nodes, elements and nodal values for a 2D finite element method (FEM) and creates a surface plot of U(X,Y), using the MATLAB graphics system, in 5 lines of code.
FENICS_TO_FEM, examples which illustrate how a mesh or scalar function computed by the FENICS program can be written to FEM files, which can then be used to create images, or as input to meshing programs or other analysis tools.
GNUPLOT, examples which illustrate the use of the gnuplot graphics program.
GPL, a data directory which contains examples of GPL files, a graphics file format used by gnuplot;
GPL_DISPLAY, a MATLAB library which tries to read the data in a typical gnuplot GPL file, and display it in a more attractive way than gnuplot is capable of.
TRIANGULATION_ORDER3_CONTOUR, a MATLAB program which can display a contour plot of scalar data defined on a triangulation of order 3.
TWOD_PLOTC, a MATLAB program which makes a color contour plot of scalar data defined on a 2D finite element mesh.
ELL is an L-shaped region on which the function U=X^2+Y^2 is defined.
SPIKE is a circular region on which a solution of the Poisson equation forms an off-centered spike.
You can go up one level to the MATLAB source codes.