Next Article in Journal
A Combined Algorithm Approach for Optimizing Portfolio Performance in Automated Trading: A Study of SET50 Stocks
Previous Article in Journal
Partial Least Squares Regression for Binary Data
Previous Article in Special Issue
On the Pricing of Vulnerable Foreign Equity Options with Stochastic Volatility in an Intensity-Based Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Approach for Improving Reverse Osmosis Model Accuracy: Numerical Optimization for Water Purification Systems

1
Institute of Mathematics, Henan Academy of Sciences, Zhengzhou 450046, China
2
Department of Mathematics and Computer Science, Babeş-Bolyai University, 400084 Cluj-Napoca, Romania
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(3), 459; https://doi.org/10.3390/math13030459
Submission received: 12 January 2025 / Revised: 24 January 2025 / Accepted: 26 January 2025 / Published: 30 January 2025
(This article belongs to the Special Issue Computational Mathematics and Numerical Analysis)

Abstract

:
The primary objective of this study is to present a new technique and library designed to validate the outcomes of numerical methods used for addressing various issues. This paper specifically examines the reverse osmosis (RO) model, a well-known water purification system. A crucial aspect of this problem involves solving an integral that is part of the overall solution. This integral is handled using one of the quadrature integration methods, with a focus on Romberg integration in this study. To manage the number of iterations, as well as to ensure accuracy and minimize errors, we employ the CESTAC method (Controle et Estimation Stochastique des Arrondis de Calculs) alongside the CADNA (Control of Accuracy and Debugging for Numerical Applications) library. By implementing this approach, we aim to achieve not only optimal results, but also the best method step and minimal error, and we aim to address numerical instabilities. The results show that only 16 iterations of the Romberg integration rule will be enough to find the approximate solutions.To demonstrate the efficacy and precision of our proposed method, we conducted two comprehensive comparative studies with the Sinc integration. The first study compares the optimal iteration count, optimal approximation, and optimal error between the single and double exponential decay methods and the Romberg integration technique. The second study evaluates the number of iterations required for convergence within various predefined tolerance values. The findings from both studies consistently indicate that our method outperforms the Sinc integration in terms of computational efficiency. Additionally, these comparative analyses highlight the potential of our approach as a reliable and effective tool for numerical integration.

1. Introduction

