Académique Documents
Professionnel Documents
Culture Documents
Arequipa-2018
LABORATORIO DE DISEÑO DE REACTORES
EJERCICIOS
1.- Haciendo uso de for anidados ingresar los elementos de una matriz de
3x4
SCRIPT
clear, clc
fprintf ('Ingresar una Matriz A \n\n')
m=input('Ingrese el numero de filas de la Matriz \m:');
n=input('Ingrese el numero de columnas de la Matriz \n:');
for i=1:m
for j=1:n
disp (['El elemento (',num2str(i),',',num2str(j),')'])
A(i,j)=input('')
end
end
disp ('La matriz A es:')
disp (A)
COMMAND WINDOW
2
LABORATORIO DE DISEÑO DE REACTORES
SCRIPT
COMMAND WINDOW
3
LABORATORIO DE DISEÑO DE REACTORES
COMMAND WINDOW
T =
250 300 350 400 450 500 550 600 650 700 750 800
850 900
a1 =
9.8700
b1 =
0.0011
c1 =
-212305
Cp =
1.0e+14 *
4
LABORATORIO DE DISEÑO DE REACTORES
Columns 1 through 12
Columns 13 through 14
-1.3038 -1.5477
SCRIPT
COMMAND WINDOW
5
LABORATORIO DE DISEÑO DE REACTORES
GRAFICA
6
LABORATORIO DE DISEÑO DE REACTORES
MgO
SCRIPT
%Grafica T VS Cp del compuesto MgO
clc
clear
T=250:50:900
a2=8.52
b2=2.13e-3
c2=-24523
Cp=a2+b2*T.^2+c2*T.^3
plot(T,Cp)
set(gcf,'Color','y');
title('Grafica T VS Cp del compuesto MgO');
xlabel('T');
ylabel('Cp');
grid on
COMMAND WINDOW
T =
250 300 350 400 450 500 550 600 650 700 750 800
850 900
a2 =
8.5200
b2 =
0.0021
c2 =
-24523
Cp =
1.0e+13 *
Columns 1 through 12
Columns 13 through 14
-1.5060 -1.7877
7
LABORATORIO DE DISEÑO DE REACTORES
SCRIPT
COMMAND WINDOW
8
LABORATORIO DE DISEÑO DE REACTORES
GRAFICA
SiO2
SCRIPT
%Grafica T VS Cp del compuesto SiO2
clc
clear
T=250:50:900
a3=7.52
b3=3.15e-3
c3=-501230
Cp=a3+b3*T.^2+c3*T.^3
plot(T,Cp)
set(gcf,'Color','r');
title('Grafica T VS Cp del compuesto SiO2');
xlabel('T');
ylabel('Cp');
grid on
COMMAND WINDOW
9
LABORATORIO DE DISEÑO DE REACTORES
T =
250 300 350 400 450 500 550 600 650 700 750 800
850 900
a3 =
7.5200
b3 =
0.0032
c3 =
-501230
Cp =
1.0e+14 *
SCRIPT
COMMAND WINDOW
10
LABORATORIO DE DISEÑO DE REACTORES
GRAFICA
11
LABORATORIO DE DISEÑO DE REACTORES
b. Graficar simultáneamente.
FeO,MgO,SiO2
SCRIPT
%Grafica T VS Cp de los compuestos FeO,MgO,SiO2
clc
clear
T=250:50:900
a1=9.87
b1=1.12e-3
c1=-212305
Cp1=a1+b1*T.^2+c1*T.^3
T=250:50:900
a2=8.52
b2=2.13e-3
c2=-24523
Cp2=a2+b2*T.^2+c2*T.^3
T=250:50:900
a3=7.52
b3=3.15e-3
c3=-501230
Cp3=a3+b3*T.^2+c3*T.^3
plot(T,Cp1)
set(gcf,'Color','m');
title('Grafica T VS Cp del compuesto FeO,MgO,SiO2');
xlabel('T');
ylabel('Cp');
grid on
hold on
plot(T,Cp2)
plot(T,Cp3)
COMMAND WINDOW
T =
250 300 350 400 450 500 550 600 650 700 750 800
850 900
a1 =
9.8700
b1 =
0.0011
c1 =
-212305
12
LABORATORIO DE DISEÑO DE REACTORES
Cp1 =
1.0e+14 *
T =
250 300 350 400 450 500 550 600 650 700 750 800
850 900
a2 =
8.5200
b2 =
0.0021
c2 =
-24523
Cp2 =
1.0e+13 *
T =
250 300 350 400 450 500 550 600 650 700 750 800
850 900
a3 =
7.5200
b3 =
0.0032
c3 =
-501230
13
LABORATORIO DE DISEÑO DE REACTORES
Cp3 =
1.0e+14 *
SCRIPT
COMMAND WINDOW
14
LABORATORIO DE DISEÑO DE REACTORES
GRAFICA
15
LABORATORIO DE DISEÑO DE REACTORES
SCRIPT
%Cp Vs T en matriz 3x3 de constantes a T entre 100-400
clear
clc
Cts=[12.62,0.1492e3,-76200;10.86,0.1197e3,-208700;10.87,0.8712e3,-
241200];
t=[100:10:400];
Cp1=Cts(1,1)+Cts(1,2)*t.^2+Cts(1,3)*t.^3
Cp2=Cts(2,1)+Cts(2,2)*t.^2+Cts(2,3)*t.^3
Cp3=Cts(3,1)+Cts(3,2)*t.^2+Cts(3,3)*t.^3
plot(t,Cp1)
grid on
hold on
16
LABORATORIO DE DISEÑO DE REACTORES
plot(t,Cp2)
plot(t,Cp3)
COMMAND WINDOW
Cp1 =
1.0e+12 *
Columns 1 through 8
Columns 9 through 16
Columns 17 through 24
Columns 25 through 31
Cp2 =
1.0e+13 *
Columns 1 through 8
Columns 9 through 16
Columns 17 through 24
Columns 25 through 31
1.0e+13 *
Columns 1 through 8
17
LABORATORIO DE DISEÑO DE REACTORES
Columns 9 through 16
Columns 17 through 24
Columns 25 through 31
SCRIPT
COMMAND WINDOW
18
LABORATORIO DE DISEÑO DE REACTORES
19
LABORATORIO DE DISEÑO DE REACTORES
GRAFICA
20