You are on page 1of 2

function phb

% program pentru simularea sintezei celulare a acidului


% poli-beta-hidroxi-butiric (PHB) *Heinzle & Lafferty, 1980)
% Model celular structurat, determinist, la volum si temperatura constante
% (c) G. Maria, 2003
%
% input data
R0=0.22; %Conc. initiala biomasa reziduala (g/L)(X-P); X=biomasa celulara
S0=2.3; %Conc. initiala substrat (NH4+)(g/L)
P0=0.22; %Conc. initiala produs (PHB)(g/L)
tmax=40; %timp maxim de integrare (h)
% end inputs

[tm,Cm]=ode15s('phbm',[0,tmax],[R0,S0,P0]);
plot(tm,Cm(:,1),'r-',tm,Cm(:,2),'b-',tm,Cm(:,3),'g-',tm,Cm(:,1)+Cm(:,3),'c-')
xlabel('time (h)'); ylabel('Concentrations (g/L)');
title('R=X-P(red);S=NH4(blue);P=PHB(green);X=biomass(cyan)')
%end

-----------------------------------------------------------------------------
function dy=phbm(t,C)
% subrutina derivate model cinetic simulare sinteza celulara a (PHB)
% (c) G. Maria, 2003
%

% constante cinetice (unitati de g/L, hrs.)


mium1=0.13; KS1=0.1; mium2=0.08; KS2=1; n=4; % viteza dR/dt
YSR=1/1.5; % coef. stoichiometric S/R
YPR=0.105; % coef. stoichiometric P/R
k1=0.045; k2=0.18; KI=0.036; % viteza de stocare P (dP2/dt)

kont=0;
for i=1:max(size(C))
if C(i)<0 C(i)=0.0001; kont=1; end;
end
R=C(1); S=C(2); P=C(3);

if kont==1
% disp('*** Warning : constraint violation ...')
else;end;

rR=mium1*S*R/(KS1+S) + mium2*R/(1+(KS2/S)^n);
rS=-YSR*rR;
rP1=YPR*rR;
rP2=-k1*P*KI/(KI+S) + k2*R*KI/(KI+S);

dy(1)= rR; % derivata R


dy(2)= rS; % derivata S
dy(3)= rP1 + rP2; % derivata P
dy=dy';
return
------------------------------------------------------------------------------

You might also like