extra_functions

# extra_functions - Potentially useful functions for HW Set#6...

This preview shows page 1. Sign up to view the full content.

% Potentially useful functions for HW Set #6 % you can copy the contents of this file to your main function %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function CMrate = Cell_Multiplication(Ncells,Nutrients,P,params) % computes the Cell Multiplication rate (cells/s) in the CSTR % inputs: % Ncells number of cells in the CSTR % Nutrients concentration of Nutrients in the CSTR (moles/liter) % P concentration of Product in CSTR, [=] moles/liter % params values of [k1,k2,k3,c1,c2,d] as listed in problem statement. k1 = params(1); c1=params(4); d=params(6); CMrate = k1.*Ncells.*Nutrients./((1+c1.*Nutrients).*(1+d.*P)); return; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function NCrate = Nutrient_Consumption(Ncells,Nutrients,P,params) % computes the nutrient consumption rate in the CSTR (moles/s) % inputs: % Ncells number of cells in the CSTR % Nutrients concentration of Nutrients in the CSTR (moles/liter) % P concentration of Product in CSTR, [=] moles/liter
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Ask a homework question - tutors are online