Sorry. The model includes several differential equations defining processes such as algal and bacterial growth, respiration and decay, and chemical equilibria governing the pH. The main program may be downloaded from <https://www.dropbox.com/s/7jdu9b5mlbgas43/rwqm1.m>.
The purpose of attaching...
Here are the pictures, sorry for my ambivalence.
https://www.dropbox.com/s/y6yxzhryjdnf33h/Screenshot%20from%202014-01-09%2008%3A38%3A01.png
https://www.dropbox.com/s/8du48g6xsccsy5g/Screenshot%20from%202014-01-09%2008%3A43%3A35.png...
I am simulating the rather complex process of algae and bacteria dynamics in a waste water treatment plant using Simulink (MATLAB varsion 2012a). A snapshot illustrating the model set-up is attached. All dynamics are defined in a MATLAB S-function and simulations are done using the ode15s...