poisson_nonlinear, a FENICS code which uses the finite element method to solve a version of the nonlinear Poisson equation over the unit square.
The equation has the form
- div( ( 1 + u^2 ) grad(u) ) = x * sin(y) in Omegawith boundary conditions
U = 1 if x = 1 on dOmega U = 0 otherwise on dOmega
Note that I have installed FENICS using Docker, and so to run this script I issue the commands: