fem2d_bvp_serene, a Fortran77 code which applies the finite element method (FEM), with serendipity elements, to a 2D boundary value problem (BVP) over a rectangle.
The boundary value problem to be solved has the form:
- d/dx ( a(x,y) * du/dx ) - d/dy ( a(x,y) * du/dy ) + c(x,y) * u(x,y) = f(x,y)This equation holds in the interior of some rectangle R. The functions a(x,y), c(x,y), and f(x,y) are given.
Zero boundary conditions are imposed on the boundary of R.
The computer code and data files described and made available on this web page are distributed under the MIT license
fem2d_bvp_serene is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version.
fem2d_bvp_linear, a Fortran77 program which applies the finite element method (FEM), with piecewise linear elements, to a 2D boundary value problem (BVP) over a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
FEM2D_BVP_QUADRATIC, a Fortran77 program which applies the finite element method (FEM), with piecewise quadratic elements, to a 2D boundary value problem (BVP) over a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
WATHEN, a Fortran77 library which compares storage schemes (full, banded, sparse triplet, sparse) and solution strategies (A\x, Linpack, conjugate gradient (CG)) for linear systems involving the Wathen matrix, which can arise when solving a problem using the finite element method (FEM).