This example shows how to solve a nonlinear elliptic problem numerically, using the pdenonlin function in Partial Differential Equation Toolbox™.
In many problems, the coefficients not only depend on spatial coordinates, but also on the solution itself. In toolbox wording, this kind of problem is called nonlinear. An example of this is the minimal surface equation
on the unit disk, with
on the boundary. The PDE coefficient c is the multiplier of , namely
c is a function of the solution , so the problem is nonlinear.
The following variables define the problem:
g: A geometry specification function used by initmesh. For more information, see the documentation page for circleg and pdegeom.
b: A boundary file used by pdenonlin. For more information, see the documentation pages for circleb and pdebound.
c, a, f: The coefficients of the PDE. Note that c is a character array. For more information on passing coefficients into pdenonlin, see the documentation page for assempde.
rtol: Tolerance for nonlinear solver.
g='circleg'; b='circleb2'; c='1./sqrt(1+ux.^2+uy.^2)'; a=0; f=0; rtol=1e-3;
[p,e,t]=initmesh(g); [p,e,t]=refinemesh(g,p,e,t); figure; pdemesh(p,e,t); axis equal
Because the problem is nonlinear, we solve it using the pdenonlin function.