There is no denying the importance of mathematical models in our lives. We may represent and evaluate a wide range of issues using linear and nonlinear models [1]. The RO model, which can create drinking water based on a semi-permeable membrane that eliminates undesirable molecules and bigger particles like ions from water, is one of the most significant and useful procedures in water treatment [2]. A significant body of research has been dedicated to the modeling, optimization, and application of RO in water treatment and desalination. For instance, the study in [3] delved into the modeling and optimization of reverse salt, while ref. [4] explored the optimization of reverse osmosis desalination from brackish waters. Furthermore, the solution-diffusion model for water transport in reverse osmosis was elucidated in [5], providing valuable insights into the underlying mechanisms of the process.
In recent years, several researchers have made notable contributions to the field of RO. Y. Zhai et al. [6] investigated the feasibility of a one-step RO process for drinking water purification, highlighting its potential as an efficient and effective method. Meanwhile, B. Zhang et al. [7] examined the issue of membrane fouling in reverse osmosis filters, a critical concern in maintaining the performance and longevity of RO systems. S. Jamil et al. [8] explored the application of pressure-assisted forward osmosis for water purification, demonstrating its promise as an alternative approach.
Additional studies have focused on the development and optimization of RO-based water treatment systems. V. N. Epimakhov [9] discussed the use of RO filtration in water treatment, while V. V. Goncharuk et al. [10,11] concentrated on the design and implementation of low-pressure RO systems. These efforts have collectively advanced our understanding of RO and its applications in water treatment and desalination. For a more comprehensive review of the literature on RO, readers are referred to [12,13,14], which provide a wealth of information on the latest developments and findings in this field.
In order to perform the water treatment process in the RO, we must be able to apply pressure to the system and overcome the osmotic pressure. As a result, we will be able to purge the water of pollutants and biological elements like bacteria [15]. The outcome is that the trash must stay in the pressured space while the pure water is moved to the other side. As a result, bigger molecules, such as ions, cannot pass through the membrane, and only tiny molecules can pass through [16]. Due to the model’s significance, several researchers have recently investigated the RO model and used it to apply various controls. The model predictive control and dynamic matrix control were combined in [17], and the model predictive control methods were directly examined in [18]. Figure 1 shows the RO system.
Several researchers are investigating the model of the RO system. Luo et al. utilized machine learning techniques to develop an optimal design for the RO system in [19]. Razeghi et al. concentrated on the capability of geographic information systems (GISs) to provide energy to RO devices in [20]. Sayyad et al. [21] designed a hybrid forward system for RO. Kahrizi et al. [22] used computational fluid dynamics modeling to investigate the relationship between membrane porosity, tortuosity, and the forward water and reverse salt fluxes in forward osmosis. Additional research on the RO system can be found in [23,24].
To predict the concentration of salt solutions in semi-permeable membranes within the RO model, it can be expressed as an advection–diffusion equation [25]:
η Q z = α 2 Q η 2 ,
with α = P h v 0 and the boundary conditions
Q ( 0 , η ) = L 0 , Q ( z , ) = L 1 ,
and
P Q η ( z , 0 ) = q Q ( z , 0 ) .
In this equation, there are constant parameters representing the velocity of water flow through the semi-permeable membrane q, the dispersion of salt in water P, the distance from the semi-permeable boundary to the center of the canal h, and the horizontal velocity at a distance h from the semi-boundary v 0 . The variables z and η denote spatial coordinates, while Q = Q ( z , η ) represents the concentration of salt solutions at the point ( z , η ) . The stationary model for reverse osmosis water purification assumes that the system has reached a steady-state condition, where the concentrations of salt solutions are independent of time and the water before and after the membrane is uniformly fouled and purified, respectively.
In [25], Fulford and Broadbridge found the solution of the RO system (1) as
Q ( z , 0 ) = 3 1 3 q L 0 P J P h v 0 1 3 z 1 3 + L 0 .
This model can also be used to estimate the concentration of salt solutions in the RO system, where J is defined as an improper integral given by J = 0 e x p ( A 3 ) A d A . The integral J presents a significant challenge, as improper integrals are often difficult to solve using direct methods. Therefore, selecting an accurate and efficient numerical method for finding the solution is essential for this study. Typically, the numerical methods employed to tackle engineering problems rely on floating-point arithmetic (F-PA), which involves a specific value, denoted as ε , to manage step sizes and errors. When we have exact and approximate solutions ( J and J ι ) or two successive approximations ( J ι and J ι + 1 ), we apply certain conditions, such as
| J J ι | < ε , o r | J ι + 1 J ι | < ε .
The motivation behind this study stems from a series of fundamental questions that have driven our research and led to the development of this paper. Specifically, we sought to address the following key inquiries:
  • What constitutes an effective stopping condition when applying numerical methods to solve problems, and why is it essential to implement such a condition?
  • How many iterations are required when employing numerical methods, and what factors influence this number?
  • What strategies can be employed to control the number of iterations in numerical methods, and how can they be optimized?
  • How can we determine the optimal approximation when seeking a numerical solution, and what are the implications of this approximation on the overall accuracy of the results?
  • What is the optimal value for the tolerance parameter ε in condition (5), and how can it be determined?
  • How can we control the accuracy of numerical methods using the absolute error (5) when the exact solution is unknown?
  • What approaches can be used to identify the optimal error in numerical methods, and how can this information be leveraged to improve the overall performance of these methods?
These questions, along with several others, have motivated us to undertake this research and develop innovative solutions to address the challenges associated with numerical methods.
The main idea of this research is to cover the mentioned gaps by using the CESTAC method and the CADNA library. In this method, we apply
| J ι J ι + 1 | = @ . 0 ,
where the informational zero @ . 0 indicates the equality of the number of common significant digits between two successive iterations [26,27,28,29,30,31]. This technique is rooted in stochastic arithmetic, and there are studies focused on dynamically controlling numerical methods. The primary innovation of this approach lies in its ability to determine optimal results, errors, and steps for numerical methods. Recently, this method has been utilized to validate numerical results derived from various techniques for solving a range of problems, including numerical integration rules [32,33,34,35], interpolation [36], solving integral equations [37,38], optimizing regularization methods [39] and load leveling issues [40]. Our study offers several novel contributions, including:
  • The identification of the optimal iteration of the Romberg integration rule for the RO system, which has significant implications for the efficient solution of this problem.
  • The determination of the optimal approximation of the problem, which provides a benchmark for evaluating the accuracy of numerical methods.
  • The discovery of the optimal error of the Romberg integration rule for the RO model, which enables the optimization of the numerical method for this specific application.
  • The application of dynamical control (6) to regulate the accuracy and efficiency of the numerical method, ensuring that the results are reliable and computationally efficient.
  • The utilization of the CADNA library to implement the CESTAC method mentioned in Section 3, which enables the automatic control of accuracy and efficiency in numerical computations.
  • The development of a strategy to control the accuracy of numerical methods without requiring knowledge of the exact solution, which is a significant advancement in the field.
  • The elimination of the need to specify an epsilon value to control efficiency, which simplifies the implementation of numerical methods and reduces the risk of user error.
  • We believe that the research addresses significant gaps in the existing literature and provides innovative solutions to pressing challenges in the field of numerical methods.

2. Romberg Integration Rule

