You are on page 1of 4

Solución Problema de difusión

:

Un tubo hueco de 20 cm de longitud está inicialmente lleno con
aire conteniendo 2% de etilalcohol (vapor). Al fondo del tubo está
una piscina de alcohol el cual se evapora en el gas estancado de
arriba

Ecuación diferencial

Condiciones de borde
t=0
c(x,0)=2
x=0
c(0,t)=0
x=20
c(20,t)=10

 2C C
D 2 
x
t
Coeficiente de difusión:

D=

0.119

Utilizando 5 intervalos en la dirección x
DX = (b-a)/inter

Dx = 4
l= 0.50

Para garantizar estabilidad se toma:

Por lo que:
DT =

67.2268908

Por el método explícito:

Ci j 1  Ci j  l (Ci 1 j  2Ci j  Ci 1 j )
l= 0.50

Si

Ci j 1 

1
(Ci 1 j  Ci 1 j )
2

Así se construye la siguiente tabla:
Tiempo (seg) x=0
0
67.2
134.4
201.6
268.8
336
403.2
470.4
537.6
604.8
672
739.2
806.4
873.6
940.8
1008

x=4
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

l=

0.25

x=4
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

x=12

2
2
1.5
2.5
2.25
3
2.84375
3.34375
3.2421875
3.5703125
3.50390625
3.71875
3.67529297
3.81591797
3.78747559
3.8795166

Ahora si:
Tiempo (seg) x=0
0
33.6
67.2
100.8
134.4
168
201.6
235.2
268.8
302.4
336
369.6
403.2
436.8
470.4
504
537.6
571.2
604.8
638.4
672
705.6
739.2
772.8
806.4
840
873.6
907.2
940.8
974.4
1008

x=8

2
1
1
0.75
1.25
1.125
1.5
1.421875
1.671875
1.62109375
1.78515625
1.75195313
1.859375
1.83764648
1.90795898
1.89373779

2
1.5
1.25
1.09375
1.015625
0.99609375
1.015625
1.05895996
1.11541748
1.17794037
1.24204636
1.30499363
1.36518478
1.42176077
1.4743308
1.52279518
1.56723015
1.60781375
1.64477839
1.67838107
1.70888483
1.73654764
1.76161595
1.78432125
1.80487854
1.82348599
1.84032522
1.85556209
1.86934768
1.88181928
1.89310153

x=8
2
2
1.875
1.875
1.953125
2.0703125
2.20458984
2.34375
2.48092651
2.61230469
2.73588181
2.85075188
2.9566735
3.05380166
3.14251911
3.22333027
3.29679469
3.36348607
3.42396748
3.47877717
3.5284209
3.57336851
3.61405309
3.65087168
3.68418686
3.71432889
3.74159794
3.76626652
3.78858175
3.80876756
3.82702678

2
2
4
3.75
4.75
4.5625
5.1875
5.0625
5.46875
5.38671875
5.65234375
5.59863281
5.77246094
5.73730469
5.85107422
5.82806396

x=12
2
2
2.5
2.96875
3.359375
3.68164063
3.95019531
4.17724609
4.37194824
4.54097748
4.68919754
4.82019663
4.93667483
5.04071236
5.13395205
5.21772305
5.29312472
5.36108404
5.42239533
5.47774819
5.52774742
5.57292771
5.61376459
5.65068285
5.68406327
5.714248
5.741545
5.76623187
5.78855907
5.80875272
5.82701706

x=16

x=20

2
6
6
7
6.875
7.375
7.28125
7.59375
7.53125
7.734375
7.69335938
7.82617188
7.79931641
7.88623047
7.86865234
7.92553711

10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10

DT =

33.6134454

x=16
2
4
5
5.625
6.0546875
6.3671875
6.60400391
6.78955078
6.93908691
7.06253052
7.16650963
7.2555542
7.33282626
7.40058184
7.46046901
7.51372252
7.56129202
7.60392719
7.64223461
7.67671614
7.70779512
7.73583441
7.76114914
7.78401571
7.80467857
7.8233551
7.84023955
7.85550602
7.86931098
7.88179526
7.89308581

x=20
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10

