Crude model of sludge water aeration cf. https://www.plctalk.net/qanda/showthread.php?t=131415
python fopdt.py [--plot]
import matplotlib.pyplot as plt
import fopdt
aeration,inflow,model = fopdt.FOPDT32().init_steady_state()
daeration = aeration * 1e-4
dinflow = inflow * 1e-4
o2_data = list()
for i in range(1024):
model.model_step(1,aeration,inflow)
o2_data.append(model.cells_pg32[-1]/model.pv_factor)
aeration += daeration
inflow -= dinflow
plt.plot(o2_data)
plt.show()
- Python module fopdt with class FOPDT32
- Requires module numpy
- Require module matplotlib to plot