Professional Documents
Culture Documents
1D Heat Eq - Bendre Schmit Method
1D Heat Eq - Bendre Schmit Method
Using Bender- Schmidt method solve 𝑢𝑥𝑥 − 2𝑢𝑡 = 0 , subject to the conditions
The table for different mesh point values up to t=5 are as follows:
↓ 𝑡𝑗 → 𝑥𝑖 x = 0, i=0 x = 1, i=1 x = 2, i=2 x = 3, i=3 x = 4, i=4
t=0, j=0 0 3 4 3 0
t=1, j=1 0 0+4 3+3 4+0 0
=2 =3 =2
2 2 2
t=2, j=1 0 0+3 2+2 3+0 0
= 1.5 =2 = 1.5
2 2 2
t=3, j=3 0 0+2 1.5 + 1.5 2+0 0
=1 = 1.5 =1
2 2 2
𝑢(0, 𝑡) = 𝑢(1, 𝑡) = 0, 𝑡 ≥ 0 using Bender-Schmidt’s Method. Carry out computations for four
1 1
levels, taking ℎ = 3 , 𝑘 = 18.
Answer: Here the given one dimensional heat equation is 𝑢𝑡 = 𝑢𝑥𝑥 and length of rod is
0 ≤ 𝑥 ≤ 1 . Comparing with standard one dimensional heat equation is 𝑢𝑡 = 𝑐 2 𝑢𝑥𝑥 , we get
1
1 1 𝑐2𝑘 ( )1 1
𝑐 2 = 1. Thus we have given that 𝑐 2 = 1, ℎ = 3 , 𝑘 = 18 & 𝑟 = = 18
1 = 2.
ℎ2 ( )2
3
All the other entries of mesh points, up to four levels are given by recurrence relation by
1
Bender- Schmidt method for 𝑟 = 2 , that is
1
𝑢𝑖,𝑗+1 = [𝑢𝑖−1,𝑗 + 𝑢𝑖+1,𝑗 ]
2
The table for different mesh point values up to four levels are as follows:
↓ 𝑡𝑗 → 𝑥𝑖 x = 0, i=0 x = 1/3, i=1 x = 2/3, i=2 x = 1, i=3
t=0, j=0 0 √3 √3 0
2 2
t=1/18, j=1 0 √3 √3 0
0+ +0
2 = √3 2 =
√3
2 4 2 4
t=2/18, j=1 0 √3 √3 0
0+ +0
4 = √3 4 =
√3
2 8 2 8
t=3/18, j=3 0 √3 √3 0
0+ +0
8 = √3 8 =
√3
2 16 2 16
t=4/18, j=4 0 √3 √3 0
0+ +0
16 = √3 16 =
√3
2 32 2 32
1
𝜕𝑢 𝜕2 𝑢
2𝑥 , 0 ≤𝑥≤2
Q.3. Solve the equation = 𝜕𝑥 2 , subject to the conditions 𝑢(𝑥, 0) = { 1 &
𝜕𝑡
2(1 − 𝑥), ≤𝑥≤1
2
1 1
𝑢(0, 𝑡) = 0 = 𝑢(1, 𝑡) .Taking ℎ = 4 & 𝑘 = 32 up to t = 0.125 using Bender- Schmidt equation.
Answer: Here the given one dimensional heat equation is 𝑢𝑡 = 𝑢𝑥𝑥 and length of rod is
0 ≤ 𝑥 ≤ 1 . Comparing with standard one dimensional heat equation is 𝑢𝑡 = 𝑐 2 𝑢𝑥𝑥 , we get
1
1 1 𝑐2𝑘 ( )1 1
𝑐 2 = 1. Thus we have given that 𝑐 2 = 1, ℎ = 4 , 𝑘 = 32 & 𝑟 = = 32
1 = 2.
ℎ2 ( )2
4
The table for different mesh point values up to four levels are as follows:
↓ 𝑡𝑗 → 𝑥𝑖 x = 0, i=0 x = 1/4, i=1 x = 1/2, i=2 x = 3/4, i=3 x = 1, i=4
t=0, j=0 0 1 1 1 0
2 2
t=1/32, j=1 0 0+1 1 1 1 1+0 1 0
2
=
2 2+2=1 2
=
2
2 2
t=2/32, j=1 0 1 1 1 1 0
0+ + +0 1
2=1 2 2=1 2 =
2 4 2 2 2 4
t=3/32, j=3 0 1 1 1 1 0
0+2 1 4+4=1 2+0=1
=
2 4 2 4 2 4
t=4/32, j=4 0 1 1 1 1 0
0+4 1 4+4=1 4+0=1
=
2 8 2 4 2 8
Q.4. Solve 𝑢𝑥𝑥 = 32𝑢𝑡 subject to the conditions 𝑢(0, 𝑡) = 0, 𝑢(1, 𝑡) = 𝑡 and 𝑢(𝑥, 0) = 0. Find
the values of u up to 𝑡 = 5 by Bender-Schmidt’s process taking h=1/4. Also find the following
values, (𝑖) 𝑢(0.75,4) (ii) (0.5,5) (𝑖𝑖𝑖)𝑢(0.25,4).
1
Answer: Here the given one dimensional heat equation is 𝑢𝑡 = 32 𝑢𝑥𝑥 and length of rod is
0 ≤ 𝑥 ≤ 1 . Comparing with standard one dimensional heat equation is 𝑢𝑡 = 𝑐 2 𝑢𝑥𝑥 , we get
1
1 𝑐2𝑘 ( )𝑘 𝑘
2 2 32
𝑐 = 1/32. Thus we have given that 𝑐 = 1/32, ℎ = 4 , & 𝑟 = = 1 = 2. For Bender-
ℎ2 ( )2
4
1 𝑘
Schmidt method 𝑟 = 1/2. Thus, = 𝑜𝑟 𝑘 = 1.
2 2
All the other entries of mesh points, up to four levels are given by recurrence relation by
1 1
Bender- Schmidt method for 𝑟 = 2 , that is 𝑢𝑖,𝑗+1 = [𝑢𝑖−1,𝑗 + 𝑢𝑖+1,𝑗 ]
2
The table for different mesh point values up to four levels are as follows:
↓ 𝑡𝑗 → 𝑥𝑖 x = 0, i=0 x = 1/4, i=1 x = 1/2, i=2 x = 3/4, i=3 x = 1, i=4
t=0, j=0 0 0 0 0 0
t=1, j=1 0 0+0 0+0 0+0 1
=0 =0 =0
2 2 2
t=2, j=1 0 0+0 0+0 1+0 1 2
=0 =0 =
2 2 2 2
t=3, j=3 0 0+0 1 0+2 3
=0 0+2 1 =1
2 = 2
2 4
t=4, j=4 0 1 0+1 1 1 4
0+4 1 = 4 + 3 = 13
= 2 2
2 8 2 8
t=5, j=5 0 1 1 13 1 5
0+2
=
1 8+ 8 =7 2+4=9
2 4 2 8 2 4
The values, (𝑖)𝑢(0.75,4) = 13/8 (ii) (0.5,5) = 7/8 (𝑖𝑖𝑖)𝑢(0.25,4) = 1/8.
Q.5. Solve 𝑢𝑥𝑥 = 𝑢𝑡 subject to the 𝑢(0, 𝑡) = 0 = 𝑢(5, 𝑡 ) 𝑎𝑛𝑑 𝑢(𝑥, 0) = 𝑥 2 (25 − 𝑥 2 )
Answer: Here the given one dimensional heat equation is 𝑢𝑡 = 𝑢𝑥𝑥 and length of rod is
0 ≤ 𝑥 ≤ 5 . Comparing with standard one dimensional heat equation is 𝑢𝑡 = 𝑐 2 𝑢𝑥𝑥 , we get
𝑐2𝑘 1𝑘
𝑐 2 = 1. Thus we have given that 𝑐 2 = 1, ℎ = 1, & 𝑟 = = (1)2 = 𝑘. For Bender-Schmidt
ℎ2
1
method 𝑟 = 1/2. Thus, = 𝑘 𝑜𝑟 𝑘 = 0.5.
2
The table for different mesh point values up to four levels are as follows:
↓ 𝑡𝑗 → 𝑥𝑖 x = 0, x = 1, i=1 x = 2, i=2 x = 3, i=3 x = 4, i=4 X=5,i=
i=0 5
t=0, j=0 0 24 84 144 144 0
t=0.5, j=1 0 0 + 84 24 + 144 84 + 144 144 + 0 0
= 42 = 84 = 114 = 72
2 2 2 2
t=1, j=2 0 0 + 84 42 + 114 84 + 72 144 + 0 0
= 42 = 78 = 78 = 72
2 2 2 2
t=1.5, j=3 0 0 + 78 42 + 78 78 + 72 78 + 0 0
= 39 = 60 = 75 = 39
2 2 2 2
t=2, j=4 0 0 + 60 39 + 75 60 + 39 75 + 0 0
= 30 = 57 = 49.5 = 37.5
2 2 2 2
t=2.5, j=5 0 0 + 57 30 + 49.5 57 + 37.5 49.5 + 0 0
= 28.5
2 2 2 2
= 39.75 = 47.25 = 24.75
Q.6. Solve 𝑢𝑥𝑥 = 2𝑢𝑡 with 𝑢(0, 𝑡) = 0 , 𝑢(12, 𝑡) = 9 , 𝑓𝑜𝑟 0 ≤ 𝑡 ≤ 27 𝑎𝑛𝑑 𝑢(𝑥, 0) =
𝑥
(15 − 𝑥) 𝑓𝑜𝑟 0 ≤ 𝑥 ≤ 12 by taking h=3 by Bender-Schmidt method.
4
1
Answer: Here the given one dimensional heat equation is 𝑢𝑡 = 2 𝑢𝑥𝑥 and length of rod is
0 ≤ 𝑥 ≤ 12 . Comparing with standard one dimensional heat equation is 𝑢𝑡 = 𝑐 2 𝑢𝑥𝑥 , we get
1
𝑐2𝑘 ( )𝑘 9𝑘
𝑐 2 = 1/2. Thus we have given that 𝑐 2 = 1/2, ℎ = 3, & 𝑟 = = 2
= . For Bender-Schmidt
ℎ2 (3)2 2
1 9𝑘
method 𝑟 = 1/2. Thus, = 𝑜𝑟 𝑘 = 9.
2 2
All the other entries of mesh points, up to four levels are given by recurrence relation by
1 1
Bender- Schmidt method for r = 2 , that is 𝑢𝑖,𝑗+1 = [𝑢𝑖−1,𝑗 + 𝑢𝑖+1,𝑗 ]
2
The table for different mesh point values up to four levels are as follows:
↓ 𝑡𝑗 → 𝑥𝑖 x = 0, i=0 x = 3, i=1 x = 6, i=2 x = 9, i=3 x = 12, i=4
Answer: Here the given one dimensional heat equation is 𝑢𝑡 = 0.5𝑢𝑥𝑥 and length of rod is
0 ≤ 𝑥 ≤ 8 . Comparing with standard one dimensional heat equation is 𝑢𝑡 = 𝑐 2 𝑢𝑥𝑥 , we get
𝑐2𝑘 0.5(1)
𝑐 2 = 0.5. Thus we have given that 𝑐 2 = 1, ℎ = 1, 𝑘 = 1 & 𝑟 = = = 0.5.
ℎ2 (1)2
All the other entries of mesh points, up to four levels are given by recurrence relation by
1 1
Bender- Schmidt method for 𝑟 = 2 , that is 𝑢𝑖,𝑗+1 = [𝑢𝑖−1,𝑗 + 𝑢𝑖+1,𝑗 ]
2
The table for different mesh point values up to four levels are as follows:
↓ 𝑡𝑗 → 𝑥𝑖 x = 0, x = 1, x = 2, x = 3, i=3 x = 4, x=5,i=5 x=6,i=6 x=7,i=7 x=8,i=8
i=0 i=1 i=2 i=4
t=0, j=0 0 3.5 6 7.5 8 7.5 6 3.5 0
t=1, j=1 0 3 5.5 7 7.5 7 5.5 3 0
t=2, j=2 0 2.75 5 6.5 7 6.5 5 2.75 0
t=3, j=3 0 2.5 4.625 6 6.5 6 4.625 2.5 0
t=4, j=4 0 2.3125 4.25 5.5625 6 5.5625 4.25 2.3125 0
t=5,j=5 0 2.125 3.9375 5.125 5.5625 5.125 3.9375 2.125 0