9.6 KB · commit a9602da
The function u(x,y) satisfies Laplace’s equation at all points within the squares given below and has the boundary values as indicated. Compute a solution correct to two decimal places by the finite difference method (Problems 9.1–9.6).
9.1

9.2

9.3

9.4

9.5

9.6

9.7 Solve ∂x2∂2u+∂y2∂2u=0 for the temperature of the heated plate for the square region shown in the figure below. Use successive over relaxation with ω=1.5 and determine the temperatures at the internal mesh points upto the third iteration. Give an estimate of the per cent error in the value of u22.

9.8 Solve Laplace’s equation with h=1/3 over the boundary of a square of unit length with u(x,y)=9x2y2 on the boundary.
9.9 Write down the finite difference analogue of the equation uxx+uyy=0 and solve it for the square region given below.

With h=k=1.0, use the Gauss–Seidel method to compute, correct two decimal places, values of u at the internal mesh points.
9.10 Solve Poisson’s equation ∇2u=8x2y2 for the square grid shown below (h=1).

9.11 Use the Bender–Schmidt formula to solve the problem
utu(0,t)andu(x,0)=5uxx,=0,u(5,t)=60,={20x,60,0≤x≤33≤x≤5With h=1 and l=0.5, compute the values of u(x,0.5), u(x,1.0) and u(x,1.5) for 1≤x≤4.
9.12 Solve the equation ∂t∂u=∂x2∂2u with the conditions
u(x,0)andu(0,t)=sinx,0≤x≤π=u(π,t)=0,t>0.Compare the values obtained by Bender–Schmidt, Crank–Nicolson and Cubic Spline formulae for u(2π,16π2).
9.13 Use the explicit formula to solve the equation ∂t∂u=∂x2∂2u with the conditions u(0,t)=u(5,t)=0 and u(x,0)=x2(25−x2). With h=1 and l=0.5, tabulate the values of uik for i=0,1,2,3,4,5 and k=0,1,2.
9.14 Solve the heat equation ∂t∂u=∂x2∂2u subject to the conditions u(x,0)=0<u(0,t)=0 and u(1,t)=t. With h=41 and l=161, compute the value of u(21,81) using Crank–Nicolson formula.
9.15 Solve the heat conduction equation ∂t∂u=∂x2∂2u with the conditions u(x,0)=sinx, 0≤x≤π, ∂t∂u(0,t)=e−t and ∂x∂u(π,t)=−e−t. Using Crank–Nicolson and cubic spline formulae. Taking h=2π and l=420π2, compute u(2π,420π2). Compare with the exact value.
9.16 Derive a cubic spline finite difference formula for the solution of the equation ∂t∂u=a∂x2∂2u+b∂x∂u+cu(a,b,c being constants) with the conditions u(x,0)=g(x), 0≤x≤a and ∂t∂u(0,t)=f1(t) and ∂t∂u(a,t)=f2(t).
9.17 Du Fort–Frankel formula: The formula uik+1=1+2r1−2ruik−1+1+2r2r(ui−1k+ui+1k) where r=h2l, is known as Du Fort–Frankel formula for the solution of the one-dimensional heat equation ∂t∂u=∂x2∂2u. It is a three level
formula since we require function values on (k−1)th and kth time levels in order to compute those on the (k+1)th time level. Solve the equation given above with the conditions u(x,0)=sinx, 0≤x≤π and u(0,t)=u(π,t)=0 using both the explicit and Du Fort–Frankel formulae with h=4π and l=32π2. Estimate the value of u(2π,16π2) and compare with the exact value.
9.18 Order of Accuracy of Finite Difference Formulae: The explicit formula uik+1=r(ui−1k+ui+1k)+(1−2r)uik is an approximation to the one-dimensional heat equation ∂t∂u=∂x2∂2u. Expanding both sides of this formula by Taylor’s series, we obtain uik+1−r(ui−1k+ui+1k)−(1−2r)uik=(2l2−12lh2)[∂t2∂2u]i,k+⋯ In such a case, we say that the local order of accuracy of the explicit formula is O(l+h2). This is also called the local truncation error of the formula. Show that the local truncation error of the Crank–Nicolson formula is O(l2+h2).
9.19 Show that the local truncation error of formula given in Eq. (9.69) is given by 12k2h2(α2−1)∂x4∂4u+360k2h4(α4−1)∂x6∂6u+⋯
9.20 Solve the equation ∂t2∂2u=∂x2∂2u with the conditions u(0,t)=u(1,t)=0, u(x,0)=sinπx, and ∂t∂u(x,0)=0. Taking h=0.25 and l=0.2, compute u(0.5,0.4) in two time steps and compare your result with the exact solution given by u(x,t)=sinπxcosπt.
9.1 u1=3.33, u2=6.67, u3=3.67, u4=7.33.
9.2 u1=26.7, u2=33.3, u3=43.3, u4=46.7.
9.3 u1(5)=43.33, u2(5)=46.66, u3(5)=26.66, u4(5)=33.33.
9.4 u1(6)=0.498, u2(6)=0.9998, u3(6)=0.9998, u4(6)=2.4999.
9.5 12th iteration values
u1u4u7=15,=13.75,=15,u2u5u8=16.25,=15,=16.25,u3u6u9=15=13.75=15.9.6
u1u5=15,=20,u2u6=20,=20,u3u7=25,=25,u4u8=20,=20,u9=15.9.7
u11(1)u12(1)u13(1)=26.25,=36.09375,=69.785156,u21(1)u22(1)u23(1)=9.84375,=17.226562,=62.629394,u31(1)u32(1)u33(1)=10.691406=25.469238=78.036987.Second iteration values: Error in u22(2)=65%
Third iteration: Error in u22(3)=13%.
9.8 See Problem 9.4.
9.9
u1u4u7=1.57,=2.06,=2.09,u2u5u8=3.70,=4.69,=4.92,u3u6u9=6.57,=8.06,=9.00.9.10 u11=−13, u21=u12=−22, u22=−43.
9.11

9.12 (a) Error=0.03964, (b) Error=0.00728, (c) Error=0.00728.
9.13
| k\i | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| 0 | 0 | 24.0 | 84.0 | 144.0 | 144.0 | 0 |
| 1 | 0 | 42.0 | 78.0 | 78.0 | 57.0 | 0 |
| 2 | 0 | 39.0 | 60.0 | 67.5 | 39.0 | 0 |
9.14 u12=0.005899, u22=0.019132, u32=0.052771. Exact values are u(41,81)=0.00541,u(21,81)=0.01878,u(43,81)=0.05240.
9.15 Exact solution is u(x,t)=e−tsinx. u11=0.659726(error=0.0837) Spline solution u11=0.6415(error=0.0655)
9.17 Exact solution is u(2π,t)=e−t Explicit formula:
k=0k=1k=2:Error in u41=0.0011,:Error in u42=0.0020,:Error in u43=0.0028.Du Fort–Frankel formula Error in u42=0.0016
9.20 u22≈u(0.5,0.4)=0.320469, Exact u(0.5,0.4)=0.309017.