Sie sind auf Seite 1von 7

Solution for Assignment 1 Problem 1 with 20 grid points.

Equation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

A
0
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4

B
1
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
4

C
0
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
-4
0

D
200
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
-19.75

C'
0
-0.5
-0.667
-0.750
-0.800
-0.833
-0.857
-0.875
-0.889
-0.900
-0.909
-0.917
-0.923
-0.929
-0.933
-0.938
-0.941
-0.944
-0.947
0.000

D'
200
100.06
66.79
50.19
40.25
33.65
28.95
25.44
22.72
20.56
18.81
17.35
16.13
15.10
14.21
13.44
12.76
12.17
11.65
127.56

T
200
197
195
192
189
185
182
179
175
171
168
164
160
155
151
147
142
137
133
128

Temrature Profile for Problem 1


250

temp (C)

200
150
100

50
0
1

10

11

12

Grid point No.

13

14

15

16

17

18

Temprature Profile

Formulae

Conditions

C'1 = C1/B1
D'1 = D1/B1
C' = Ci/(Bi-Ai*Ci-1)
D'=(Di-D'i-1*Ai)/(Bi-C'i-1*Ai)
Tn=D'n
Ti = D'i-C'i*Ti+1

Given:
K=1
S=2
x = 0.25

18

19

20

Temprature Profile

For i=1 to i=n-1


For i=1 to i=n-1
For i=n-1 to i = 1

Solution for Assignment 1 Problem 1 with 20 grid points.


Equation

1
2
3
4
5

0
-2
-2
-2
-2

1
4
4
4
2

0
-2
-2
-2
0

1
2
3
4
5

0
-2.4
-1.83
-1.59
-1.39

1
4.23
3.42
2.98
1.39

0
-1.83
-1.59
-1.39
0

1
2
3
4
5

0
-2.95
-2.9
-2.85
-2.69

1
5.85
5.75
5.54
2.69

0
-2.9
-2.85
-2.69
0

1
2
3
4
5

0
-3
-2.95
-2.85
-2.8

1
5.95
5.8
5.65
2.8

0
-2.95
-2.85
-2.8
0

D
C'
ITERATION 1
200
0
2
-0.5
2
-0.667
2
-0.750
-19
0.000
ITERATION 2
200
0.000
2
-0.43262
2
-0.60495
2
-0.68876
-19
0
ITERATION 3
200
0.000
2
-0.49573
2
-0.66089
2
-0.73568
-19
0
ITERATION 4
200
0.000
2
-0.4958
2
-0.65708
2
-0.74126
-19
0

D'

200
100.50
67.67
51.50
168.00

200
194
186
178
168

200.00
113.95
80.10
64.10
162.03

200
195
186
176
162

200.00
101.20
68.52
53.95
177.39

200
196
190
184
177

200.00
101.18
69.27
52.80
177.83

200
196
191
185
178

Grid Point

K1

K2

K3

3.0

3.0

3.0

2.9

2.9

3.0

2.9

2.9

2.9

2.8

2.8

2.8

2.7

2.6

2.8

temp (C)

Temrature Profile for Problem 3


205
200
195
190
185
180
175
170
165

200

196
191

185

3
Grid point No.

185
178

5
Temprature Profile

Solution for Assignment 1 Problem 1 with 20 grid points.


Equation

1
2
3
4
5

0
-1
-1
-1
-1

1
2.3
2.3
2.3
1.3

0
-1
-1
-1
0

1
2
3
4
5

0
-1
-1
-1
-1

1
2.61
2.34
2.19
1.09

0
-1
-1
-1
0

1
2
3
4
5

0
-1
-1
-1
-1

1
2.58
2.32
2.18
1.09

0
-1
-1
-1
0

D
ITERATION 1
200
22
22
22
-9
ITERATION 2
200
59.96
25.77
11.88
-19
ITERATION 3
200
56.19
24.41
11.32
-19

C'

D'

0
-0.43
-0.54
-0.57
0.00

200
96.52
63.54
48.50
53.88

0
-0.38
-0.51
-0.60
0.00

200
99.61
64.18
45.40
53.84

0
-0.39
-0.52
-0.60
0.00

200
99.18
63.82
45.16
53.83

Temrature Profile for Problem 4


250

temp (C)

200

200

150

139

104

100

78
50
0
1

3
Grid point No.

4
Temprature Profile

Sc

200
143
106
79
54

22.00

0.30

22.00

0.30

200
139
104
78
54

0.00
0.00
59.96
-0.61
25.77
-0.34
11.88
-0.19
5.13
-0.09
ITERATION 3
0.00
0.00
56.19
-0.58
24.41
-0.32
11.32
-0.18
5.12
-0.09

Sp
ITERATION 1

22.00
0.30
22.00
0.30
22.00
0.30
ITERATION 2

200
139
104
78
54

54

5
Temprature Profile