Published
2025-06-30
Issue
Section
Original Research Article
License
Copyright (c) 2025 Choon Kit chan, Pankaj Dumka, Rishika Chauhan, Altafhussain G Momin, Rajashree Bhokare, Neelashetty K, Subhav Singh, Deekshant Varshaney, Feroz Shaik

This work is licensed under a Creative Commons Attribution 4.0 International License.
The Author(s) warrant that permission to publish the article has not been previously assigned elsewhere.
Author(s) shall retain the copyright of their work and grant the Journal/Publisher right for the first publication with the work simultaneously licensed under:
OA - Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). This license allows for the copying, distribution and transmission of the work, provided the correct attribution of the original creator is stated. Adaptation and remixing are also permitted.

This license intends to facilitate free access to, as well as the unrestricted reuse of, original works of all types for non-commercial purposes.
How to Cite
The Law of mass action: Mathematical modelling and python implementation for chemical kinetics
Choon Kit chan
Faculty of Engineering and Quantity Surveying, INTI International University, Nilai, Negeri Sembilan, 71800, Malaysia
Pankaj Dumka
Department of Mechanical Engineering, Jaypee University of Engineering and Technology, A.B. Road, Raghogarh-473226, Guna, Madhya Pradesh, India
Rishika Chauhan
Department of Electronics and Communication Engineering, Jaypee University of Engineering and Technology, A.B. Road, Raghogarh-473226, Guna, Madhya Pradesh, India
Altafhussain G Momin
Department of Mechanical Engineering, L D College of Engineering, Ahmedabad, Gujarat, India
Rajashree Bhokare
Department of Electrical Engineering, Dr. D. Y. Patil Institute of Technology, Pimpri, Pune, Maharashtra, 411018, India
Neelashetty K
Professor, EEE department, Guru Nanak Dev Engg College, Bidar, Karnataka, 585403, India
Subhav Singh
Chitkara Centre for Research and Development, Chitkara University, Himachal Pradesh-174103, India Division of research and development, Lovely Professional University, Phagwara, Punjab, India
Deekshant Varshaney
Centre of Research Impact and Outcome, Chitkara University, Rajpura- 140417, Punjab, India Centre for Promotion of Research, Graphic Era (Deemed to be University), Uttarakhand, Dehradun, India
Feroz Shaik
Department of Mechanical Engineering, College of Engineering, Prince Mohammad Bin Fahd University, Al Khobar 31952, Saudi, Arabia
DOI: https://doi.org/10.59429/ace.v8i2.5644
Keywords: chemical kinetics; law of mass action; python programming; SciPy; NumPy; pandas; process innovation
Abstract
This article explores the mathematical framework and computational implementation of the “Law of Mass Action” to model the kinetics of chemical reaction. The study begins with a detailed explanation of the governing equations, emphasizing the role of stoichiometry and reaction orders in dynamic systems. Using Python, a generalized computational framework was developed to solve systems of ordinary differential equations (ODEs) that describe concentration changes over time. The function solve_ivp has been used from the SciPy module to perform the task of solving ODEs. The solver is capable of handling complex reaction networks by incorporating a stoichiometric matrix, reaction rate constants, and reaction orders as inputs. The results are plotted and tabulated with the help of Matplotlib.pylab and Pandas modules. Two representative examples, including real-world chemical reactions, were solved to demonstrate the versatility and accuracy of the approach. Results show that this generalized methodology provides an efficient and adaptable tool for chemical reaction modelling. This work highlights the power of combining mathematics with modern programming to solve practical chemical engineering problems.
References
[1]. F. Horn, R. Jackson, General mass action kinetics, Arch. Ration. Mech. Anal. 47 (1972) 81–116. https://doi.org/10.1007/BF00251225.
[2]. Vasudevan, A., Aanisha, A. C., Mohammad, S. I., Manoharan, R., Raja, N., Oqilat, O., & Alshurideh, M. T. (2025). Divided square divisor cordial and Fibonacci prime labeling of theta graphs in Python. Applied Mathematics and Information Sciences, 19(1), 149–159. https://doi.org/10.18576/amis/190113.
[3]. M. Järvinen, V.V. Visuri, E.P. Heikkinen, A. Kärnä, P. Sulasalmi, C. De Blasio, T. Fabritius, Law of mass action based kinetic approach for the modelling of parallel mass transfer limited reactions: Application to metallurgical systems, ISIJ Int. 56 (2016) 1543–1552. https://doi.org/10.2355/isijinternational.ISIJINT-2016-241.
[4]. L.P. De Oliveira, D. Hudebine, D. Guillaume, J.J. Verstraete, A Review of Kinetic Modeling Methodologies for Complex Processes, Oil Gas Sci. Technol. 71 (2016). https://doi.org/10.2516/ogst/2016011.
[5]. W. Ji, F. Richter, M.J. Gollner, S. Deng, Autonomous kinetic modeling of biomass pyrolysis using chemical reaction neural networks, Combust. Flame 240 (2022) 111992. https://doi.org/https://doi.org/10.1016/j.combustflame.2022.111992.
[6]. J. Bauermann, S. Laha, P.M. McCall, F. Jülicher, C.A. Weber, Chemical Kinetics and Mass Action in Coexisting Phases, J. Am. Chem. Soc. 144 (2022) 19294–19304. https://doi.org/10.1021/jacs.2c06265.
[7]. J. Clow, G. Tzimpragos, D. Dangwal, S. Guo, J. McMahan, T. Sherwood, A pythonic approach for rapid hardware prototyping and instrumentation, 2017 27th Int. Conf. F. Program. Log. Appl. FPL 2017 (2017). https://doi.org/10.23919/FPL.2017.8056860.
[8]. G. Van Rossum, others, Python Programming Language., in: USENIX Annu. Tech. Conf., 2007: pp. 1–36.
[9]. Y.C. Huei, Benefits and introduction to python programming for freshmore students using inexpensive robots, in: Proc. IEEE Int. Conf. Teaching, Assess. Learn. Eng. Learn. Futur. Now, TALE 2014, 2015: pp. 12–17. https://doi.org/10.1109/TALE.2014.7062611.
[10]. A. Holkner, J. Harland, Evaluating the dynamic behaviour of Python applications, Conf. Res. Pract. Inf. Technol. Ser. 91 (2009) 19–27.
[11]. C. Bauckhage, NumPy / SciPy Recipes for Data Science: Subset-Constrained Vector Quantization via Mean Discrepancy Minimization, (2020) 1–4.
[12]. S. Van Der Walt, S.C. Colbert, G. Varoquaux, The NumPy array: A structure for efficient numerical computation, Comput. Sci. Eng. 13 (2011) 22–30. https://doi.org/10.1109/MCSE.2011.37.
[13]. K. Gajula, V. Sharma, B. Sharma, D.R. Mishra, P. Dumka, Modelling of Energy in Transit Using Python, Int. J. Innov. Sci. Res. Technol. 7 (2022) 1152–1156.
[14]. R. Johansson, Numerical python: Scientific computing and data science applications with numpy, SciPy and matplotlib, Second edition, Apress, Berkeley, CA, 2018. https://doi.org/10.1007/978-1-4842-4246-9.
[15]. C. Fuhrer, O. Verdier, J.E. Solem, C. Führer, O. Verdier, J.E. Solem, Scientific Computing with Python. High-performance scientific computing with NumPy, SciPy, and pandas, Packt Publishing Ltd, 2021.
[16]. J. Ranjani, A. Sheela, K. Pandi Meena, Combination of NumPy, SciPy and Matplotlib/Pylab-A good alternative methodology to MATLAB-A Comparative analysis, in: Proc. 1st Int. Conf. Innov. Inf. Commun. Technol. ICIICT 2019, 2019: pp. 1–5. https://doi.org/10.1109/ICIICT1.2019.8741475.
[17]. G.R. Kanagachidambaresan, G. Manohar Vinoothna, Visualizations, in: K.B. Prakash, G.R. Kanagachidambaresan (Eds.), EAI/Springer Innov. Commun. Comput., Springer International Publishing, Cham, 2021: pp. 15–21. https://doi.org/10.1007/978-3-030-57077-4_3.
[18]. V. Porcu, Matplotlib, in: Python Data Min. Quick Syntax Ref., Apress, Berkeley, CA, 2018: pp. 201–234. https://doi.org/10.1007/978-1-4842-4113-4_10.
[19]. E. Bisong, Matplotlib and Seaborn, in: Build. Mach. Learn. Deep Learn. Model. Google Cloud Platf., Apress, Berkeley, CA, 2019: pp. 151–165. https://doi.org/10.1007/978-1-4842-4470-8_12.
[20]. J.D. Hunter, Matplotlib: A 2D graphics environment Computing in Science & Engineering 9 (3): 90-95, (2007).
[21]. W. McKinney, Python for data analysis: Data wrangling with Pandas, NumPy, and IPython, “ O’Reilly Media, Inc.,” 2012.
[22]. Patel, V., Judal, K. B., Panchal, H., Singh, B., Jomde, A., Kumar, A., Patel, A., Jain, R., & Sadasivuni, K. K. (2023). Investigation on drying kinetics analysis of gooseberry slices dried under open sun. Environmental Challenges, 13, 100778. https://doi.org/10.1016/j.envc.2023.100778
[23]. Kumar, M., Sahdev, R. K., Tiwari, S., Manchanda, H., Chhabra, D., Panchal, H., & Sadasivuni, K. K. (2021). Thermal performance and kinetic analysis of vermicelli drying inside a greenhouse for sustainable development. Sustainable Energy Technologies and Assessments, 44, 101082. https://doi.org/10.1016/j.seta.2021.101082
[24]. L. Adleman, M. Gopalkrishnan, M.D. Huang, P. Moisset, D. Reishus, On the mathematics of the law of mass action, A Syst. Theor. Approach to Syst. Synth. Biol. I Model. Syst. Charact. (2014) 3–46. https://doi.org/10.1007/978-94-017-9041-3_1.
[25]. E.O. Voit, H.A. Martens, S.W. Omholt, 150 Years of the Mass Action Law, PLoS Comput. Biol. 11 (2015) 1–7. https://doi.org/10.1371/journal.pcbi.1004012.
[26]. A. Van Der Schaft, S. Rao, B. Jayawardhana, On the mathematical structure of balanced chemical reaction networks governed by mass action kinetics, SIAM J. Appl. Math. 73 (2013) 953–973. https://doi.org/10.1137/11085431X.
[27]. M. Balat, Biomass Energy and Biochemical Conversion Processing for Fuels and Chemicals, Energy Sources, Part A Recover. Util. Environ. Eff. 28 (2006) 517–525. https://doi.org/10.1080/009083190927994.
[28]. N. Adi Sasongko, N. Gunadi Putra, M.L. Donna Wardani, Review of types of biomass as a fuel-combustion feedstock and their characteristics, Adv. Food Sci. Sustain. Agric. Agroindustrial Eng. 6 (2023) 170–184. https://doi.org/10.21776/ub.afssaae.2023.006.02.8.