This section focuses on the Romberg integration rule  [41]. In this approach, we can find our initial estimates using other conventional methods such as the trapezoidal rule or Simpson’s rule. Here, we apply the trapezoidal rule, beginning the process with ι = 2 nodes. Then, doubling ι and utilizing the formula
J k , i = 4 i J k , i 1 J k 1 , i 1 4 i 1 ,
we can find the approximations one by one in the following table
J 1 , 1 J 2 , 1 J 2 , 2 J 3 , 1 J 3 , 2 J 3 , 3 J 4 , 1 J 4 , 2 J 4 , 3 J 4 , 4 J 5 , 1 J 5 , 2 J 5 , 3 J 5 , 4 J 5 , 5
The error for J 1 ( ) and the order 2 ι + 2 can be written as [42]
E 1 ϝ = J 1 ( ) J = i = 1 ι α 2 i 2 i ( 2 i ) ! + O ( 2 ι + 2 ( 2 ι + 2 ) ! ) ,
where α 2 i = B 2 i [ ϝ ( 2 i 1 ) ( ϑ 2 ) ϝ ( 2 i 1 ) ( ϑ 1 ) ] , with the Bs being the Bernoulli numbers. Also for J 2 ( ) , we obtain
E 2 ϝ = J 2 ( ) J = i = 2 ι α 2 i 2 i ( 2 i ) ! × 1 4 1 ( 1 4 i 1 1 ) + O 2 ι + 2 ( 2 ι + 2 ) ! × 1 4 1 ( 1 4 ι 1 ) ,
Also, J r ( ) , r = 2 , , n can be found as
E r ϝ = J r ( ) J = i = r ι α 2 i 2 i ( 2 i ) ! j = 1 r 1 1 4 j 1 ( 1 4 i j 1 ) + O 2 ι + 2 ( 2 ι + 2 ) ! j = 1 r 1 1 4 j 1 ( 1 4 ι j + 1 1 ) .
Therefore,
E ι ϝ = J ι ( ) J = ( 1 ) ι 1 α 2 ι 2 ι ( 2 ι ) ! 2 ι ( ι 1 ) + O 2 ι + 2 ( 2 ι + 2 ) ! 2 ι ( ι 1 )
and we can approximate the integral as  [41]
J ( ϝ ) = ϑ 1 ϑ 2 ϝ ( z ) d z = J ι ( ϝ ) + E ( ϝ ) ,
where J ι ( ϝ ) = h i = 1 ι w i ϝ ( z i ) .
If the initial values of the Romberg integration rule are given by the trapezoidal approximation J k , 1 ( ϝ ) and we denote by k = ϑ 2 ϑ 1 2 k 1 , then we obtain
J 1 , 1 ( ϝ ) = 1 2 [ ϝ ( z 0 ) + ϝ ( z ι ) ] , J 2 , 1 ( ϝ ) = 2 2 ϝ ( z 0 ) + 2 ϝ ( z 0 + 2 ) + ϝ ( z ι ) = z ι z 0 4 ϝ ( z 0 ) + ϝ ( z ι ) + 2 ϝ ( z 0 + z ι z 0 2 ) = 1 2 J 1 , 1 ( ϝ ) + 1 ϝ ( z 0 + 2 )
and the general relation can be obtained as
J k , 1 ( ϝ ) = 1 2 J k 1 , 1 ( ϝ ) + k 1 j = 1 2 k 2 ϝ ( z 0 + ( 2 j 1 ) k ) , k = 2 , 3 , . . . , n .
Finally, we can write
J k , i ( ϝ ) = J k , i 1 ( ϝ ) + J k , i 1 ( ϝ ) J k 1 , i 1 ( ϝ ) 4 i 1 1 .

3. Main Idea