3856597 x=16 7.655212 x=16 7.24985737 6.84074161 7.39119984 5.54307943 C3 0 -1 4 -1 x=8 3.90156828 x=20 10 Tiempo (seg) 1209.90161096 C3 0 -1 4 -1 x=8 3.28708134 23.93315598 sol 1.00478469 2.65462713 C4 0 0 -1 4 x=12 5.85517227 sol 1.00 Se toma por comodidad: Ci 1 j 1  4 Ci j 1  Ci 1 j 1 Así:  Ci  Ci 1 j DT = 134.93315598 x=20 10 .78703749 C3 0 -1 4 -1 x=8 3.24985737 C4 0 0 -1 4 x=12 5.49352284 C4 0 0 -1 4 x=12 5.0717703 x=16 6.873182 x=16 7.01913876 C4 0 0 -1 4 x=12 3.8643575 x=20 10 Tiempo (seg) 403.92246035 4.76547703 7.4410336 25.68629172 x=20 10 Tiempo (seg) 806.49041392 b 3.4 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.6 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.6208745 25.89182782 b 3.93314675 3.32841505 C3 0 -1 4 -1 x=8 2.92246035 C4 0 0 -1 4 x=12 4.62055937 11.53198375 sol 1.78703749 3.25475297 b 2.85508234 C3 0 -1 4 -1 x=8 3.89182782 7.90161096 3.53198375 x=20 10 Tiempo (seg) 672 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.76570223 C4 0 0 -1 4 x=12 5.2371708 24.07655502 8.07177033 b 2 4 4 22 x=16 6.4 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.89184541 C4 0 0 -1 4 x=12 5.74240705 11.49041392 7.76570223 5.54307943 3.26794258 x=20 10 Tiempo (seg) 268.01913876 3.85508234 3.10258465 2.6 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.84074161 5.49352284 7.84074161 C4 0 0 -1 4 x=12 5.87318203 7.8407961 b 3.24985737 5.Por el método implícito (Crank-Nicolson) l Ci 1 j 1  2 1  l  Ci j 1  l Ci 1 j 1  l Ci 1 j  2 1  l  Ci j  l Ci 1 j l= 1.65462713 7.4904139 x=16 7.44224954 11.7818411 25.00478469 C3 0 -1 4 -1 x=8 2.8 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.85517227 x=20 10 Tiempo (seg) 1075.8407961 7.76547703 b 3.49352284 5.17625897 11.31471042 x=20 10 Tiempo (seg) 537.38565967 6.32841505 2.90156828 sol 1.39119984 4.25555734 24.65521205 b 3.7978324 10.48824432 9.76570223 7.87318203 b 2.93314675 C3 0 -1 4 -1 x=8 3.68629172 sol 1.25475297 7.453782 j Tiempo (seg) 0 x=0 0 x=4 2 x=8 2 x=12 2 x=16 2 x=20 10 Tiempo (seg) 134.765477 x=16 7.65521205 7.20159707 10.2 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.78640649 x=20 10 Tiempo (seg) 940.38565967 b 2.26794258 sol 1.8 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.92246035 6.68584505 C3 0 -1 4 -1 x=8 3.89184541 5.07177033 6.7423099 25.01913876 4.2 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.65462713 5.68584505 3.78640649 sol 1.1798146 25.254753 x=16 7.8643575 sol 1.39119984 C4 0 0 -1 4 x=12 4.8407961 x=16 7.31471042 sol 1.10258465 C3 0 -1 4 -1 x=8 2.

96609693 7.96915374 3.9927815 x=16 7.9893734 x=16 7.99343243 sol 1.99696953 3.99343243 x=20 10 Tiempo (seg) 2150.99278154 7.98576682 C3 0 -1 4 -1 x=8 3.99343242 C3 0 -1 4 -1 x=8 3.9660973 x=16 7.9627372 25.4 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.9950966 7.88112091 11.99343242 3.979047 3.95008965 b 3.98937344 5.98280586 11.98937343 b 3.9769702 x=16 7.99553874 3.97697023 b 3.9746879 25.95008965 7.98576689 x=20 10 Tiempo (seg) 1881.99033165 C3 0 -1 4 -1 x=8 3.9545891 sol 1.96273704 11.9950966 b 3.98435624 7.98937344 7.97904674 x=20 10 Tiempo (seg) 1747.8 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.98435624 5.Tiempo (seg) 1344 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.96915456 sol 1.98435624 C4 0 0 -1 4 x=12 5.99696954 x=20 10 .98937344 C4 0 0 -1 4 x=12 5.99278153 C4 0 0 -1 4 x=12 5.99278153 5.6 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.99553874 x=20 10 Tiempo (seg) 2284.9265286 x=16 7.99278153 7.99553874 C3 0 -1 4 -1 x=8 3.96915456 x=20 10 Tiempo (seg) 1612.92652387 7.98576689 sol 1.92652859 b 3.8918278 x=16 7.95009107 C4 0 0 -1 4 x=12 5.97697034 C4 0 0 -1 4 x=12 5.89184541 7.96609733 7.9828059 25.979047 C3 0 -1 4 -1 x=8 3.98832028 11.9843563 x=16 7.91924339 11.9451437 25.97697023 7.99509661 C4 0 0 -1 4 x=12 5.98937343 7.97697034 5.95009107 7.95009107 5.96915374 C3 0 -1 4 -1 x=8 3.4 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.96609693 C4 0 0 -1 4 x=12 5.92652387 C4 0 0 -1 4 x=12 5.9883203 25.98435627 b 3.2 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.9500897 x=16 7.99278154 b 3.99509661 5.99696953 C3 0 -1 4 -1 x=8 3.99553874 sol 1.8 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.97904674 sol 1.99033163 sol 1.96609693 5.98576682 3.95459232 C3 0 -1 4 -1 x=8 3.94514433 11.9545891 x=20 10 Tiempo (seg) 1478.92652859 7.82497457 11.92652387 5.96609733 b 3.97468792 11.95459232 3.99033165 3.99696954 sol 1.98435627 7.97697034 7.881113 25.99033163 x=20 10 Tiempo (seg) 2016 C1 4 -1 0 0 x=0 0 C2 -1 4 -1 0 x=4 1.8250014 25.9192456 25.

Diferencias finitas: D  2C d 2C 0  0 2 x dx 2 Así se llega a: Ci 1  2 Ci  Ci 1  0 Se obtiene el siguiente sistema Tiempo (seg) ∞ C1 -2 1 0 0 C2 1 -2 1 0 C3 0 1 -2 1 C4 0 0 1 -2 b 0 0 0 -10 sol 2 4 6 8 x=0 0 x=4 2 x=8 4 x=12 6 x=16 8 x=20 10 .Concentraciones en estado estacionario.