fem1d_approximate, an Octave code which uses a given finite element method (FEM) mesh and piecewise linear (PWL) basis functions to approximate a set of data points, while controlling the variation in the derivative.
A least-squares approach is used. The user can supply weights to the approximation, derivative, and boundary conditions.
The computer code and data files made available on this web page are distributed under the MIT license
fem1d_approximate is available in a MATLAB version and an Octave version.
fem1d_bvp_linear, an Octave code which applies the finite element method (FEM), with piecewise linear elements, to a two point boundary value problem (BVP) in one spatial dimension, and compares the computed and exact solutions with the L2 and seminorm errors.
fem1d_project, an Octave code which projects data into a finite element method (FEM) space, including the least squares approximation of data, or the projection of a finite element solution from one mesh to another.