Professional Documents
Culture Documents
clear all
prompt1 = 'enter the value of axial velocity=';
prompt2= 'enter the value of k1=';
prompt3= 'enter the value of k2=';
prompt4= 'enter the value of cain=';
prompt5= 'enter the value of cbin=';
prompt6='enter the value of diffusion coefficient=';
prompt7='enter the value of length of reactor=';
prompt8='enter number of nodes=';
u=input(prompt1)
k1=input(prompt2)
k2=input(prompt3)
cain=input(prompt4)
cbin=input(prompt5)
D=input(prompt6)
L=input(prompt7)
n=input(prompt8)
dx=L/n;
ca1=1;cb1=1;cc1=1;cd1=1;ca2=1;cb2=1;cc2=1;cd2=1;ca3=1;cb3=1;cc3=1;cd3=1;ca4=1;cb4=1
;cc4=1;cd4=1;
X=[ca1;ca2;ca3;ca4]
Y=[cb1;cb2;cb3;cb4]
Z=[cc1;cc2;cc3;cc4]
S=[cd1;cd2;cd3;cd4]