Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Cuarto Trabajo de Metodos 2
Cuarto Trabajo de Metodos 2
T (x , t)
20 , en el instante
t=0
se
100
T
2 T
= 2
t
x
Condicin inicial
T
( x=L , t ) =0
x
Datos
METODOS NUMERICOS II
L=2 m
x=0.1
t=6 min
acero=13.01 x 106 m2 / s
0.5 T pequeo solucin estable
Simular para
Solucin
2 T T i12T i +T i+1
x2
x2
Reemplazando le ecuacin
n
T n+1
T n 2 T ni +T ni+1
i T i
= i1
t
x2
n+1
T i T i =
t
n
n
n
(T i12 T i +T i+1 )
2
x
t
2
x
T
x
T
x
2 T n
n
imax imax
1/2
2
x
x
2
Por condicin de frontera
T
x
n
imax=0
T
x
n
n
T imax
T imax
n
1
imax1 /2=
x
T imaxT imax
=
t
n+1
n
T imax
T imax
=2
T nimax T nimax1
x
x
2
t
(T nimax +T nimax1)
2
x
t
x2
METODOS NUMERICOS II
n+1
Condicin de estabilidad
Condicin de Courant
Cr 1
Se establece un valor para
0.5
t
0.5
2
x
0.5 x 2
t 384.3197 s
En minutos
t 6.4053 min
Solucin estable
t >6.4053 min
Solucin errtica
t=6 min
clear
clc
dx=0.1;
dt=6;
L=2;
t=180;
n=L/dx+1;
METODOS NUMERICOS II
m=t/dt+1;
U=zeros(m,n);
U(1,:)=20;
U(2:m,1)=100;
for j=2:m
for i=2:n
if i==n
U(j,i)=U(j-1,i-1);
else
U(j,i)=0.5*U(j-1,i-1)+0.5*U(j-1,i+1);
end
end
end
U
tiempo=0:dt:t;
plot(tiempo,U)
METODOS NUMERICOS II
clear
clc
dx=0.1;
dt=7.5;
L=2;
t=180;
n=L/dx+1;
m=t/dt+1;
U=zeros(m,n);
U(1,:)=20;
U(2:m,1)=100;
for j=2:m
for i=2:n
if i==n
U(j,i)=2*U(j-1,i-1)-U(j-1,i);
else
U(j,i)=U(j-1,i-1)+U(j-1,i+1)-U(j-1,i);
end
end
end
disp(U)
tiempo=0:dt:t;
plot(tiempo,U)
t=7.5 min