A backward differentiation formula (BDF) has been shown to be an effective way to solve a system of ordinary differential equations (ODEs) that have some degree of stiffness. However, sometimes, due to high-frequency variations in the external time series of boundary conditions, a small time-step is required to solve the ODE system throughout the entire simulation period, which can lead to a high computational cost, slower response, and need for more memory resources. One possible strategy to overcome this problem is to dynamically adjust the time-step with respect to the system’s stiffness. Therefore, small time-steps can be applied when needed, and larger time-steps can be used when allowable. This paper presents a new algorithm for adjusting the dynamic time-step based on a BDF discretization method. The parameters used to dynamically adjust the size of the time-step can be optimally specified to result in a minimum computation time and reasonable accuracy for a particular case of ODEs. The proposed algorithm was applied to solve the system of ODEs obtained from an activated sludge model (ASM) for biological wastewater treatment processes. The algorithm was tested for various solver parameters, and the optimum set of three adjustable parameters that represented minimum computation time was identified. In addition, the accuracy of the algorithm was evaluated for various sets of solver parameters.
KeywordsAdaptive Time-StepBackward Differentiation FormulaActivated Sludge ModelOrdinary Differential EquationStiffnessComputation Time
Gernaey, K.V., van Loosdrecht, M.C.M., Henze, M., Lind, M. and Jørgensen, S.B. (2004) Activated Sludge Wastewater Treatment Plant Modelling and Simulation: State of the Art. Environmental Modelling & Software, 19, 763-783. http://dx.doi.org/10.1016/j.envsoft.2003.03.005
Hauduc, H., Rieger, L., Ohtsuki, T., Shaw, A., Takacs, I., Winkler, S., Heduit, A., Vanrolleghem, P.A. and Gillot, S. (2011) Activated Sludge Modelling: Development and Potential Use of a Practical Applications Database. Water Science & Technology, 63, 2164-2182. http://dx.doi.org/10.2166/wst.2011.368
Alikhani, J., Al-Omari, A., Clippeleir, H.D., Murthy, S., Takacs, I. and Massoudieh, A. (2016) Assessment of the Endogenous Respiration Rate and the Observed Biomass Yield for Methanol-Fed Denitrifying Bacteria under Anoxic and Aerobic Conditions. Water Science and Technology, In Press. http://dx.doi.org/10.2166/wst.2016.486
Le Moullec, Y., Potier, O., Gentric, C. and Leclerc, J.P. (2011) Activated Sludge Pilot Plant: Comparison between Experimental and Predicted Concentration Profiles Using Three Different Modelling Approaches. Water Research, 45, 3085-3097. http://dx.doi.org/10.1016/j.watres.2011.03.019
Busch, J., Elixmann, D., Kühl, P., Gerkens, C., Schlöder, J.P., Bock, H.G. and Marquardt, W. (2013) State Estimation for Large-Scale Wastewater Treatment Plants. Water Research, 47, 4774-4787. http://dx.doi.org/10.1016/j.watres.2013.04.007
Hauduc, H., Rieger, L., Oehmen, A., van Loosdrecht, M.C., Comeau, Y., Heduit, A., Vanrolleghem, P.A. and Gillot, S. (2013) Critical Review of Activated Sludge Modeling: State of Process Knowledge, Modeling Concepts, and Limitations. Biotechnology and Bioengineering, 110, 24-46. http://dx.doi.org/10.1002/bit.24624
Han, H.-G., Qian, H.-H. and Qiao, J.-F. (2014) Nonlinear Multiobjective Model-Predictive Control Scheme for Wastewater Treatment Process. Journal of Process Control, 24, 47-59. http://dx.doi.org/10.1016/j.jprocont.2013.12.010
Henze, M., Leslie Grady Jr, C.P., Gujer, W., Marais, G.V.R., Matsuo, T., Henze, M., Leslie Grady Jr, C.P., Gujer, W., Marais, G.V.R. and Matsuo, T. (1987) A General Model for Single-Sludge Wastewater Treatment Systems. Water Research, 21, 505-515. http://dx.doi.org/10.1016/0043-1354(87)90058-3
Henze, M., Gujer, W., Mino, T. and van Loosdrecht, M. (2000) Activated Sludge Models ASM1, ASM2, ASM2d and ASM3. IWA Publishing, London.
Alikhani, J., Takacs, I., Al-Omari, A., Murthy, S., Mokhayeri, Y. and Massoudieh, A. (2015) Time Series Analysis for Uncertainty Evaluation of Performance of Biological Wastewater Treatment. Proceedings of the Water Environment Federation, 15, 3519-3526.
Alikhani, J., Takacs, I., Omari, A.A., Murthy, S., Mokhayeri, Y. and Massoudieh, A. (2014) Inverse Modeling of Nitrification-Denitrification Processes: A Case Study on the Blue Plains Wastewater Treatment Plant in Washington, DC. Proceedings of the Water Environment Federation, 19, 4556-4567. http://dx.doi.org/10.2175/193864714815942620
Lindberg, C.-F. and Carlsson, B. (1996) Adaptive Control of External Carbon Flow Rate in an Activated Sludge Process. Water Science and Technology, 34, 173-180. http://dx.doi.org/10.1016/0273-1223(96)84212-0
Cash, J.R. (2000) Modified Extended Backward Differentiation Formulae for the Numerical Solution of Stiff Initial Value Problems in ODEs and DAEs. Journal of Computational and Applied Mathematics, 125, 117-130. http://dx.doi.org/10.1016/S0377-0427(00)00463-5
Hojjati, G., Rahimi Ardabili, M.Y. and Hosseini, S.M. (2004) A-EBDF: An Adaptive Method for Numerical Solution of Stiff Systems of ODEs. Mathematics and Computers in Simulation, 66, 33-41. http://dx.doi.org/10.1016/j.matcom.2004.02.019
Jannelli, A. and Fazio, R. (2006) Adaptive Stiff Solvers at Low Accuracy and Complexity. Journal of Computational and Applied Mathematics, 191, 246-258. http://dx.doi.org/10.1016/j.cam.2005.06.041
Akinfenwa, O.A., Jator, S.N. and Yao, N.M. (2013) Continuous Block Backward Differentiation Formula for Solving Stiff Ordinary Differential Equations. Computers & Mathematics with Applications, 65, 996-1005. http://dx.doi.org/10.1016/j.camwa.2012.03.111
Celaya, E.A., Aguirrezabala, J.J.A. and Chatzipantelidis, P. (2014) Implementation of an Adaptive BDF2 Formula and Comparison with the MATLAB Ode15s. Procedia Computer Science, 29, 1014-1026. http://dx.doi.org/10.1016/j.procs.2014.05.091
Alikhani, J., Shayegan, J. and Akbari, A. (2015) Risk Assessment of Hydrocarbon Contaminant Transport in Vadose Zone as It Travels to Groundwater Table: A Case Study. Advances in Environmental Technology, 2, 77-84.
Alikhani, J., Deinhart, A., Visser, A., Bibby, R., Purtschert, R., Moran, J., Massoudieh, A. and Esser, B. (2016) Nitrate Vulnerability Projections from Bayesian Inference of Multiple Groundwater Age Tracers. Journal of Hydrology, In Press. http://dx.doi.org/10.1016/j.jhydrol.2016.04.028
Shoghli, B. and Lim, Y.H. (2015) Predictive Scheme for Failures of Embankment Dams with High Overtopping Potential: Case Studies Using Remote Sensing Data. World Environmental and Water Resources Congress, Austin, 17-21 May 2015, 1332-1340. http://dx.doi.org/10.1061/9780784479162.131
Shoghli, B., Lim, Y.H. and Alikhani, J. (2016) Evaluating the Effect of Climate Change on the Design Parameters of Embankment Dams: Case Studies Using Remote Sensing Data. World Environmental and Water Resources Congress, West Palm Beach, 22-26 May 2016, 575-585. http://dx.doi.org/10.1061/9780784479872.059
Zhang, X., Scheving, B., Shoghli, B., Zygarlicke, C. and Wocken, C. (2015). Quantifying Gas Flaring CH4 Consumption Using VIIRS. Remote Sensing, 7, 9529-9541. http://dx.doi.org/10.3390/rs70809529
Sharifi, S., Murthy, S., Takács, I. and Massoudieh, A. (2014) Probabilistic Parameter Estimation of Activated Sludge Processes Using Markov Chain Monte Carlo. Water Research, 50, 254-266. http://dx.doi.org/10.1016/j.watres.2013.12.010
Ashino, R., Nagase, M. and Vaillancourt, R. (2000) Behind and beyond the Matlab ODE Suite. Computers & Mathematics with Applications, 40, 491-512. http://dx.doi.org/10.1016/S0898-1221(00)00175-9
Shampine, L.F. and Reichelt, M.W. (1997) The Matlab ODE Suite. SIAM Journal on Scientific Computing, 18, 1-22. http://dx.doi.org/10.1137/S1064827594276424
Metzger, M. (2000) A Comparative Evaluation of DRE Integration Algorithms for Real-Time Simulation of Biologically Activated Sludge Process. Simulation Practice and Theory, 7, 629-643. http://dx.doi.org/10.1016/S0928-4869(99)00015-4
Takács, I., Patry, G.G. and Nolasco, D. (1991) A Dynamic Model of the Clarification-Thickening Process. Water Research, 25, 1263-1271. http://dx.doi.org/10.1016/0043-1354(91)90066-Y