12.07.2015 Views

Sistemas não-lineares no Simulink - Escola de Química / UFRJ

Sistemas não-lineares no Simulink - Escola de Química / UFRJ

Sistemas não-lineares no Simulink - Escola de Química / UFRJ

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Simulando um CSTRfunction [sys,x0] = reator(t,x,u,flag,U,A,DeltaH,ro,Cp,E,R,k0)%% Simula um reator CSTR (mistura perfeita) <strong>no</strong> qual se conduz uma% reação exotérmica (A->B), resfriado por serpentina%% U = 150 BTU/(h.ft2.R), coeficiente <strong>de</strong> troca térmica% A = 250 ft2, área <strong>de</strong> troca térmica% DeltaH = -30000 BTU/lbm, calor <strong>de</strong> reação% ro = 50 lb/ft3, <strong>de</strong>nsida<strong>de</strong>% Cp = 0.75 BTU/(lbm.R), calor específico% E = 30000 BTU/lbm, energia <strong>de</strong> ativação% R = 1.99 BTU/(lbm.R), constante dos gases% k0 = 7.08e10 1/h, termo pré-exponencial da constante <strong>de</strong> reação%switch flagcase 0 % Dimensiona o sistema e inicializa os estados% sys=[estados,0,saídas,entradas,0,0]sys = [3,0,3,5,0,0];% Condições iniciaisca= 0.1315; %lbm/ft3, concentração inicial <strong>no</strong> reatorT = 584.4115; %R, temperatura do reatorV = 200; %ft3, volume do reatorx0 = [ca T V]';reator.m - 1ª parte

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!