Smoothly connecting PDEs with finite differences
Few votes (3) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
A PDE with non-smooth inhomogeneity
Let \(\mathcal{L}\) be a second-order, linear, elliptic differential operator acting on \(\mathcal{C}^2([0,2]^2)\).
I'm numerically solving the inhomogeneous PDE\[\begin{align*} \mathcal{L}u(x,y)+(x-1)^+=0, \end{align*}\]where \((\cdot)^+\) denotes the positive part.
Put differently, I solve two PDEs which need to be connected at \(x=1\):\[\begin{align*} \begin{cases} \mathcal{L}u(x,y)=0 & \text{for }(x,y)\in[0,1]\times[0,2], \\ \mathcal{L}u(x,y)+x-1=0& \text{for }(x,y)\in(1,2]\times[0,2]. \end{cases} \end{align*}\]
Approximating all partial derivatives by central differences, I get the nine-point stencil\[\begin{align*} c_1 u_{i-1,j-1} + c_2 u_{i,j-1} + c_3 u_{i+1,j-1} + c_4 u_{i-1,j} + c_5 u_{i,j} &\\ + c_6 u_{i+1,j}+ c_7 u_{i-1,j+1} + c_8 u_{i,j+1} + c_9 u_{i+1,j+1} + (x_i-1)^+ &=0. \end{align*}\]Thus, \(u\) is the solution to a system of linear equations. …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.