Vous êtes sur la page 1sur 2

23-08-19 01:43 AM C:\Users\CCAMPOS...\problema_4_7a.

m 1 of 2

%Princess Campos Callejas


%Diseño de reactores heterogeneos
%Problema 4-7A Reactor PFR con caida de presion
%Datos
a=0.001;%1/dm3
e=2;
%Ecuaciones diferenciales
X=@(x)(0.00535*x(2)*(1-x(1)))/(1+e*x(1));
Y=@(x)-a*(1+e*x(1))/(2*x(2));
fun=@(v,x)[X(x);Y(x)];
[v,x]=ode45(fun,[0 500],[0 1]);
disp([v x])
plot(v,x(:,1),v,x(:,2))
title('Problema 4.7A inciso c)')
xlabel('V(dm^3)')
legend('X=0.6596','y=0.1630')
%problema_4_7a
% 0 0 1.0000
% 0.0094 0.0001 1.0000
% 0.0188 0.0001 1.0000
% 0.0282 0.0002 1.0000
% 0.0376 0.0002 1.0000
% 0.0845 0.0005 1.0000
% 0.1315 0.0007 0.9999
% 0.1784 0.0010 0.9999
% 0.2254 0.0012 0.9999
% 0.4601 0.0025 0.9998
% 0.6949 0.0037 0.9997
% 0.9296 0.0049 0.9995
% 1.1644 0.0062 0.9994
% 2.3382 0.0123 0.9988
% 3.5119 0.0183 0.9982
% 4.6857 0.0241 0.9976
% 5.8595 0.0299 0.9970
% 11.7284 0.0574 0.9938
% 17.5973 0.0828 0.9904
% 23.4662 0.1064 0.9869
% 29.3351 0.1285 0.9832
% 41.8351 0.1714 0.9749
% 54.3351 0.2094 0.9660
% 66.8351 0.2436 0.9565
% 79.3351 0.2746 0.9466
% 91.8351 0.3030 0.9361
% 104.3351 0.3291 0.9251
% 116.8351 0.3532 0.9137
% 129.3351 0.3755 0.9018
% 141.8351 0.3962 0.8894
% 154.3351 0.4156 0.8766
% 166.8351 0.4337 0.8633
% 179.3351 0.4506 0.8495
% 191.8351 0.4666 0.8353
% 204.3351 0.4815 0.8206
% 216.8351 0.4956 0.8054
23-08-19 01:43 AM C:\Users\CCAMPOS...\problema_4_7a.m 2 of 2

% 229.3351 0.5088 0.7897


% 241.8351 0.5213 0.7735
% 254.3351 0.5331 0.7567
% 266.8351 0.5442 0.7393
% 279.3351 0.5547 0.7214
% 291.8351 0.5646 0.7028
% 304.3351 0.5739 0.6835
% 316.8351 0.5827 0.6635
% 329.3351 0.5910 0.6427
% 341.8351 0.5988 0.6210
% 354.3351 0.6062 0.5984
% 366.8351 0.6131 0.5747
% 379.3351 0.6195 0.5499
% 391.8351 0.6256 0.5238
% 404.3351 0.6312 0.4961
% 416.8351 0.6364 0.4667
% 429.3351 0.6412 0.4351
% 441.8351 0.6455 0.4009
% 454.3351 0.6495 0.3634
% 466.8351 0.6529 0.3214
% 479.3351 0.6559 0.2728
% 484.5013 0.6570 0.2499
% 489.6675 0.6580 0.2247
% 494.8338 0.6588 0.1964
% 500.0000 0.6596 0.1630

Vous aimerez peut-être aussi