0% found this document useful (0 votes)
27 views

CSTR Code

This document describes a steady state simulation of a continuous stirred-tank reactor (CSTR). It defines equations for the temperature change over time based on heat transfer into and out of the reactor as well as an exothermic reaction. The document then uses these equations to find the steady state temperature and reactant concentration in the reactor by finding the root of the temperature equation and calculating the concentration. It displays the results as 311.0045 K for the temperature and 8.5817 for the concentration.

Uploaded by

393852019
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

CSTR Code

This document describes a steady state simulation of a continuous stirred-tank reactor (CSTR). It defines equations for the temperature change over time based on heat transfer into and out of the reactor as well as an exothermic reaction. The document then uses these equations to find the steady state temperature and reactant concentration in the reactor by finding the root of the temperature equation and calculating the concentration. It displays the results as 311.0045 K for the temperature and 8.5817 for the concentration.

Uploaded by

393852019
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

%steady state simulation

function f = cstr(x,y)
FV=1;
Tj=298;
Ti=298;
UAV=150;
H=5960;
rhcp=500;
k0=9705*3600;
ca0=10;
E=11840;
R=1.986;

DT =@(T) (FV*(Ti-T)
-(UAV/(rhcp))*(T-Tj)+(k0*exp(-E/(R*T))/(rhcp))*((H*FV*ca0)/(FV+(k0*exp(-E/
(R*T))))));

roots = fzero(DT,[298]);

ca=((FV*ca0)/(FV+k0*exp(-E/(R*roots))));

disp('roots')
disp(roots)

disp('ca')
disp(ca)

Initial guess 298K

>> cstr

roots
311.0045

ca
8.5817

You might also like