Skip to article frontmatterSkip to article content

Nonlinear elliptic PDEs

Many nonlinear elliptic PDEs include references to the Laplacian operator.

More generally, we want to solve the nonlinear PDE

ϕ(x,y,u,ux,uy,uxx,uyy)=0\phi(x,y,u,u_x,u_y,u_{xx},u_{yy}) = 0

in the interior of a rectangle RR, subject to the Dirichlet condition

u(x,y)=g(x,y)u(x,y) = g(x,y)

on the boundary of RR.

13.4.1Implementation

In order to solve for as few unknowns as possible, we use a Chebyshev discretization of the domain. The core idea is to formulate collocation equations at the grid points based on discrete approximations of (13.4.2) and (13.4.3). If the PDE is nonlinear, then these equations are also nonlinear and are to be solved by a quasi-Newton iteration. Algorithm 13.4.1 is our implementation.

Algorithm 13.4.1 first defines the discretization and then computes all the values of gg at the boundary nodes. It uses Algorithm 4.6.3 as the nonlinear solver, and it translates back and forth between vector and grid shapes for the unknowns. After the discrete PDE is collocated at the grid points, the boundary terms are replaced by the boundary residual.

Lines 38–41, which produce the value returned by Algorithm 13.4.1, provide a function that evaluates the numerical solution anywhere in the domain, as is explained next.

13.4.2Off-grid evaluation

A Chebyshev grid is clustered close to the boundary of the domain. As a result, simple piecewise interpolation to evaluate off the grid, as is done by plotting routines, may be unacceptably nonsmooth and inaccurate. Instead, we should use the global polynomial interpolation that is foundational to the Chebyshev spectral method.

Let U\mathbf{U} be a matrix of solution values on the Chebyshev grid, defining a function u(x,y)u(x,y), and let (ξ,η)(\xi,\eta) be a point where we want to evaluate u(x,y)u(x,y). Column uj\mathbf{u}_j of the grid matrix represents values spanning all the xix_i while yy is fixed at yjy_j. Therefore, we can define an interpolating polynomial pj(x)p_j(x) based on the values in uj\mathbf{u}_j.

Now let vj=pj(ξ)v_j = p_j(\xi) for j=1,,nj=1,\ldots,n. The vector v\mathbf{v} is a discretization of u(ξ,y)u(\xi,y) at the Chebyshev nodes in yy. It defines an interpolating polynomial q(y)q(y), and finally we have u(ξ,η)=q(η)u(\xi,\eta)=q(\eta). You can think of the total process as reducing one dimension at a time through the action of evaluating a polynomial interpolant at a point.

The function returned by Algorithm 13.4.1 performs interpolation as described above, using a helper function chebinterp (not shown). The helper performs the evaluation of a polynomial interpolant in one variable using a modified implementation of Function 9.2.1 that exploits the barycentric weights for Chebyshev nodes given in (9.3.3).[1]

13.4.3Exercises

Footnotes
  1. The interpolation algorithm in Function 13.4.1 is inefficient when uu is to be evaluated on a finer grid, as for plotting. A more careful version could re-use the same values vj=pj(ξ)v_j = p_j(\xi) for multiple values of η.

References
  1. Pelesko, J. A., & Driscoll, T. A. (2006). The Effect of the Small-Aspect-Ratio Approximation on Canonical Electrostatic MEMS Models. Journal of Engineering Mathematics, 53(3–4), 239–252. 10.1007/s10665-005-9013-2