**fem2d_poisson_rectangle_test**,
a C++ code which
calls fem2d_poisson_rectangle(), which
solves the 2D Poisson equation using the
finite element method.

The computer code and data files described and made available on this web page are distributed under the MIT license

fem2d_poisson_rectangle, a C++ code which solves the 2D Poisson equation on a rectangle, using the finite element method (FEM), and piecewise quadratic triangular elements.

- fem2d_poisson_rectangle_test.sh, runs all the tests.
- fem2d_poisson_rectangle_test.txt, the output file.

- rectangle_nodes.png, a PNG image of the nodes, for NX = NY = 7 (the picture can be hard to read for much larger values of NX and NY);
- rectangle_nodes.txt, a text file containing a list, for each node, of its X and Y coordinates;
- rectangle_elements.png, a PNG image of the elements, for NX = NY = 7 (the picture can be hard to read for much larger values of NX and NY);
- rectangle_elements.txt, a text file containing a list, for each element, of the six nodes that compose it;
- rectangle_solution.txt, a text file containing a list, for each node, of the value of the solution;