You are on page 1of 3

(*PREZ GARDUO PAOLA REMEDIOS

7IM1
BIOINGENIERIA 1
SIMULADOR*)
2 PAOLA TAREA 3.nb

(*CULTIVO POR LOTE*)


(*VALORES NUMERICOS*)
max = 0.45;
Ks = 0.18;
Ki = 30;
Kp = 22;
Sm = 60;
B = 0.033;
j = 1;
m = 0.08;
yg = 0.55;
= 1.17;
= 0.12;
n = 0.85;
Kd = 0.017;
yp = 0.51;
x0 = 2.0;
s0 = 5.0;
p0 = 0.05;
tf = 10;
t0 = 0.0;

(*MODELO LUONG*)
max * s[t] s[t]
= 1-
Ks + s[t] Sm
qs = m + / yg + qp / yp
qp = () +

(*ECUACIONES DE BALANCE DE MASA*)


ECUACION1 = x '[t] x[t] * ( - Kd);
ECUACION2 = s '[t] == - qs * x[t];
ECUACION3 = p '[t] qp * x[t];

SOL = NDSolve[{ECUACION1, ECUACION2, ECUACION3, x[0] x0, s[0] s0, p[0] p0},
resolvedor diferencial numrico
{x, s, p}, {t, t0, tf}]
s[t]
0.45 1 - 60
s[t]
0.18 + s[t]
PAOLA TAREA 3.nb 3

s[t] s[t]
0.818182 1 - 60
s[t] 0.5265 1 - 60
s[t]
0.08 + + 1.96078 0.12 +
0.18 + s[t] 1 + p[t]
(0.18 + s[t])
22

s[t]
0.5265 1 - 60
s[t]
0.12 +
0.18 + s[t]

Domain: {{0., 10.}}


x InterpolatingFunction ,
Output: scalar
funcin interpolante

Domain: {{0., 10.}}


s InterpolatingFunction ,
Output: scalar
funcin interpolante

Domain: {{0., 10.}}


p InterpolatingFunction
Output: scalar
funcin interpolante

In[92]:= REX = Plot[Evaluate[x[t] /. SOL], {t, t0, tf},


repr evala
AxesLabel {"t(h)", "x(g/L)"}, PlotStyle Pink, PlotLabel "BIOMASA"];
etiqueta de ejes estilo de repre rosa etiqueta de representacin
RES = Plot[Evaluate[s[t] /. SOL], {t, t0, tf}, AxesLabel -> {"t (h)", "s (g/L)"},
repr evala etiqueta de ejes
PlotStyle Blue, PlotLabel "SUSTRATO"];
estilo de repre azul etiqueta de representacin
REP = Plot[Evaluate[p[t] /. SOL], {t, t0, tf}, AxesLabel -> {"t (h)", "p (g/L)"},
repr evala etiqueta de ejes
PlotStyle Red, PlotLabel "PRODUCTO"];
estilo de repre rojo etiqueta de representacin
MULT = Show[REX, RES, REP, AxesLabel {"t (h)", "x,s,p (g/L)"},
muestra etiqueta de ejes
PlotLabel "[x],[s],[p]"];
etiqueta de representacin

You might also like