FEM1D_BVP_LINEAR is a FORTRAN77 program which applies the finite element method, with piecewise linear elements, to a two point boundary value problem in one spatial dimension, and compares the computed and exact solutions with the L2 and seminorm errors.
The boundary value problem (BVP) that is to be solved has the form:
- d/dx ( a(x) * du/dx ) + c(x) * u(x) = f(x)in the interval 0 < x < 1. The functions a(x), c(x), and f(x) are given functions.
Boundary conditions are applied at the endpoints, and in this case, these are assumed to have the form:
u(0.0) = 0.0; u(1.0) = 0.0.
To compute a finite element approximation, a set of n equally spaced nodes is defined from 0.0 to 1.0, a set of piecewise linear basis functions is set up, with one basis function associated with each node, and then an integral form of the BVP is used, in which the differential equation is multiplied by each basis function, and integration by parts is used to simplify the integrand.
A simple two point Gauss quadrature formula is used to estimate the resulting integrals over each interval.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
FEM1D_BVP_LINEAR is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version and a Python version.
BVPSOL, a FORTRAN77 library which solves highly nonlinear two point boundary value problems using a local linear solver (condensing algorithm) or a global sparse linear solver for the solution of the arising linear subproblems, by Deuflhard, Bader, Weimann.
FD1D_BVP, a FORTRAN77 program which applies the finite difference method to a two point boundary value problem in one spatial dimension.
FEM1D, a data directory which contains examples of 1D FEM files, three text files that describe a 1D finite element model;
FEM1D, a FORTRAN77 program which applies the finite element method to a linear two point boundary value problem in a 1D region.
FEM1D_ADAPTIVE, a FORTRAN77 program which applies the finite element method to a linear two point boundary value problem in a 1D region, using adaptive refinement to improve the solution.
FEM1D_BVP_QUADRATIC, a FORTRAN77 program which applies the finite element method (FEM), with piecewise quadratic 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_NONLINEAR, a FORTRAN77 program which applies the finite element method to a nonlinear two point boundary value problem in a 1D region.
FEM1D_PMETHOD, a FORTRAN77 program which applies the p-method version of the finite element method to a linear two point boundary value problem in a 1D region.
FEM2D_BVP_LINEAR, a FORTRAN77 program which applies the finite element method (FEM), with piecewise linear elements, to a 2D boundary value problem (BVP) in a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
MUS, a FORTRAN77 library which implements the multiple shooting method for two point boundary value problems, for linear or nonlinear cases, by Robert Mattheij and G Staarink.
You can go up one level to the FORTRAN77 source codes.