Team:DTU-Denmark/code reactor1
From 2013.igem.org
(Difference between revisions)
(Created page with "== Matlab code to generate Figure 3== <pre> % calculate staedy state CSTR volume for different substrate, product and % flow clear all flow = [1:50]'; S = [0.5:0.01:0.9]; [2:1e...") |
(→Matlab code to generate Figure 3) |
||
Line 7: | Line 7: | ||
flow = [1:50]'; | flow = [1:50]'; | ||
- | S = [0.5:0.01:0.9] | + | S = [0.5:0.01:0.9]; |
for i=1:length(flow) | for i=1:length(flow) |
Revision as of 14:12, 4 October 2013
Matlab code to generate Figure 3
% calculate staedy state CSTR volume for different substrate, product and % flow clear all flow = [1:50]'; S = [0.5:0.01:0.9]; for i=1:length(flow) for j=1:length(S) P = 5.872-S(j); % 100 mg/l ammonia in feed water V(i,j)=steadystate_cstr_volume(flow(i),S(j),P); end end figure surf(S,flow,V) title('Volume of reactor 1 in steady state in [L]','FontSize',14) xlabel('effluent ammonia concentration in [mmol/L]','FontSize',14) ylabel('flow in [L/min]','FontSize',14) zlabel('volume of reactor in [L]') colorbar