Vous êtes sur la page 1sur 20

UNIVERSIDAD NACIONAL DE SAN AGUSTIN

FACULTAD DE INGENIERA DE PROCESOS


ESCUELA PROFESIONAL DE INGENIERIA QUIMICA

LABORATORIO DE DISEÑO DE REACTORES


DOCENTE:
ING. MIGUEL ANGEL CARDENAS MALAGA
TEMAS:
- TAREA DE MATLAB
NOMBRE:
- MAMANI GUTIERREZ ANGELICA
- TACO FLORES MARISSA
TURNO:
MARTES DE 10:40AM-12:20PM

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

Ingresar una Matriz A

Ingrese el numero de filas de la Matriz m: 3


Ingrese el numero de columnas de la Matriz : 4
El elemento (1,1)
1
El elemento (1,2)
2
El elemento (1,3)
3
El elemento (1,4)
4
El elemento (2,1)
5
El elemento (2,2)
6
El elemento (2,3)
7
El elemento (2,4)
8
El elemento (3,1)
9
El elemento (3,2)
1
El elemento (3,3)
0
El elemento (3,4)
5
La matriz A es:
1 2 3 4
5 6 7 8
9 1 0 5

2
LABORATORIO DE DISEÑO DE REACTORES

SCRIPT

COMMAND WINDOW

3
LABORATORIO DE DISEÑO DE REACTORES

2.- Graficar la Capacidad Calorífica como función de la temperatura para tres


compuestos químicos.
a.- Graficar por separado
%Graficar la capacidad calorifica como funcion de la temperatura para
tres compuestos químicos
FeO
SCRIPT
%Grafica T VS Cp del compuesto FeO
clc
clear
T=250:50:900
a1=9.87
b1=1.12e-3
c1=-212305
Cp=a1+b1*T.^2+c1*T.^3
plot(T,Cp)
set(gcf,'Color','g');
title('Grafica T VS Cp del compuesto FeO');
xlabel('T');
ylabel('Cp');
grid on

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

-0.0332 -0.0573 -0.0910 -0.1359 -0.1935 -0.2654 -0.3532


-0.4586 -0.5830 -0.7282 -0.8957 -1.0870

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

-0.0383 -0.0662 -0.1051 -0.1569 -0.2235 -0.3065 -0.4080


-0.5297 -0.6735 -0.8411 -1.0346 -1.2556

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 *

-0.0783 -0.1353 -0.2149 -0.3208 -0.4567 -0.6265 -0.8339


-1.0827 -1.3765 -1.7192 -2.1146 -2.5663 -3.0782 -3.6540

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 *

-0.0332 -0.0573 -0.0910 -0.1359 -0.1935 -0.2654 -0.3532


-0.4586 -0.5830 -0.7282 -0.8957 -1.0870 -1.3038 -1.5477

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 *

-0.0383 -0.0662 -0.1051 -0.1569 -0.2235 -0.3065 -0.4080


-0.5297 -0.6735 -0.8411 -1.0346 -1.2556 -1.5060 -1.7877

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 *

-0.0783 -0.1353 -0.2149 -0.3208 -0.4567 -0.6265 -0.8339


-1.0827 -1.3765 -1.7192 -2.1146 -2.5663 -3.0782 -3.6540

SCRIPT

COMMAND WINDOW

14
LABORATORIO DE DISEÑO DE REACTORES

GRAFICA

15
LABORATORIO DE DISEÑO DE REACTORES

3.- Ingresar a una matriz de 3x3, las constantes de la ecuación de capacidad


calorífica de tres compuestos. Generar un vector con temperaturas que van
desde 100 hasta 400 a intervalos de 10. Calcular las capacidades caloríficas
correspondientes y luego grafíquelas.

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

-0.0762 -0.1014 -0.1317 -0.1674 -0.2091 -0.2572 -0.3121


-0.3744

Columns 9 through 16

-0.4444 -0.5227 -0.6096 -0.7057 -0.8114 -0.9271 -1.0534


-1.1906

Columns 17 through 24

-1.3393 -1.4998 -1.6727 -1.8584 -2.0574 -2.2701 -2.4969


-2.7384

Columns 25 through 31

-2.9949 -3.2671 -3.5552 -3.8597 -4.1812 -4.5201 -4.8768

Cp2 =

1.0e+13 *

Columns 1 through 8

-0.0209 -0.0278 -0.0361 -0.0459 -0.0573 -0.0704 -0.0855


-0.1025

Columns 9 through 16

-0.1217 -0.1431 -0.1670 -0.1933 -0.2222 -0.2539 -0.2885


-0.3261

Columns 17 through 24

-0.3668 -0.4108 -0.4581 -0.5090 -0.5635 -0.6217 -0.6839


-0.7500

Columns 25 through 31

-0.8203 -0.8948 -0.9737 -1.0571 -1.1452 -1.2380 -1.3357


Cp3 =

1.0e+13 *

Columns 1 through 8

17
LABORATORIO DE DISEÑO DE REACTORES

-0.0241 -0.0321 -0.0417 -0.0530 -0.0662 -0.0814 -0.0988


-0.1185

Columns 9 through 16

-0.1407 -0.1654 -0.1930 -0.2234 -0.2568 -0.2935 -0.3334


-0.3769

Columns 17 through 24

-0.4239 -0.4747 -0.5295 -0.5883 -0.6512 -0.7186 -0.7904


-0.8668

Columns 25 through 31

-0.9480 -1.0341 -1.1253 -1.2217 -1.3235 -1.4308 -1.5437

SCRIPT

COMMAND WINDOW

18
LABORATORIO DE DISEÑO DE REACTORES

19
LABORATORIO DE DISEÑO DE REACTORES

GRAFICA

20

Vous aimerez peut-être aussi