%  DATA FOR NONISOTHERMAL CSTR

%  TITLE: CSTRDATA.M
%  DATE: November 1994
%  VERSION: 02
%  COPYRIGHT 1993, 1994 M.Gretzinger & T.Marlin
%            McMaster University   

%  This m-file contains process, simulation and controller data for the
%       nonisothermal cstr with a single first order reaction and cooling
%       coil. It can be loaded when the driver program, CSTR.M, prompts 
%       the user to input the base case data. Some variables can be 
%       modified in CSTR.M using the menus, while others require 
%       modification directly in this data file.

%  **********************************************************************
   
%  Process data

f = 1 ;
v = 1 ;
caininit = 2 ;
tininit =  343 ; 
ko  =  10000000000. ;
er  =  8330.116  ;
rho =  1.  ;
cp  =  1.  ;
dhrxn  =  130. ;   % this is really -dhrxn !

tcininit = 310    ;  % 
fcinit=15.      ;fc=fcinit;
fcmax = 22.  ;  % maximum coolant flow
fcmin = 0.01 ;  % no divide by zero
b=.5              ;
a  =  0.5164 ;     
rhoc = 1  ;
cpc = 1   ;

%  Dynamic simulation data ***********
cainit = .2646     ;
tinit =  393.9472   ;
tindist = 0 ;
tdist = 5 ;

t = 0.01 ;       % Time step
tstart = 0. ;
tend = 20. ;
maxsave = 10. ;    % calculations saved every maxsave times to prevent 
                  % exceeding student version capacity.


%  Controller data ***************
% Controller 1
kc1=   -1 ;
ti1 =   5. ;
sp1init = 350 ;
sp1new = sp1init ;

%  Controller 2
kc2 = 0 ;
ti2  = 0.2;
sp2init = 0.2646  ;
tsp=10. ;

