Sie sind auf Seite 1von 7

LisanEldeen Galhoud

Question1:
For the square 0x4 ,0y4 let the boundary temperatures be 0C
on the horizontal and 50C on the vertical edges find the temperatures
at the interior points of square grid with 0C
h=1. 4

3
Solution: U13 U23 U33

As we see the square their similarity so the

50C

50C
2
unknown reduced to be: U12 U22 U32

U11 = U13 = U31 = U33 = U1 1


U11 U21 U31
U21 = U23 = U2
0
U12 = U32 = U3 1 2 3 4
0C
U22 = U4
At new unknown find U where:
0C
4
1

3
U1 U2 U1
1 -4 1 .U=0
50C

50C
2
U3 U4 U3

1 1
U1 U2 U1

0
1 2 3 4
Ui+1,j + Ui1,j + Ui,j+1 + Ui,j1 4Ui,j = 0 0C

4U1 U2 U3 = 50
4U2 2U1 U4 = 0
4U3 2U1 U4 = 50
44 22 23 = 0

[1]
LisanEldeen Galhoud

1 4 1 1 0 1 50
0 1] [ 0 ]
[ 2 ] = [2 4
3 2 0 4 1 50
4 0 2 2 4 0
1 = 25 = U11 = U13 = U31 = U33
2 = 18.75 = U21 = U23
3 = 31.25 = U12 = U32
4 = 25 = U22
Question 2:

For the grid in figure below compute the potential at the four internal
points by finite difference method if the boundary values on the edges
are:
= 0 , 3 , 27
9 2 , 3
U=0

3 27 .

2 U12 U22
Solution:
The region defined by Laplace equation so the
1
solution U11 U21
will be:
0
1
1 2 3

U= 1 -4 1 .U=0

First find the boundary points values:


At left all points are zeros.
At lower boundary points defined by U = 3
U10 = 1 , U20 = 23 = 8

[2]
LisanEldeen Galhoud

At the upper boundary pointes defined by U = 3 27


U13 = 26 , U23 = 46
At the right boundary points defined by U13=-26 U23=-46
U = 27 9 2
U31 = 18 , U32 = 9 U02=0 U32=-9
U12 U22
Finding the unknown function depending
on equation: U01=0 U31=18
U11 U21
Ui+1,j + Ui1,j + Ui,j+1 + Ui,j1 4Ui,j = 0
4U11 U21 U12 = 1 U10=1 U20=8

4U21 U11 U22 = 18 + 8


4U12 U11 U22 = 26
4U22 U12 U21 = 46 9
11 4 1 1 0 1 1
0 1] [ 26 ]
[ 21 ] = [1 4
12 1 0 4 1 26
22 0 1 1 4 55

11 = 2 , 21 = 2 , 12 = 11, 22 = 16

Question 3:

Solve the mixed boundary value problem for Poisson equation:


2 U = 12xy on square of figure below , where h = 0.5.
y
Solution:
du/dy=6x
1
First we find the boundary points:
At right edge points defined by U = 3 3 U=0 U=6xy U=3y

U13 = 3(0.5)3 = 0.375, U23 = 3


x
At the upper edge points are unknown too and U=0 1.5
defined by derivative du/dy=6x so we imagine

[3]
LisanEldeen Galhoud

the region to be extended above the first row (corresponding to y=1.5).

1.5
1 U13 U23

1 U=3
U= .U=hf(x,y) U12 U22
1 -4 1

U=0
U=0.375
U11 U21
1

U=0 1.5
For Poisson equation solution is:

At the internal points: (U11 , U21 )


411 + 21 + 12 = (0.5)2 . 12(0.5 0.5) = 0.75
421 + 11 + 22 = 3. (0.5) 0.375 = 1.125
At the boundary points: (U12 , U22 )
11 412 + 13 + 22 = 1.5
12 422 + 21 + 23 = 0
12 13 11
= 6 13 = 11 + 3
2
22 23 21
= 6 23 = 21 + 6
2

4U11 + U21 + U12 = 0.75


4U21 + U11 + U22 = 1.125
4U12 + 2U11 + U22 = 1.5
4U22 + U12 + 2U21 = 6
11 4 1 1 0 1 0.75

[ 21 ] = [1 4 0 1] [1.125]
12 2 0 4 1 1.5
22 0 2 1 4 6

[4]
LisanEldeen Galhoud

11 = 0.0769 , 21 = 0.191 , 12 = 0.8665, 22 = 1.18121

Question 4:

Solve the Laplace equation in the region and for


y
the boundary values shown in figure below using
indicated grid the sloping portion of the boundary U=0
3
is y=4.5-x. U=x-1.5x

U=0
U12 U22

Solution: 1
U11 U21
U=9-3y

First we find the boundary points values: 0 x


1 2 3
U=3x
At left boundary all points are zeros.
At upper boundary all points are zeros.
At lower boundary the points are: U10 = 3, U20 = 6
At right boundary: U31 = 9 3(1) = 6
Points at slope: Ub2 = 2.5, U2a = 1
For unknown points U11 , U21 , U12 solution is:

1 U=0
3
U=1

2 U=2.5
U=0

U= 1 -4 1 .U=0 U12 U22

1 U=6
U11 U21

1 0 x
1 2 3
U=3 U=2
For unknown point U22 , use equation:
2 ( + ) 0
2 0 ( + + + )
2 ( + ) ( + ) ( + ) ( + )
from the grid at this point we find:
B
a=b=1/2, p=q=1 so the solution is:
bh
qh ah
Q A

ph
[5]

P
LisanEldeen Galhoud

4/3
{3/2 4 4/3} . U = 0
3/2

The system of equations:


4U11 U21 U12 = 3
4U21 U11 U22 = 0
4U12 U11 U22 = 12
12U22 2U12 2U21 = 14
11 4 1 1 0 1 3
0 1 ] [ 0 ]
[ 21 ] = [ 1 4
12 1 0 4 1 12
22 0 2 2 12 14

11 = 2 , 21 = 4 , 12 = 1, 22 = 2

Question 5:

Use finite difference method to approximate the solution to the elliptic



PDE: + =0 0 < < 1, 0 < < 2 & = = 0.5
2 2
(, 0) = 2 , (, 2) = ( 2)2 , (0, ) = 2 , (1, ) = ( 1)2
Solution:
1
= {1 4 1} . U = 2 (, )
2 U(x,2)=(x-2)
2
1
4U11 + U12 = (0.5)2 . (4) + 3. (0. 52 )
1.5
U(1,y)=(y-1)

U11 4U12 U13 = 0 U13


U(0,y)=y

U12 4U13 = 3.75 1


U12

0.5
U11

0
[6] 0.5 1
U(x,0)=x
LisanEldeen Galhoud

11 4 1 0 0.25

[ 12 ] = [ 1 4 1 ] [ 0 ]
13 0 1 4 3.75

U11 = 0, U12 = 0.25, U13 = 1

Question 6:

Solve the mixed boundary value problem for the Laplace equation
(U=0) in the rectangle in figure shown and the
boundary conditions:
U=x-1
2 1
U,x = 0 on the left, U = x on the lower edge,

u/ x=0

u/ x=3
U,x = 3on the right , U = x 2 1 on the upper.
U11 U21
Solution:
1
0 = 01, = (U Ua1 )givesU11 = 1 . U=x
2h 11 1.5

Similarly, Ub1 = U21 + 3 from the condition


on the right edge, so that the equations are

4U01 + Ua1 + U11 = 1 1


U=-0.75 U=0

4U11 + U01 + U21 = 0.25


4U21 + U11 + U31 = 1 Ua1 U01 U11 U21 U31 Ub1
4U31 + U21 + Ub1 = 3.5
01 4 2 0 0 1 1 U=0.25 U=1 1.5

[ 11 ] = [1 4 1 0] [ 0.25 ]
21 0 1 4 1 1
31 0 0 2 4 6.5

01 = 0.25 , 11 = 0 , 21 = 0.75, 31 = 2

[7]

Das könnte Ihnen auch gefallen