In this section, we explore the fundamental concept of the CESTAC method and how it can be integrated with other numerical techniques to achieve optimal results errors, and steps. This concept is fundamentally rooted in stochastic arithmetic. It is important to note that this method is not a problem-solving scheme; rather, it serves as a technique for validating the outcomes of various numerical methods [26,27,28].
Assume that A is a set of values represented by a computer and G is a member of A that can be written based on computer arithmetic in the form
G = g n 1 2 z ρ n 2 ,
where g R , with ρ mantissa bits, n 1 shows the sign, 2 ρ n 2 is the missing segment of the mantissa, and z is the binary exponent. Also, we should note that the results can be produced by single and double precisions for ρ = 24 , 53 .
By assuming n 2 to be uniformly distributed on [ 1 , 1 ] , we can apply small perturbations on the last bit of mantissa. Thus, we will be able to have the mean ( μ ) and the standard deviation ( σ ) values for the results of G. By repeating the process for m times, we will have a quasi-Gaussian distribution for G k , k = 1 , , m , which means that we will have equality between the mean value of the sample and G. On the other hand, in order to control the numerical procedure, we can find the number of common significant digits between the mean value G a v e and G, using
C G a v e , G = log 10 m G a v e τ δ σ .
Here, τ δ represents the value from the T distribution, while 1 δ indicates the confidence interval with m 1 degrees of freedom. The algorithm will terminate and display the informational zero @ . 0 when G a v e = 0 or C G a v e , G 0 . To apply the CESTAC method, direct implementation is not necessary. Instead, writing CADNA codes allows the library to implement the method and validate numerical results. These codes can be written in programming languages such as C, C++, FORTRAN, or ADA and executed on the Linux operating system [28,29,30,31]. The following algorithm (Algorithm 1) is the general algorithm of the CESTAC method.    
Algorithm 1: CESTAC Algorithm
Step 1--Make the perturbation of the last bit of mantissa to produce
J samples of G as Φ = G 1 , G 2 , , G J .
Step 2--Find G a v e = i = 1 J G i J .
Step 3--Compute σ 2 = i = 1 J ( G i G a v e ) 2 J 1 .
Step 4--Find the NCSDs of G and G a v e applying C G a v e , G = log 10 J G a v e τ δ σ .
Step 5--Print G = @ . 0 if G a v e = 0 , or C G a v e , G 0 .
The CESTAC method offers several advantages over traditional floating-point arithmetic:
  • The termination criterion is based on two successive approximations, eliminating the need for an exact solution.
  • Unlike floating-point arithmetic, the CESTAC method does not rely on a predefined epsilon value for its stopping condition.
  • The CESTAC method avoids unnecessary iterations, which can occur in floating-point arithmetic when using large epsilon values.
  • It provides the ability to display the number of common significant digits using the informatical zero sign ( @ . 0 ) , a feature not available in floating-point arithmetic.
  • The CESTAC method enables the determination of the optimal approximation, error, and step size for numerical procedures, which is not possible with floating-point arithmetic.
  • Additionally, the CESTAC method can reveal numerical instabilities that may not be apparent in floating-point arithmetic.
