Computing: Free Pascal Programming

Programming Home   Home   Contact

Bacteria growth in the chemostat (Bacteria3).


Description: Biology simulation, showing bacteria growth in the chemostat, based on the Monod growth model.
Simulation data is entered in the main window. Use "Start" to start the simulation: the number of bacteria pictures will increase/decrease as time passes and the bar showing the concentration of the substrate show how this one is consumed (just see what happens if you increase the flow rate; cf. included help for details). At program startup, parameters are set to update the simulation window each 0,1 sec, this simulation time corresponding to 1 min real growth time in the real world chemostat; time update and interval may be changed in the "Settings" menu.
This visual part of the simulation is more programming fun of myself than really scientificly useful. If you are seriously interested in the simulation results, use the "Graph" button to display the variation of the bacteria biomass and the nutrients concentration vs. time. The "Analyse" button pops up a window, showing all important values (in particular the survival boundary; cf. help text) for the actual growth simulation.

Free Pascal features: Creating images during program execution. Using a timer and the 'Left', 'Top' and 'Visibility' property of images to create simple simulation programs. Using canvas controls to draw mathematical graphs. Usage of string grids.

Screenshots:

Bacteria growth: Simulation and Analyse windows
 
Bacteria growth: Graph window