function f = bio_ss(x) % % b.w. bequette % (c) 16 Nov 92 % revised 18 July 96 % % find steady-states of bioreactor, using fsolve: % % x = fsolve('bio',x0) % % where x0 is a vector of initial guesses % % x(1) = biomass % x(2) = substrate % % biomass ("bugs") consumes the substrate % % D = dilution rate (F/V, time^-1) % Y = yield biomass/substrate % mu = specific growth rate % mumax = parameter (both Monod and Substrate Inhibition) % km = parameter (both Monod and Substrate Inhibition) % k1 = parameter (Substrate Inhibition only, k1 = 0 for Monod) % sf = substrate feed concentration % % the function vector consists of 2 equations % f = zeros(2,1); % % parameter values % D = 0.3; mumax = 0.53; Y = 0.4; km = 0.12; sf = 4.0; k1 = 0.4545; % % Substrate Inhibition expression for specific growth rate % mu = mumax*x(2)/(km+x(2)+k1*x(2)*x(2)); % % steady-state equations % fsolve varies x(1) and x(2) to drive f(1) and f(2) to zero % f(1) = (mu - D)*x(1); f(2) = (sf - x(2))*D - mu*x(1)/Y;