From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 249/CH11/EX11.4/11_04.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 249/CH11/EX11.4/11_04.sce (limited to '249/CH11/EX11.4/11_04.sce') diff --git a/249/CH11/EX11.4/11_04.sce b/249/CH11/EX11.4/11_04.sce new file mode 100755 index 000000000..05c117fc1 --- /dev/null +++ b/249/CH11/EX11.4/11_04.sce @@ -0,0 +1,17 @@ +clear +clc +k=0.307; +//Given mean residence time(min) +t=15; +//For plug flow with negligible density +fr_unconverted=exp(-k*t); +printf("\n The fraction of reactant unconverted in a plug flow reactor is %f",fr_unconverted) +//For the real reactor +T=[5;10;15;20;25;30];//given time +E=[0.03;0.05;0.05;0.04;0.02;0.01];//given +dt=5; +sum1=0; +for i=1:6 + sum1=sum1+exp(-k*T(i))*E(i)*dt; +end +printf("\n The fraction of reactant unconverted in a real reactor is %f",sum1) \ No newline at end of file -- cgit