Definition 1 
([30,31]). For q 1 , q 2 R , the number of common significant digits can be defined as
C q 1 , q 2 = log 10 q 1 + q 2 2 ( q 1 q 2 ) = log 10 q 1 q 1 q 2 1 2 , q 1 q 2 ,
and C q 1 , q 1 = + .
Theorem 1. 
Let ϝ ( z ) be a continuous function, J = ϑ 1 ϑ 2 ϝ ( z ) d z , and J ι be an approximation of J , which is obtained by Romberg integration rule. Then,
C J ι , J ι + 1 = C J ι , J + O 2 ι 2 .
Proof. 
Using Definition 1, we obtain
C J ι , J = log 10 J ι + J 2 ( J ι J ) .
Now, we have
J ι + J 2 ( J ι J ) = J ι J ι J 1 2 = J ι ( 1 ) ι 1 α 2 ι 2 ι ( 2 ι ) ! 2 ι ( ι 1 ) + O 2 ι + 2 ( 2 ι + 2 ) ! 2 ι ( ι 1 ) = J ι ( 1 ) ι 1 α 2 ι 2 ι ( 2 ι ) ! 2 ι ( ι 1 ) 1 + O ( 2 ι + 2 ( 2 ι ) ! 2 ι ( ι 1 ) ( 2 ι + 2 ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι ) = J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι 1 + O ( 2 ( 2 ι + 2 ) ( 2 ι + 1 ) ( 1 ) ι 1 α 2 ι ) = J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι 1 + O ( 2 ι 2 ) = J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι × 1 1 + O ( 2 ι 2 )
= J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι × 1 + O ( 2 ι 2 ) = J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι + O 2 ( 2 ι ) ! 2 ι ( ι 1 ) ι 2 2 ι = J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι + O ( 2 ι ) ! 2 ι ( ι 1 ) ι 2 2 ι 2 .
Similarly,
J ι + J ι + 1 2 ( J ι J ι + 1 ) = J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι + O ( 2 ι ) ! 2 ι ( ι 1 ) ι 2 2 ι 2 .
From Equations (19) and (20), we deduce
C J ι , J ι + 1 = log 10 | J ι ( 2 ι ) ! 2 ι ( ι 1 ) ( 1 ) ι 1 α 2 ι 2 ι | + log 10 1 + O ( 2 ι 2 ) ,
and finally,
C J ι , J ι + 1 = C J ι , J + O 2 ι 2 .

4. Numerical Results

In this section, first, we discuss the general CADNA algorithm on the Romberg integration rule to improve the accuracy of the RO model. As we can see, we have covered both the difference between two successive approximations, as well as the absolute error. And when we obtain @ . 0 , the algorithm will stop. Thus, the new algorithm (Algorithm 2) is not dependent on a value like ε .
Algorithm 2: CESTAC Algorithm for the RO system
Step 1: Put ι = 1 ;
Step 2: Enter a , b ;
Step 3: Do:
{
    Step 3-1: Apply Equation (13) to find the initial approximations;
    Step 3-2: Calculate other approximations using Equation (15);
    Step 3-3: Print ι , J ι , | J ι + 1 J ι | and | J J ι | ;
    Step 3-4: ι = n + 1 ;
} while | J ι + 1 J ι | @ . 0 .
By employing the CESTAC method along with the CADNA library, we can derive optimal iterations, approximations, and errors. To evaluate J , we consider the interval [ 0 , m ] , where m is sufficiently large such that | m e v 3 v d v | = @ . 0 , indicating that this value has no significant digits. By selecting m = 10 , we obtain:
J = 0 10 e v 3 v d v = 0.4513726464754668 .
The results of our numerical experiments are presented in Table 1, which provides a comprehensive summary of the approximate solution, the difference between two successive approximations, and the absolute error. Notably, the absolute error calculation was performed using results from other methods, as the exact solution was not readily available. A closer examination of Table 1 reveals that the optimal step for the Romberg integration is ι o p t = 16 , yielding an optimal approximation of J 16 = 0.4513726464755. The appearance of an informational zero indicates that the number of common significant digits between the differences of two successive approximations and the exact and approximate solutions has reached equality, thereby triggering the algorithm to terminate at ι = 16 .
In contrast, Table 2 and Table 3 present the results obtained using the SE/DE Sinc integration rules. For single precision, the optimal iteration is found to be 545, whereas for double precision, it is significantly reduced to 78. A comparative analysis of these results with our own findings reveals that the CESTAC-based Romberg integration rule outperforms the Sinc integration in terms of efficiency.
To further illustrate the relative performance of these methods, Table 4 provides a comprehensive comparison of the number of iterations required for various values between the Romberg integration rule with double precision, the Sinc integration rule with double exponential decay (DE), and single exponential decay (SE). The results, based on floating-point arithmetic and the stopping condition (5), demonstrate that larger values result in fewer iterations, while smaller values lead to more iterations due to the absence of the optimal value. This observation highlights the importance of carefully selecting the value to achieve optimal performance.
Moreover, the data presented in Table 4 underscore the superiority of the CESTAC-based Romberg integration rule, which consistently requires fewer iterations to achieve a specified level of accuracy compared with the Sinc integration rules. This finding has significant implications for the development of efficient numerical integration methods as it suggests that the CESTAC-based approach can provide substantial computational savings without compromising accuracy.
Consequently, the optimal solution for the RO model can be expressed as
Q ( z , 0 ) L 0 = 1.5361171751 ( q P ) P h A 0 1 3 z 1 3 + 1 ,
which serves as a mathematical formula to predict the concentration of salt solutions in semi-permeable membranes within the RO model.

5. Conclusions

The RO system is one of the most important and applicable methods for water purification. It can be modeled as a mathematical problem, and by using numerical integration methods, we can find an approximate solution to the model. This will help improve purification processes in both industrial and residential systems. Therefore, it is crucial to identify an accurate and applicable method for solving the model. Some researchers have addressed this model, but their methods were based on floating-point arithmetic. To demonstrate the accuracy of their methods, they applied traditional absolute error, which in some cases depended on a small positive value, ε . In this study, we applied the Romberg integration rule and introduced the CESTAC method to find the approximate solution for the RO system. We utilized the CADNA library to implement the CESTAC method, which is designed to run on a Linux operating system. This approach allows us to determine the optimal approximation, optimal error, and optimal iteration of the numerical procedure. We compared the number of iterations based on F-PA for different values of ε . The results indicate that Romberg integration is faster and more accurate than the previously mentioned methods. For future studies, we propose exploring the fuzzy form of this problem, which includes designing the system, finding solutions, and solving the fuzzy integral using novel methods.

Author Contributions

Methodology, S.N. and S.M.; software, S.N.; validation, S.N. and S.M.; formal analysis, S.N.; investigation, S.N. and S.M.; writing—original draft, S.N.; writing—review and editing, S.N. and S.M. All authors have read and agreed to the published version of the manuscript.

Funding

The work of S. Noeiaghdam was funded by the High-Level Talent Research Start-up Project Funding of Henan Academy of Sciences (Project No. 241819246).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Correction Statement

This article has been republished with a minor correction to the Funding statement. This change does not affect the scientific content of the article.

Abbreviations

The following abbreviations are used in this manuscript:
ROReverse osmosis
CESTACControle et Estimation Stochastique des Arrondis de Calculs
CADNAControl of Accuracy and Debugging for Numerical Applications
F-PAFloating-point arithmetic

References

  1. Hui, J.; Ling, J.; Dong, H.; Wang, G.; Yuan, J. Distributed parameter modeling for the steam generator in the nuclear power plant. Ann. Nucl. Energy 2021, 152, 107945. [Google Scholar] [CrossRef]
  2. Garud, R.M.; Kore, S.V.; Kore, V.S.; Kulkarni, G.S. A short review on process and applications of reverse osmosis. Univers. J. Environ. Res. Technol. 2011, 1, 233–238. [Google Scholar]
  3. Hosseinzadeh, A.; Altaee, A.; Ibra, I.; Zhou, J.L. Modeling and optimization of reverse salt diffusion and water flux in forward osmosis by response surface methodology and artificial neural network. Chem. Eng. Process.-Process. Intensif. 2025, 208, 110140. [Google Scholar] [CrossRef]
  4. Wang, X.; Sun, X.; Wu, Y.; Gao, F.; Yang, Y. Optimizing reverse osmosis desalination from brackish waters: Predictive approach employing response surface methodology and artificial neural network models. J. Membr. Sci. 2024, 704, 122883. [Google Scholar] [CrossRef]
  5. Fan, H.; Heiranian, M.; Elimelech, M. The solution-diffusion model for water transport in reverse osmosis: What went wrong? Desalination 2024, 580, 117575. [Google Scholar] [CrossRef]
  6. Zhai, Y.; Liu, G.; van der Meer, W.G.J. One-Step Reverse Osmosis Based on Riverbank Filtration for Future Drinking Water Purification. Engineering 2022, 9, 27–34. [Google Scholar] [CrossRef]
  7. Zhang, B.; Jiang, Y.; Fang, F.; Zhang, K. Membrane fouling in reverse-osmosis filters during real drinking water purification: Impact of operation modes and pretreatment. Desalin. Water Treat. 2019, 159, 214–223. [Google Scholar] [CrossRef]
  8. Jamil, S.; Jeong, S.; Vigneswaran, S. Application of pressure assisted forward osmosis for water purification and reuse of reverse osmosis concentrate from a water reclamation plant. Sep. Purif. Technol. 2016, 171, 182–190. [Google Scholar] [CrossRef]
  9. Epimakhov, V.N.; Oleinik, M.S. Reverse-Osmosis Filtration Based Water Treatment and Special Water Purification for Nuclear Power Systems. At. Energy 2004, 96, 234–240. [Google Scholar] [CrossRef]
  10. Goncharuk, V.V.; Osipenko, V.O.; Balakina, M.N. Water purification of nitrates by low-pressure reverse osmosis method. J. Water Chem. Technol. 2013, 35, 71–75. [Google Scholar] [CrossRef]
  11. Goncharuk, V.V.; Deremeshko, L.A.; Balakina, M.N. Purification of waters containing fluorine by low pressure reverse osmosis for their complex treatment. J. Water Chem. Technol. 2013, 35, 122–127. [Google Scholar] [CrossRef]
  12. Ma, S.; Wu, X.; Fan, L.; Xie, Z. Predicting water flux and reverse solute flux in forward osmosis processes using artificial neural networks (ANN) modelling with structural parameters. Sep. Purif. Technol. 2024, 351, 128092. [Google Scholar] [CrossRef]
  13. Afarinandeh, A.; Rashidi, H.; Karimi, L.; Heidari, K.; Arashi, A. Box–Behnken multi-response modeling and optimizing of brackish water reverse osmosis brine treatment using electrodialysis reversal with tortuous flow path. Desalin. Water Treat. 2023, 303, 11–23. [Google Scholar] [CrossRef]
  14. Teng, Y.; Ng, H.Y. Prediction of reverse osmosis membrane fouling in water reuse by integrated adsorption and data-driven models. Desalination 2024, 576, 117353. [Google Scholar] [CrossRef]
  15. Wimalawansa, S.J. Purification of contaminated water with reverse osmosis: Effective solution of providing clean water for human needs in developing countries. Int. J. Emerg. Technol. Adv. Eng. 2013, 3, 75–89. [Google Scholar]
  16. Warsinger, D.M.; Tow, E.W.; Nayar, K.G.; Maswadeh, L.A.; Lienhard, V.J.H. Energy efficiency of batch and semi-batch (CCRO) reverse osmosis desalination. Water Res. 2016, 106, 272–282. [Google Scholar] [CrossRef] [PubMed]
  17. Paulina Maure, O.; Mungkasi, S. Application of numerical integration in solving a reverse osmosis model. AIP Conf. Proc. 2019, 2202, 020043. [Google Scholar]
  18. Bartman, A.R.; McFall, C.W.; Christofides, P.D.; Cohen, Y. Model-predictive control of feed flow reversal in a reverse osmosis desalination process. J. Process. Control. 2009, 19, 433–442. [Google Scholar] [CrossRef]
  19. Luo, J.; Li, M.; Hoek, E.M.V.; Heng, Y. Supercomputing and machine learning-aided optimal design of high permeability seawater reverse osmosis membrane systems. Sci. Bull. 2023, 68, 397–407. [Google Scholar] [CrossRef]
  20. Razeghi, M.; Hajinezhad, A.; Naseri, A.; Noorollahi, Y.; Moosavian, S.F. Multi-criteria decision for selecting a wind farm location to supply energy to reverse osmosis devices and produce freshwater using GIS in Iran. Energy Strategy Rev. 2023, 45, 101018. [Google Scholar] [CrossRef]
  21. Sayyad, S.U.; Kamthe, N.K.; Sarvade, S.M. Design and simulation of reverse osmosis process in a hybrid forward osmosis-reverse osmosis system. Chem. Eng. Res. Des. 2022, 183, 210–220. [Google Scholar] [CrossRef]
  22. Kahrizi, M.; Lin, J.; Ji, G.; Kong, L.; Song, C.; Dumée, L.F.; Sahebi, S.; Zhao, S. Relating forward water and reverse salt fluxes to membrane porosity and tortuosity in forward osmosis: CFD modelling. Sep. Purif. Technol. 2020, 241, 116727. [Google Scholar] [CrossRef]
  23. Yang, Y.; Wang, Z.; Song, Z.; Liu, D.; Zhang, J.; Guo, L.; Fang, W.; Jin, J. Thermal treated amidoxime modified polymer of intrinsic microporosity (AOPIM-1) membranes for high permselectivity reverse osmosis desalination. Desalination 2023, 551, 116413. [Google Scholar] [CrossRef]
  24. Singh, C.P.; Patel, R.V.; Yadav, A.; Kumar, A. Numerical simulations of the effect on twisted spacer filaments on biofouling and scaling in the feed channel of reverse osmosis membrane modules. Colloids Surfaces Physicochem. Eng. Asp. 2023, 666, 131333. [Google Scholar] [CrossRef]
  25. Fulford, G.R.; Broadbridge, P. Industrial Mathematics: Case Studies in the Diffusion of Heat and Matter; Cambridge University Press: Cambridge, UK, 2002. [Google Scholar]
  26. Alt, R.; Lamotte, J.-L.; Markov, S. Stochastic arithmetic Theory and experiments. Serdica J. Comput. 2010, 4, 1–10. [Google Scholar] [CrossRef]
  27. Scott, N.S.; Jézéquel, F.; Denis, C.; Chesneaux, J.-M. Numerical ‘health check’ for scientific codes: The CADNA approach. Comput. Phys. Comm. 2007, 176, 507–521. [Google Scholar] [CrossRef]
  28. Graillat, S.; Jézéquel, F.; Wang, S.; Zhu, Y. Stochastic arithmetic in multi precision. Math. Comput. Sci. 2011, 5, 359–375. [Google Scholar] [CrossRef]
  29. Graillat, S.; Jézxexquel, F.; Picot, R. Numerical Validation of Compensated Summation Algorithms with Stochastic Arithmetic. Electron. Notes Theor. Comput. Sci. 2015, 317, 55–69. [Google Scholar] [CrossRef]
  30. Vignes, J. Discrete Stochastic Arithmetic for Validating Results of Numerical Software. Numer. Algorithms 2004, 37, 377–390. [Google Scholar] [CrossRef]
  31. Vignes, J. A stochastic arithmetic for reliable scientific computation. Math. Comput. Simul. 1993, 35, 233–261. [Google Scholar] [CrossRef]
  32. Abbasbandy, S.; Araghi, M.A.F. Numerical solution of improper integrals with valid implementation. Math. Comput. Appl. 2002, 7, 83–91. [Google Scholar] [CrossRef]
  33. Abbasbandy, S.; Araghi, M.A.F. The valid implementation of numerical integration methods. Far East J. Appl. Math. 2002, 8, 89–101. [Google Scholar]
  34. Abbasbandy, S.; Araghi, M.A.F. A stochastic scheme for solving definite integrals. Appl. Numer. Math. 2005, 55, 125–136. [Google Scholar] [CrossRef]
  35. Araghi, M.A.F.; Noeiaghdam, S. Dynamical control of computations using the Gauss-Laguerre integration rule by applying the CADNA library. Adv. Appl. Math. Sci. 2016, 16, 1–18. [Google Scholar]
  36. Abbasbandy, S.; Araghi, M.A.F. The use of the stochastic rithmetic to estimate the value of interpolation polynomial with optimal degree. Appl. Numer. Math. 2004, 50, 279–290. [Google Scholar] [CrossRef]
  37. Noeiaghdam, S.; Araghi, M.A.F. Valid implementation of the Sinc-collocation method to solve the linear integral equations by CADNA library. J. Math. Model. 2019, 7, 63–84. [Google Scholar]
  38. Noeiaghdam, S.; Araghi, M.A.F.; Abbasbandy, S. Finding optimal convergence control parameter in the homotopy analysis method to solve integral equations based on the stochastic arithmetic. Numer. Algorithms 2019, 81, 237–267. [Google Scholar] [CrossRef]
  39. Noeiaghdam, S.; Araghi, M.A.F. A novel approach to find optimal parameter in the homotopy-regularization method for solving integral equations. Appl. Math. Inf. Sci. 2020, 14, 105–113. [Google Scholar]
  40. Noeiaghdam, S.; Sidorov, D.; Muftahov, I.; Zhukov, A.V. Control of Accuracy on Taylor-Collocation Method for Load Leveling Problem. Bull. Irkutsk. State Univ. Ser. Math. 2019, 30, 59–72. [Google Scholar] [CrossRef]
  41. Iyengar, S.R.K.; Jain, R.K. Numerical Methods; New Age International Publisher: New Delhi, India, 2020. [Google Scholar]
  42. Atkinson, K.E. An Introduction to Numerical Analysis, 2nd ed.; John Wiley: Hoboken, NJ, USA, 1991. [Google Scholar]
Figure 1. Reverse osmosis system.
Figure 1. Reverse osmosis system.
Mathematics 13 00459 g001
Table 1. The results of the Romberg integration rule using the CESTAC method.
Table 1. The results of the Romberg integration rule using the CESTAC method.
ι J ι + 1 | J ι + 1 J ι | | J ι J |
10.304949145163061   ×   10 1 0.304949145163061   ×   10 1 0.420877731959160
20.5941493036358480.5636543891195420.14277665716038
3−0.2007604269467300.7949097305825790.652133073422197
40.7618726176696180.9626330446163490.310499971194151
50.4657087215164270.5166096557688   ×   10 2 0.14336075040960   ×   10 1
60.4444918663508990.19175506470476   ×   10 1 0.6880780124567   ×   10 2
70.453836968848760.3941087914349   ×   10 1 0.2011050409409   ×   10 2
80.451264132929790.350959223824   ×   10 2 0.10851354567   ×   10 3
90.4513741801718740.11005252904   ×   10 3 0.153369640   ×   10 5
100.4513726476349390.155793983   ×   10 5 0.115947   ×   10 8
110.451372646242390.13844   ×   10 8 0.23306   ×   10 9
120.451372646476760.25229   ×   10 9 0.129   ×   10 11
130.451372646475600.9   ×   10 13 0.13   ×   10 12
140.451372646475780.28   ×   10 12 0.31   ×   10 12
150.451372646475600.1   ×   10 12 0.1   ×   10 12
160.4513726464755@.0@.0
Table 2. The results of the SE Sinc integration rule applying the CESTAC.
Table 2. The results of the SE Sinc integration rule applying the CESTAC.
ι J ι + 1 | J ι + 1 J ι | | J ι + 1 J |
10.84180   ×   10 15 0.84180   ×   10 15 0.451372646475465
20.71243   ×   10 8 0.71243   ×   10 8 0.4513726393511
30.10741   ×   10 4 0.10734   ×   10 4 0.4513619048
5430.4513726464751760.9   ×   10 14 0.290   ×   10 12
5440.451372646475180.8   ×   10 14 0.28   ×   10 12
5450.451372646475192@.00.27   ×   10 12
Table 3. The results of the DE Sinc integration rule applying the CESTAC.
Table 3. The results of the DE Sinc integration rule applying the CESTAC.
N J N + 1 | J N + 1 J N | | J N + 1 I |
1−0.74872505235097   ×   10 1 0.74872505235097   ×   10 1 0.52624515171056
2−0.604727538493393   ×   10 2 0.68825229850163   ×   10 1 0.457419921860400
440.4513726447083140.131409   ×   10 8 0.176715   ×   10 8
450.4513726459435060.123519   ×   10 8 0.531960   ×   10 9
770.4513726464754450.1   ×   10 13 0.20   ×   10 13
780.451372646475444@.00.2   ×   10 13
Table 4. The number of iterations in Romberg and Sinc integrations for different ε .
Table 4. The number of iterations in Romberg and Sinc integrations for different ε .
Method ε Small Values ε = 10 5 ε = 10 3 ε = 10 1 ε = 0.5 Large Values
Romberg Integration ι > > 665311
DE Sinc Integration ι > > 171712821
SE Sinc Integration ι > > 120120591811
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Noeiaghdam, S.; Micula, S. A Novel Approach for Improving Reverse Osmosis Model Accuracy: Numerical Optimization for Water Purification Systems. Mathematics 2025, 13, 459. https://doi.org/10.3390/math13030459

AMA Style

Noeiaghdam S, Micula S. A Novel Approach for Improving Reverse Osmosis Model Accuracy: Numerical Optimization for Water Purification Systems. Mathematics. 2025; 13(3):459. https://doi.org/10.3390/math13030459

Chicago/Turabian Style

Noeiaghdam, Samad, and Sanda Micula. 2025. "A Novel Approach for Improving Reverse Osmosis Model Accuracy: Numerical Optimization for Water Purification Systems" Mathematics 13, no. 3: 459. https://doi.org/10.3390/math13030459

APA Style

Noeiaghdam, S., & Micula, S. (2025). A Novel Approach for Improving Reverse Osmosis Model Accuracy: Numerical Optimization for Water Purification Systems. Mathematics, 13(3), 459. https://doi.org/10.3390/math13030459

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop