TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
Lineexample
1. line example edp
2
Ci 1 Ω Ci Da Ci
ri ΡB
t Ξ L z L2 z 2
Clear x ;
Numero de secciones, número de ecuaciones y tamaño de paso
ns 5;
n ns 1;
1
h N ;
ns
Constantes para las ecuaciones
L 4;
Di 0.106;
Da 5.17 10 5 ;
Ω 1.07708 10 4 ;
Da
MD ;
ΩL
1
Pe ;
MD
0.23;
C0 1.1;
R 8.314;
T 73 273.15;
r0 0.1;
nn 5.5;
a0 0.80;
aa 0.514;
kp 3.11 106 ;
1 nn 1 1 nn
a t_ aa a0 aa kp nn 1 t ;
rE a t r0;
ΡB 950;
Coeficientes de las ecuaciones
2 Da Ω
k1 h;
L2 L
4 Da
k2 ;
L2
2 Da Ω
k3 h;
L2 L
Condiciones de frontera e iniciales
2. 2 lineexample.nb
2 Pe h C0 4x 1 x 2
x 0 ;
2 Pe h 3
4 x ns 1 x ns 2
x ns ;
3
Generación de ecuaciones
X i_ Table x i , i, 0, ns ;
k3, k2, k1 1
EQ ListCorrelate ,X i rE ΡB ;
2 h2
CI Thread Table C0, n ;
Tiempo inicial y final
t 0;
tf 3000;
Cuerpo del programa
Vn ;
Tt Table w, w, t, tf, h ;
PrependTo CI, Tt 1 ;
Vn Append Vn, CI ;
For i 2, i n 1, i , x i 1 CI i ;
Runge Kutta
For i 1, t tf h,
Primer termino
For j 1, j n, j , AA j EQ j ;
Segundo termino
m 2;
h
For j 1, j n, j ;m ,x j Vn i, m AA j ;
2
For k 1, k n, k , BB k EQ k ;
Tercer termino
m 2;
h
For j 1, j n, j ;m ,x j Vn i, m BB j ;
2
For k 1, k n, k , CC k EQ k ;
Cuarto termino
m 2;
For j 1, j n, j ; m , x j Vn i, m h CC j ;
For k 1, k n, k , DD k EQ k ;
Calculo de los nuevos valores
m 2;
h
For j 1, j n, j ;m ,x j Vn i, m AA j 2 BB j 2 CC j DD j ;
6
A Array x, n ;
PrependTo A, Tt i 1 ;
Vn Append Vn, A ;
t t h;
;
3. lineexample.nb 3
i ;
tf h
F 1;
h
Do G i
ListLinePlot Table Vn k, 1 , Vn k, i 1 , k, 1, F, 1 , PlotRange All , i, n ;
Show Table G i , i, 1, n , AxesLabel "t", "C"
C
600 000
500 000
400 000
300 000
200 000
100 000
t
500 1000 1500 2000 2500 3000