The finite element method (wiki), is a numerical method for solving problems of engineering and mathematical physics.
Typical problem areas of interest include structural analysis, heat transfer, fluid flow, mass transport, and electromagnetic potential.
Specifically, this program solves the problem of approximation of the equation at a given site in the presence of boundary conditions.
The program solves the equation by the finite element method, compares the result with the analytical solution and writes the data to a file.
./compile.sh # compile
./build/fem # run
Linear solution:
---- Max error: 1.2%
Cube solution:
---- Max error: 1.2%