# Variables
CAo = 1. # feed
CA = 0.25
v = 100. #litre/min
ko = .025
k1 = 0.2 # min**-1
k2 = 0.4 # liter/mol.min
# Calculations
rA = ko+k1*CA+k2*CA**2
V = (v/4.)*(CAo-CA)/rA
#For 4 Reactor System
Vt = 4*V;
# Results
print " The Total volume of 4 reactor system is %.f litres"%(Vt)
print "For Intermediate R is desired"
#we want step 1 fast than 2 and step 1 fast than 3
print " E1<E2,E1<E3 so use a low temperature and plug flow "
print "For Product S is desired"
#Here speed is all that matters
print " High speed is all that matters so use a high temperature and plug flow "
print "For Intermediate T is desired"
#We want step 2 fast than 1 and step 2 fast than 4
print " E2>E1,E3>E5 so use a falling temperature and plug flow "
print "For Intermediate U is desired"
#We want step 1 fast than 2 and step 3 fast than 5
print " E2>E1,E3>E5 so use a rimath.sing temperature and plug flow "