Development of an algorithm for calculating ion exchange processes using the Python ecosystem

Main Article Content

DOI

Iryna Chub

chub.irina.nik@gmail.com

https://orcid.org/0000-0002-5546-3286
Oleksii Proskurnia

o.i.proskurnia@gmail.com

https://orcid.org/0000-0002-3111-3417
Kateryna Demchenko

yayaska31@gmail.com

Oleksandr Miroshnyk

omiroshnyk@btu.kharkiv.ua

https://orcid.org/0000-0002-6144-7573
Taras Shchur

shchurtg@gmail.com

https://orcid.org/0000-0003-0205-032X
Serhii Halko

galkosv@gmail.com

https://orcid.org/0000-0001-7991-0311

Abstract

Ion exchange plays a key role not only in eliminating water hardness and reducing the concentration of unwanted ions, but also in protecting the environment. Due to its versatility, it is an indispensable tool in modern environmental technologies. Calculation methods are an important component of the implementation of ion exchange technologies, as they play a crucial role in their effective operation. There are calculation methods used in the design of ion exchange systems, but similar methods have not yet been developed to determine operating parameters during operation. This complicates the optimization of the process in real conditions and requires further research and development. The calculation method should be easy to use, but at the same time provide high accuracy of results, taking into account such important factors as water composition, filtration rate, temperature and type of ion exchange resins. It is especially important that the method be developed based on open Python libraries to ensure accessibility and versatility. The differential mathematical approach using Python provides significantly higher accuracy, efficiency and flexibility in calculations. Therefore, the development of an algorithm for solving systems of nonlinear equations by Newton's method will allow achieving maximum accuracy of results. The article develops an algorithm for solving a nonlinear system of equations by Newton's method, which allows determining the distribution of ions in the working zone of the filter in both liquid and solid phases. The implementation of the developed algorithm is carried out using the Python ecosystem. Based on the calculation results, a graph of the output curve is constructed and a complex software module is developed that allows controlling the most important operating parameters of ion-exchange filters. Also, the use of a complex software module will contribute to reducing the operating costs of ion-exchange filters and increasing the efficiency of processes.

Keywords:

Python, Newton's method, ion exchange, ion concentration, Ion exchange technology

References

Article Details

Chub, I., Proskurnia, O., Demchenko, K., Miroshnyk, O., Shchur, T., & Halko, S. (2025). Development of an algorithm for calculating ion exchange processes using the Python ecosystem. Informatyka, Automatyka, Pomiary W Gospodarce I Ochronie Środowiska, 15(4), 95–99. https://doi.org/10.35784/iapgos.7641