Você está na página 1de 33

# BACHELOR OF ENGINEERING (HONS) CHEMICAL

ENGINEERING
UEMM 3243 ENGINEERING ANALYSIS ASSIGNMENT

GROUP ASSIGNMENT

Name

Student ID

Year / Trimester

Contribution

1204443

Y2S3
Y2S3

100%

1205040

## Name of lecturer: Ir. Dr. Lim Ying Pio

Marks:

100%

Signature

Question 1

u ( x , t )=F ( x ) G ( t )
G(t)not given so:

u ( x , t )=F ( x )
F ( x )=( Bn cos n t ) sin

Where L=1,

n =

n
x
L

cn
L ,

c=

Where B n :
L

B n=

2
dx
f ( x ) sin nx
L0
L
nx
dx
L

1
3

f ( x ) sin
0

nx
dx+ f ( x ) sin
L
1
3

2

1
1
3

2
0

3 ( 1x )
3
nx
nx
x sin
dx+2
sin
dx
10
L
20
L
1
3

1
3

3
nx
3
nx
x sin
dx + ( 1x ) sin
dx

5 0
L
10 1
L
3

1
3

3
3
nx
3
nx
dx + sin
dx x sin
dx
x sin nx
5 0
L
10 1
L
10 1
L

+
0 +
1
+
1
5
n
10
n
5
n
( n )2
( n )2 3
3

] [

] [

1
1
1
1
1
sin n cos n
cos n
cos n sin n
3
3
3
3 cos nx
3
3 cos nx sin n
3
3

+
+

2
2
5 ( n )
3 n
10
n
n
10
n
3 n
( n )
( n )2

1
1
1
1
1
1
sin n
cos n
cos n
cos n
sin n
sin n
3
3
1
3
3
3
3 sin n 1
3
3
3
9
3
3 sin n

+
=

2
2
2
2
5 ( n )
5 n
10 n
10 ( n )
10 n
10 ( n )
10 ( n )
10 ( n )2

Bn =

1
sin n
9
3
10 ( n )2

Bn

## F ( x )=( Bn cos nt ) sin nx :

into

1
n
9
3
10 ( n )2
()sin nx n=0,1,2,
F ( x )=
sin

## sin n=0 for n=n=0,1,2, , simplify :

1
sin n
9
3
u ( x , t )= (
) cos nt sin nx n=0,1,2,
10 ( n )2

For t = 0
u(x,t)
0.00000
0.02440
0.04642
0.06388
0.07510
0.07896
0.07509

Bn
0.07896
0.07896
0.07896
0.07896
0.07896
0.07896
0.07896

cosnt
1.00000
1.00000
1.00000
1.00000
1.00000
1.00000
1.00000

sinnpix
0.00000
0.30906
0.58785
0.80909
0.95111
1.00000
0.95098

n
1.00000
1.00000
1.00000
1.00000
1.00000
1.00000
1.00000

x
0.00000
0.10000
0.20000
0.30000
0.40000
0.50000
0.60000

t
0.00000
0.00000
0.00000
0.00000
0.00000
0.00000
0.00000

0.06386
0.04639
0.02437
-0.00003

0.07896
0.07896
0.07896
0.07896

1.00000
1.00000
1.00000
1.00000

0.80885
0.58752
0.30867
-0.00041

1.00000
1.00000
1.00000
1.00000

0.70000
0.80000
0.90000
1.00000

0.10000
0.08000
0.06000

u(x,t)

0.04000
0.02000
0.00000
0.00000
-0.02000

0.20000

0.40000

0.60000

0.80000

1.00000

1.20000

For t = 0.5
u(x,t)
0.0000E+00
2.1415E-02
4.0733E-02
5.6063E-02
6.5904E-02
6.9292E-02
6.5895E-02
5.6047E-02
4.0711E-02
2.1388E-02
-2.8226E-05

Bn
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02
7.8958E-02

cosnt
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01
8.7758E-01

sinnpix
0.0000E+00
3.0906E-01
5.8785E-01
8.0909E-01
9.5111E-01
1.0000E+00
9.5098E-01
8.0885E-01
5.8752E-01
3.0867E-01
-4.0735E-04

n
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00
1.0000E+00

x
0.0000E+00
1.0000E-01
2.0000E-01
3.0000E-01
4.0000E-01
5.0000E-01
6.0000E-01
7.0000E-01
8.0000E-01
9.0000E-01
1.0000E+00

t
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01
5.0000E-01

0.00000
0.00000
0.00000
0.00000

1.2000E+01
1.0000E+01
8.0000E+00

u(x,t)

6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

For t = 1.0
u(x,t)
0.0000E+
00
1.3185E02
2.5078E02
3.4517E02
4.0575E02
4.2661E02
4.0570E02
3.4506E02
2.5064E02
1.3168E02
-1.7378E05

Bn
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02

cosnt
5.4030E01
5.4030E01
5.4030E01
5.4030E01
5.4030E01
5.4030E01
5.4030E01
5.4030E01
5.4030E01
5.4030E01
5.4030E01

sinnpix
0.0000E+
00
3.0906E01
5.8785E01
8.0909E01
9.5111E01
1.0000E+
00
9.5098E01
8.0885E01
5.8752E01
3.0867E01
-4.0735E04

n
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00

x
0.0000E
+00
1.0000E01
2.0000E01
3.0000E01
4.0000E01
5.0000E01
6.0000E01
7.0000E01
8.0000E01
9.0000E01
1.0000E
+00

t
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00
1.0000E
+00

1.2000E+01
1.0000E+01
8.0000E+00

u(x,t)

6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

For t =1.5
u(x,t)
0.0000E
+00
1.7262E03
3.2833E03
4.5190E03
5.3122E03
5.5853E03
5.3115E03
4.5176E03
3.2815E03
1.7240E03
-2.2751E06

Bn
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02

cosnt
7.0737E02
7.0737E02
7.0737E02
7.0737E02
7.0737E02
7.0737E02
7.0737E02
7.0737E02
7.0737E02
7.0737E02
7.0737E02

sinnpix
0.0000E
+00
3.0906E01
5.8785E01
8.0909E01
9.5111E01
1.0000E
+00
9.5098E01
8.0885E01
5.8752E01
3.0867E01
-4.0735E04

n
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00

x
0.0000E
+00
1.0000E01
2.0000E01
3.0000E01
4.0000E01
5.0000E01
6.0000E01
7.0000E01
8.0000E01
9.0000E01
1.0000E
+00

t
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00
1.5000E+
00

1.2000E+01
1.0000E+01
8.0000E+00

u(x,t)

6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

For t = 2.0
u(x,t)
0.0000E
+00
-1.0155E02
-1.9316E02
-2.6585E02
-3.1251E02
-3.2858E02
-3.1247E02
-2.6577E02
-1.9305E02
-1.0142E02
1.3385E05

Bn
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02

cosnt
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01
-4.1615E01

sinnpix
0.0000E
+00
3.0906E01
5.8785E01
8.0909E01
9.5111E01
1.0000E
+00
9.5098E01
8.0885E01
5.8752E01
3.0867E01
-4.0735E04

n
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00

x
0.0000E
+00
1.0000E01
2.0000E01
3.0000E01
4.0000E01
5.0000E01
6.0000E01
7.0000E01
8.0000E01
9.0000E01
1.0000E
+00

t
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00
2.0000E+
00

1.2000E+01
1.0000E+01
8.0000E+00

u(x,t)

6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

For t = 2.5
u(x,t)
0.0000E
+00
-1.9550E02
-3.7185E02
-5.1180E02
-6.0164E02
-6.3257E02
-6.0156E02
-5.1165E02
-3.7165E02
-1.9525E02
2.5767E05

Bn
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02

cosnt
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01
-8.0114E01

sinnpix
0.0000E
+00
3.0906E01
5.8785E01
8.0909E01
9.5111E01
1.0000E
+00
9.5098E01
8.0885E01
5.8752E01
3.0867E01
-4.0735E04

n
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00

x
0.0000E
+00
1.0000E01
2.0000E01
3.0000E01
4.0000E01
5.0000E01
6.0000E01
7.0000E01
8.0000E01
9.0000E01
1.0000E
+00

t
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00
2.5000E+
00

1.2000E+01
1.0000E+01
8.0000E+00

u(x,t)

6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

For t = 3.0
u(x,t)
0.0000E
+00
-2.4158E02
-4.5951E02
-6.3245E02
-7.4346E02
-7.8168E02
-7.4336E02
-6.3226E02
-4.5925E02
-2.4128E02
3.1841E05

Bn
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02

cosnt
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01
-9.8999E01

sinnpix
0.0000E
+00
3.0906E01
5.8785E01
8.0909E01
9.5111E01
1.0000E
+00
9.5098E01
8.0885E01
5.8752E01
3.0867E01
-4.0735E04

n
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00

x
0.0000E
+00
1.0000E01
2.0000E01
3.0000E01
4.0000E01
5.0000E01
6.0000E01
7.0000E01
8.0000E01
9.0000E01
1.0000E
+00

t
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00
3.0000E+
00

1.2000E+01
1.0000E+01
8.0000E+00

u(x,t)

6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

For t = 3.5
u(x,t)
0.0000E
+00
-2.2852E02
-4.3466E02
-5.9824E02
-7.0325E02
-7.3941E02
-7.0316E02
-5.9807E02
-4.3442E02
-2.2823E02
3.0119E05

Bn
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02

cosnt
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01
-9.3646E01

sinnpix
0.0000E
+00
3.0906E01
5.8785E01
8.0909E01
9.5111E01
1.0000E
+00
9.5098E01
8.0885E01
5.8752E01
3.0867E01
-4.0735E04

n
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00

x
0.0000E
+00
1.0000E01
2.0000E01
3.0000E01
4.0000E01
5.0000E01
6.0000E01
7.0000E01
8.0000E01
9.0000E01
1.0000E
+00

t
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00
3.5000E+
00

u(x,t)

1.2000E+01
1.0000E+01
8.0000E+00
6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

For t = 4.0
u(x,t)
0.0000E
+00
-1.5950E02
-3.0339E02
-4.1757E02
-4.9087E02
-5.1610E02
-4.9080E02
-4.1745E02
-3.0322E02
-1.5930E02
2.1023E05

Bn
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02
7.8958E02

cosnt
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01
-6.5364E01

sinnpix
0.0000E
+00
3.0906E01
5.8785E01
8.0909E01
9.5111E01
1.0000E
+00
9.5098E01
8.0885E01
5.8752E01
3.0867E01
-4.0735E04

n
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00
1.0000E+
00

x
0.0000E
+00
1.0000E01
2.0000E01
3.0000E01
4.0000E01
5.0000E01
6.0000E01
7.0000E01
8.0000E01
9.0000E01
1.0000E
+00

t
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00
4.0000E+
00

## Graph of u(x,t) against x

1.2000E+01
1.0000E+01
8.0000E+00

u(x,t)

6.0000E+00
4.0000E+00
2.0000E+00
0.0000E+00
0.00

0.20

0.40

0.60

0.80

1.00

1.20

Question 2
Part (a) Solve Poisson Equation by using analytical method:

Where g1(y) =0; g2(y) = y ; f1(x) = 0 ; f2(x) = x ; a=1 ; b=1 ; f (x,y) =2xy
General solution, u(x,y) =

U A + UB

U A = U 1 + U 2 +U 3 +U 4
U 1 = g1(y) =0
U 3 = f1(x) = 0

A n sin

U 2 = u ( x , 1)

n=1

A n sin
n=1

An

2
n
sin h
1

( )

n
n
x sinh
( y)
a
a

n
n
x sinh
( y)
1
1

( x ) sin nx dx
0

2
cos n sin n
(
+ 2 2)
n
sin h ( n )
n

2(1)n
= n sin h ( n )

n
where sin n=0 , cos n =(1)

U 2 = u ( x , 1)

(1 )
2

sin n x sinh n y

n=1 n sin h ( n )

U 4 = u ( 1, y )

B n sin h

n=1

B n sin
n=1

Bn

n
n y
x sin
b
b

n
n
x sinh
( y)
1
1

2
n
sin h( )
1

------------ (1)

( y ) sin ny dy
0

2
cos n sin n
(
+ 2 2)
n
sin h ( n )
n

2(1)
n sin h ( n )

n
where sin n=0 , cos n =(1)

(1 )
U 4 = u ( 1, y ) =2
sinh nx sin ny

n sin h ( n )
n=1

UA

--------------- (2)

U 1 + U 2 +U 3 +U 4

(1 )n
+2
sin n x sinh n y

= 0+0
n=1 n sin h ( n )

(1 )n
2
sinh n x sin n y

n =1 n sin h ( n )

ny
sin n x sinh ny +sin h n x sin
n

=
(1 )
2

n=1 n sin h ( n )

m
n

## = n=1 Cmn sin a x sin b y

m=1

UB

m
x ) sin n y dxdy
( 2 xy ) ( sin
1
1

4
C mn=

ab mn 0
2

m
n
+( ) = 2 ( m2 +n 2)
a
b

( )

mn =

where a = b = 1

## ( 2 xy ) (sin m x) ( sin n y ) dxdy

1

Cmn =

2
2
2
(m +n ) 0
1

8
x sin m x dx y sin n ydy
2
( m2+ n2 ) 0
0

8
cos m sin m 1
cos n sin n 1
x
2 2 y
2 2
2
2
m

n
0
m
n 0
(m + n )

8
cos m
2
2
m
(m + n )

[
[

] [

][

cos n
n

8
[ cos m ][ cos n ]
= 4 mn ( m2+ n2 )

8 (1 )m (1 )n
4 mn ( m2 +n2 )

]
m
n
where cos m =(1 ) ; cos n =(1 )

UB

8 (1 )m+n
4 mn ( m 2+ n2 )

(1 )m +n
8
sin m x sin n y
= 4
2
2
n=1 m=1 mn ( m +n )

Therefore,
U(x,y) = U A + U B
ny
sin n x sinh ny +sin h n x sin
n

=
(1 )
2

n=1 n sin h ( n )

(1 )m +n
8
sin m x sin n y

+ 4
2
2
n=1 m=1 mn ( m +n )

Then, we can generate the values at each node by referring to U(x,y) equation with the help
of Microsoft Excel.

Following figure show the comparing using the formula to calculate to compare answer by
Excel:

## The equation used to find all points is

Tm , n 1 Tm , n 1 Tm 1, n Tm 1, n 4Tm , n 0
For point m = 5, n = 1

## T5, 2 + T5, 2 + T6, 1 + T4, 1 - 4T5, 1 = 0

(0.0826) + (0) + (0.0322) + (0.0507) 4T5, 1 = 0
T5, 1 = 0.0411

Comparison of results from part (a) analytical method and part (b) numerical method
X

Analytical Method

Numerical Method

0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9

0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9

0.0078
0.0316
0.0725
0.1323
0.2134
0.3184
0.4497
0.6091
0.7957

0.0078
0.0316
0.0725
0.1323
0.2135
0.3184
0.4497
0.6091
0.7957

Therefore, we can conclude that the results obtained from analytical method are similar to the
results obtained from numerical method. So, analytical method can be verified by numerical
method.

Question 3
Part (i) Using numerical method to solve Laplace Equation

## The equation used to solve 36 points is :

Tm , n 1 Tm , n 1 Tm 1, n Tm 1, n 4Tm , n 0
For example: m = 1, n = 1
T1, 2 + T1, 0 + T2, 1 + T0, 1 - 4T1, 1
Assume T1, 1 = x
(40) + (0) + (20) + (20) - 4x=0
x = 20 for T1, 1
The equation used in finding the insulated surface:

( 2Tm 1, n Tm , n 1 Tm , n 1 )

2hx
hx

T 2
2 Tm , n
k
k

q
( x ) 2 0
k
For m = 0, n = 1
[(2) (20) +40+ 0] +

2h x
2h x
+2 ) T +
T
2(

0, 1
k
k

q
( x)2
k

=0

Insulated, q = 0, h = 0
[(2) (20) +40+ 0] - 2(2)T0, 1 = 0
T0, 1 = 20
Using equation below to calculate the other 4 points:
( 2Tm 1, n Tm , n 1 Tm , n 1 )

2hx
hx

T 2
2 Tm , n
k
k

q
( x ) 2 0
k

## For m = 10, n= 1 h = 10, x = 0.001, T = 25, k=1, q = 20

[(2) (19.91) + (39.67) + (0)] +

2 ( 10 ) (0.001)
2( 0.001)(10)
+ 2 ) T0, 1 +
(25)
2(
1
1

20
( 0.001)2
1
T10, 1 = 19.90

## Steps of using Quick Field:

1. Create a problem
2. Choose the model and unit

Enter

## 4. Entering the information given for body and edge

5. Click solve button and results for each node will generated

## Sample results from Quick Field

(Scaling for x-axis is from -2mm to 8mm ; Scaling for y-axis is from -3mm to 2mm)

## T = 273K = 0 when x=0mm, y=0mm

Comparison results of part(i) numerical method and part (ii) Quick Field method
X(m)

Y(m)

## Quick Field Method

Numerical Method

0
0
0
0
0
0

0
0.001
0.002
0.003
0.004
0.005

Temperature( Celcius)
0
20
40
60
80
100

Temperature( Celcius)
0
20
40
60
80
100

Thus, we can conclude that the data obtained from numerical method is similar to the result
obtained from Quick Field so numerical method can be verified by Quick Field software.