Question 16.12: The Laplace equation ∇²u = uxx + uyy = 0  is defined over th...

The Laplace equation \nabla^2 u=u_{x x}+u_{y y}=0   is defined over the square region {0 ≤ x ≤ 0.6; 0 ≤ y ≤ 0.6}. The boundary conditions are defined by

i) u = 0 over the edges x = 0, y = 0, y = 0.6 (Dirichlet condition)

ii) \frac{\partial u}{\partial x}=1  at the edge x = 0.6. (Neumann condition)

Find the values of u(x, y) at the nodal points of the square region with mess length 0.2 with the aid of Gauss–Seidel method. Replace the derivative boundary condition with their central difference approximation.

The blue check mark means that this solution has been answered and checked by an expert. This guarantees that the final answer is accurate.
Learn more on how we answer questions.

The nodal points of the square region {0 ≤ x ≤ 0.6; 0 ≤ y ≤ 0.6} with mess length 0.2 are given by

\begin{aligned} &x_0=0, x_1=0.2, x_2=0.4, x_3=0.6 \\ &y_0=0, y_1=0.2, y_2=0.4, y_3=0.6 \end{aligned}

The Dirichlet condition (u = 0 ) is given at x = 0, y = 0, y = 0.6, and Neumann condition \left\lgroup\frac{\partial u}{\partial x}=1 \right\rgroup is given at the edge, x = 0.6. The values of u(x, y) have to be determined at the mess points and boundary (x = 0.6).

Let u_{i j}=u\left(x_i, y_j\right) . Now, we have to compute the values u_{11}, u_{12}, u_{21}, u_{22}, u_{31}, u_{32} .

To replace the derivative boundary condition at x = 0.6 with central difference, we have to extend the boundary at x = 0.6.

On replacing the boundary condition \frac{\partial u}{\partial x}=1 \text { at any point }\left(x_i, y_j\right) with central difference, we get

\left.\frac{\partial u}{\partial x}\right|_{\left(x_i, y_j\right)}=\frac{u_{i+1, j}-u_{i-1, j}}{2 h}=1

At the edge x = 0.6(i = 3) and for j = 1, 2, we have

\frac{u_{4,1}-u_{2,1}}{2(0.2)}=1 \quad \Rightarrow u_{4,1}=0.4+u_{2,1}           (16.76)

\frac{u_{4,2}-u_{2,2}}{2(0.2)}=1 \quad \Rightarrow u_{4,2}=0.4+u_{2,2}           (16.77)

On applying standard 5-points formula for calculations at each nodal point, we have

\begin{array}{ll} \text { At }(1,1) & u_{21}+u_{12}-4 u_{11}=0 \\ \text { At }(2,1) & u_{31}+u_{11}+u_{22}-4 u_{21}=0 \\ \text { At }(3,1) & u_{21}+u_{32}+u_{41}-4 u_{31}=0 \end{array}

u_{21}+u_{32}+\left(u_{21}+0.4\right)-4 u_{31}=0          From Eq. (16.76)

\begin{array}{ll} \text { At }(1,2) & u_{22}+u_{11}-4 u_{12}=0 \\ \text { At }(2,2) & u_{12}+u_{21}+u_{32}-4 u_{22}=0 \\ \text { At }(3,2) & u_{31}+u_{22}+u_{42}-4 u_{32}=0 \end{array}

u_{31}+u_{22}+\left(0.4+u_{22}\right)-4 u_{32}=0          From Eq. (16.77)

Equations (16.76) and (16.77) are used to replace values of u_{41} \text { and } u_{42} from equations at nodes (3, 1) and (3, 2). Now, we are left with following six equations

\begin{aligned} &u_{11}=\frac{1}{4}\left(u_{21}+u_{12}\right) \\ &u_{21}=\frac{1}{4}\left(u_{31}+u_{11}+u_{22}\right) \\ &u_{31}=\frac{1}{4}\left(u_{21}+u_{32}+u_{21}+0.4\right) \\ &u_{12}=\frac{1}{4}\left(u_{22}+u_{11}\right) \\ &u_{22}=\frac{1}{4}\left(u_{12}+u_{21}+u_{32}\right) \\ &u_{32}=\frac{1}{4}\left(u_{31}+u_{22}+0.4+u_{22}\right) \end{aligned}

These equations are diagonally dominant, so we can apply Gauss–Seidel method. On solving this system by Gauss–Seidel with initial approximation [0,0,0,0,0,0]^{ T } , we get following iterations

Iteration 1
0.125000 0.000000 0.000000 0.000000 0.000000 0.000000
Iteration 2
0.154687 0.037500 0.000000 0.143750 0.025000 0.000000
Iteration 3
0.167090 0.053125 0.010938 0.162109 0.046875 0.006250
Iteration 4
0.172797 0.060352 0.016895 0.170483 0.057422 0.014453
Iteration 5
0.175454 0.063721 0.019733 0.174376 0.062354 0.018579
Iteration 6
0.176694 0.065292 0.021061 0.176191 0.064655 0.020522
Iteration 7
0.177272 0.066026 0.021680 0.177037 0.065728 0.021429
Iteration 8
0.177542 0.066368 0.021969 0.177432 0.066229 0.021852

The final solution of the Laplace equation is given by

\begin{array}{lll} u_{11}=0.021852 & u_{21}=0.066229 & u_{31}=0.177432 \\ u_{12}=0.021969 & u_{22}=0.066368 & u_{32}=0.177542 \end{array}

25

Related Answered Questions