I am moving some wastewater metabolic models across to Python, specifically some on polyphosphate accumulating organisms (PAOs). I have managed to move the model into Python and solving using Gekko which is great! (Still a few tweaks in the equations to be implemented).
Anaerobic storage polymer consumption
I can get the change in O2 to wokr and simluate supply of oxygen, however, I don’t quite know how to get it to repeat through multiple cycles to observe the changes in storage polymers over numerous cycles.
This code for a step in Oxygen (O2) worked for the initial cycle:
t = np.linspace(0, 19, 19) m.time = t
O2_step = np.zeros(19)
O2_step[17:] = 0.05
O2 = m.Param(value=O2_step)
I have tried the m.Options.CYCLECOUNT = 3 but it doesn’t seem to do the trick. Is there another way to set this up?
Any help would be greatly appreciated.