Exercise 4.4.3

Answers

The Laplace with 3 variables is 2u x2 + 2u y2 + 2u z2 = f(x,y,z)

In 2D grid, we have x,y discrete points on a N × N grid, and we need compute the derivatives on all the (xi,yi) grid points w.r.t. x and y separately. So for x component, we have Kx = IN DN, which has N2 points. Also Ky = DN IN.

Now in 3D grid, we will have x,y,z on N3 discrete points. We need compute the derivatives w.r.t x,y,z each on N3 cubic grid points. Suppose we have the 2D matrix Kx, that is for one z value, image we repeat this for N of z values, that requires a IN Kx = IN IN DN matrix, which has N3 dimension.

Similarly we find the Ky,Kz, so the final K = Kx + Ky + Kz = IN IN DN + IN DN IN + DN IN IN

User profile picture
2020-03-20 00:00
Comments