LAPSE:2023.36443
Published Article
LAPSE:2023.36443
A New ODE-Based Julia Implementation of the Anaerobic Digestion Model No. 1 Greatly Outperforms Existing DAE-Based Java and Python Implementations
August 2, 2023
The Anaerobic Digestion Model 1 is the quasi-industry standard for modelling anaerobic digestion, and it has seen several new implementations in recent years. It is assumed that these implementations would give the same results; however, a thorough comparison of these implementations has never been reported. This paper considers four different implementations of ADM1: one in Julia, one in Java, and two in Python. The Julia code is a de novo implementation of the ODE formulation of ADM1 that is reported here for the first time. The existing Java and Python codes implement the more common DAE formulation. Therefore, this paper also examines how DAE implementations compare to ODE implementations in terms of computational speed as well as solutions returned. As expected, the ODE and DAE forms both return comparable solutions. However, contrary to popular belief, the Julia ODE implementation is faster than the DAE implementations, namely by one to three orders of magnitude of compute time, depending on the simulation scenario and the reference implementation used for comparison.
Keywords
ADM1, anaerobic digestion, Java programming language, Julia programming language, Numerical Methods, performance comparison, Python programming language
Suggested Citation
Allen C, Mazanko A, Abdehagh N, Eberl HJ. A New ODE-Based Julia Implementation of the Anaerobic Digestion Model No. 1 Greatly Outperforms Existing DAE-Based Java and Python Implementations. (2023). LAPSE:2023.36443
Author Affiliations
Allen C: Department Mathematics and Statistics, University of Guelph, Guelph, ON N1G 2W1, Canada [ORCID]
Mazanko A: Department Mathematics and Statistics, University of Guelph, Guelph, ON N1G 2W1, Canada [ORCID]
Abdehagh N: CHFour Biogas, Manotick, ON K4M 1A4, Canada [ORCID]
Eberl HJ: Department Mathematics and Statistics, University of Guelph, Guelph, ON N1G 2W1, Canada [ORCID]
Journal Name
Processes
Volume
11
Issue
7
First Page
1899
Year
2023
Publication Date
2023-06-24
Published Version
ISSN
2227-9717
Version Comments
Original Submission
Other Meta
PII: pr11071899, Publication Type: Journal Article
Record Map
Published Article

LAPSE:2023.36443
This Record
External Link

doi:10.3390/pr11071899
Publisher Version
Download
Files
[Download 1v1.pdf] (2.1 MB)
Aug 2, 2023
Main Article
License
CC BY 4.0
Meta
Record Statistics
Record Views
99
Version History
[v1] (Original Submission)
Aug 2, 2023
 
Verified by curator on
Aug 2, 2023
This Version Number
v1
Citations
Most Recent
This Version
URL Here
https://psecommunity.org/LAPSE:2023.36443
 
Original Submitter
Calvin Tsay
Links to Related Works
Directly Related to This Work
Publisher Version