Skip to content

Latest commit

 

History

History

2.3

drawFEM1DExample

This script is an example of how to use FEM to approximate the solution of the PDE problem:

u''(x) = 10
u(0) = 0
u(1) = 1

with increasing number of elements in the mesh. It is clear how, refining the mesh, we get closer to the exact solution (drawn in red).

example1

The second script solves the problem:

1/50*u''(x) = x
u(0) = 0
u(1) = 1

example2

drawLagrangePoly

example3