# Brianna N. Samuels-Week 11

## Purpose

• to use MATLAB to simulate a chemostat and compare the computations to a steady state outcome using the chemostat_script.m and chemostat_dynamics.m files provided

## Methods

• Use the parameter values q = 0.10 (1/hr), u = 5 (g/L), E=1.5, r=0.8 (1/hr), K = 8 (g). Using the formulae in the document (linked above), what are the steady states of cell biomass and nutrient mass?
• x = 2.57g
• y = 1.14g
• Assuming a 2 liter chemostat, what are the steady state concentrations of cells and nutrient?
• [x] = 1.5 gL
• [y] = 0.5g/L
• Simulate the system dynamics using the MATLAB files and the parameters of (1).
• see Figure 1 in results
• Do the graphs show the system going to steady state?
• Yes, it starts to reach steady state around 40-50 hours
• Do the steady states match your (1) calculations?
• Yes, they are consistent
• Be sure to save the graphs and upload them to your journal.
• BONUS: can you get two y-axes, with the second one to the right of the picture like in the journal articles you’ve read?

## Results

Figure 1 depicts the system dynamics that were simulated on MATLAB using the given parameters of steps 1 in the Methods section

## Acknowledgments

• Homework Partner: Austin Dias
• All files provided by Dr. Dahlquist and Dr. Fitzpatrick
• Except for what is noted above, this individual journal entry was completed by me and not copied from another source.

## Scientific Conclusion

The purpose of this assignment was to use MATLAB to simulate a chemostat and compare the computations to a steady state outcome using the chemostat_script.m and chemostat_dynamics.m files provided. This was achieved and overall seemed to match the calculated values. I got a little bit more familiar with MATLAB but still am having trouble understanding how to work it.