Abstract
Physical processes occurring in devices with distributed variables and a turbulent tide with a dispersion of mass and heat are often modeled using systems of nonlinear equations. Solving such a system is sometimes impossible in an analytical manner. The iterative methods, such as Newton’s method, are not always sufficiently effective in such cases. In this article, a combination of the homotopy method and the parametric continuation method was proposed to solve the system of nonlinear differential equations. These methods are symmetrical, i.e., the calculations can be made by increasing or decreasing the value of the parameters. Thanks to this approach, the determination of all roots of the system does not require any iterative method. Moreover, when the solutions of the system are close to each other, the proposed method easily determines all of them. As an example of the method use a mathematical model of a non-adiabatic catalytic pseudohomogeneous tubular chemical reactor with longitudinal dispersion was chosen.
1. Introduction
Physical processes and phenomena occurring in devices with distributed variables and a turbulent tide with a dispersion of mass and heat are modeled using systems of differential equations. For stationary states, these are Ordinary Differential Equations (ODE’s). Examples of such apparatuses are tubular chemical reactors with longitudinal dispersion. Systems of ordinary differential equations of the second order are used to describe them [1]. The analytical solution of these equations is impossible due to their non-linearity. Therefore, various types of numerical methods are used to determine stationary solutions of such systems [2,3]. However, not every numerical method is useful and effective; for example, Newton’s iterative method is completely useless when there are so-called multiple stationary states [1]. Determining all states (all solutions) using Newton’s method is practically impossible, especially when these states are located close to each other and there are many of them.
One of the numerical methods that allow for easy determination of all stationary solutions of the system of nonlinear equations is the parametric continuation method. This method does not require any iteration procedures. Moreover, this method allows obtaining a solution by increasing or decreasing the parameter value. For this reason, it can be considered a symmetrical method. It was used, among others, in [1], where the stationary states of the reactor were determined in the given range of the variability of selected control parameters of the apparatus.
If the task is not to determine the stationary states of the reactor in a given range of variability of the control parameter, but the task is to determine these states for the set values of all parameters of the apparatus, then the combination of the parametric continuation method with the homotopy method is perfect. Its idea is to construct a special function dependent on an additional parameter p in such a way that with a continuous change of the value of this parameter from , we get all the solutions for . In the event that these solutions are ambiguous, the homotopy curve must pass through many times. This means that the curve is then a hysteresis loop, as shown in the corresponding graphs in this paper.
Studies using the homotopy method can be found in the scientific literature, for example, articles [4,5,6,7,8,9,10,11,12,13,14]. However, the parametric continuation method, as used in this paper, was not used there. The method used in the cited literature consists of changing the homotopy parameter p by the assumed increase in . Then, at each step, the system of equations is solved iteratively using Newton’s method. This is quite inconvenient for two reasons. The first is that iterating the equations at each step significantly increases the computation time. The second, more important, reason is that this method is useless when the system of equations has an ambiguous solution, i.e., it has many roots [11]. The search for each of them is associated with a change of initial values. The homotopy curve must then turn around several times. This means that the increment of must change the sign. However, it is difficult to predict when this sign should be changed. The parametric continuation method used in this work is devoid of all these drawbacks. This method has also been described and used in [1,15]. This is described in detail later in this paper.
As an example of the application of the described method, the mathematical model of a non-adiabatic catalytic pseudohomogeneous tubular chemical reactor with longitudinal dispersion was taken. Such a reactor is described by a system of second-order ordinary differential equations with appropriate boundary conditions.
This article is structured as follows. The subject of the work was outlined in the first part. The second part describes the mathematical foundations of the discussed methods. The following sections describe the chemical reactor model and present the results. The last part is the Conclusions.
2. Mathematical Foundations of the Method
The problem concerns the determination of solutions to the following system of equations:
Assuming that for , then the homotopy function takes the form:
where is any vector, it is obvious that the searched solutions of Equation (1) are found only on the line. To get to this line, Equation (2) should be carried out from point for to point for , which are solutions of the system of Equations (1).
The following parametric continuation method can be used for this purpose:
where:
The sign of the determinant of the Jacobi matrix, , indicates the direction of changes in the homotopy parameter p.
3. Determination of the Solutions of the Chemical Reactor Model
The method presented above was used to determine the stationary states of a non-adiabatic catalytic tubular chemical reactor with longitudinal dispersion. The model assumes that the gas temperature is equal to the catalyst temperature. This means that we are dealing then with a pseudohomogeneous reactor. Assuming that a single chemical reaction takes place in the reactor, the mathematical model of such an apparatus is written in the form of two second-order differential equations:
Mass balance:
Heat balance:
where .
The following boundary conditions are associated with the above equations:
Assuming that a single type reaction takes place in the reactor, the functions related to reaction kinetics and heat transfer are as follows:
By introducing additional variable definitions:
and:
a system of four first-order differential equations is obtained:
with the appropriate boundary conditions:
It can be shown that the forward integration of the above equations (i.e., from to ) is numerically unstable. The integration, therefore, has to go backwards (from to ). The initial values for this integration will, therefore, be: and , as well as and . According to Equation (2), the individual functions of the homotopy can be defined based on the boundary conditions in Equations (24) and (26) as follows:
The parametric continuation procedure, therefore, takes the following form:
where:
The adopted calculation method is as follows. Any values of and and and are assumed. As a result of one-time integration of Equations (20)–(23), and are obtained, which are then used in Equations (28) and (29). These values are constant for the entire calculation process. At the same time, these are the initial values for the continuation procedure, i.e., and . The searched solutions of the reactor model lie on the line. The partial derivatives in the Jacobi matrix, Equation (32), should be determined numerically.
4. Calculation Results
Depending on the values of the model parameters, the reactor has single or multiple stationary states. In this study, these parameters were selected so that the reactor was characterized by more complex solutions, i.e., three states. For example, the following values of the reactor model parameters were adopted: . The results of the calculations are shown in Figure 1. As this figure shows, the tested reactor model has three different solutions, which should be read for . This means that the reactor has three different stationary states. It should be noted that for different values of and , a different homotopy curve is obtained. However, they must all intersect at the same point on the line .
Figure 1.
For the assumed parameters, the reactor has three different stationary states.
5. Discussion
Various known numerical methods can be used to solve systems of equations in the form of Equation (1). The simplest of them are iterative methods, which include, e.g., Newton’s method or the Chun-Hui He method [16]. However, these methods require a lot of iterations and thus use a lot of computer time to get the final solutions. Thus, their use becomes ineffective. Moreover, iterative methods cannot cope when the system has ambiguous (multiple) solutions (see Figure 3 in [17]). The approach proposed in this paper is devoid of the above drawbacks.
As for the homotope method, it requires a series of calculations for each value of the p parameter separately. Iterative methods are also used for these calculations, the same as described in the previous paragraph. This approach is, therefore, also numerically time-consuming. It requires many iterative calculations to obtain the final solution. Modifications of the homotope method known from the literature, such as the perturbative homotopy method [18], do not solve this problem. Only using the homotopy method in conjunction with the parametric continuation method causes the final solution to be obtained immediately, regardless of the number of multiple stationary states. Instead of looking for solutions for Equation (2) for successive values of the p parameter, the solution is obtained step by step from Equations (3) and (4). Thus, there is no need to perform any additional iterative calculations.
6. Conclusions
The presented work presents the homotopy method for determining the solutions of the mathematical model of a non-adiabatic catalytic pseudohomogeneous tubular chemical reactor with longitudinal dispersion. Such a model is written by means of second-order differential equations with boundary conditions. The solutions sought are the stationary states of the reactor. The proposed method consists of carrying out homotopy F functions from the homotopy parameter and further along the lines determining the zeroing of these functions. These lines can be obtained using the parametric continuation method. The advantage of this approach is that the determination of the partial derivatives of the function F with respect to the parameter takes place only once for the entire computational process. These derivatives are stored permanently in the vector (Formula ()). The whole computational process does not require any iteration, and all the searched elements are found in one computational process. All this significantly speeds up the calculations and, above all, makes it possible to determine all the elements easily.
According to the homotopy principle, the searched solutions lie only on the line. As a result of the exemplary calculations, the graphs in Figure 1 were obtained. These graphs show that the tested reactor has three different stationary states.
Author Contributions
Conceptualization, M.B. and M.L.; methodology, M.B. and M.L.; formal analysis, M.B.; writing—original draft preparation, M.B. and M.L.; writing—review and editing, M.B and M.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Conflicts of Interest
The authors declare no conflict of interest.
Nomenclature
The following abbreviations are used in this manuscript:
| Symbols | |
| heat capacity, kJ/(kg K) | |
| concentration of component A, kmol/m | |
| Damköhler number | |
| E | activation energy, kJ/kmol |
| F | homotopy funcion |
| volumetric flow rate, m/s | |
| heat of reaction, kJ/kmol | |
| k | reaction rate constant, 1/[s (m/kmol)] |
| n | order of reaction |
| p | homotopic parameter |
| peclet number of mass | |
| peclet number of heat | |
| rate of reaction, , kmol/(m s) | |
| R | gas constant, kJ/(kmol K) |
| T | temperature, K |
| V | volume, m |
| z | dimensionless position along the reactor |
| Greek letters | |
| degree of conversion | |
| dimensionless number related to adiabatic temperature increase | |
| dimensionless number related to activation energy | |
| dimensionless heat exchange coefficient | |
| dimensionless temperature | |
| density, kg/m | |
| Subscripts | |
| 0 | refers to feed |
| H | refers to temperature of cooling medium |
References
- Berezowski, M. The application of the parametric continuation method for determining steady state diagrams in chemical engineering. Chem. Eng. Sci. 2010, 65, 5411–5414. [Google Scholar] [CrossRef] [Green Version]
- Guran, L.; Mitrović, Z.D.; Reddy, G.S.M.; Belhenniche, A.; Radenović, S. Applications of a Fixed Point Result for Solving Nonlinear Fractional and Integral Differential Equations. Fractal Fract. 2021, 5, 211. [Google Scholar] [CrossRef]
- Younis, M.; Fabiano, N.; Fadail, Z.M.; Mitrović, Z.D.; Radenović, S. Some new observations on fixed point results in rectangular metric spaces with applications to chemical sciences. Vojnoteh. Glas./Mil. Tech. Cour. 2021, 69, 8–30. [Google Scholar] [CrossRef]
- Baayen, J.; Becker, B.; van Heeringen, K.J.; Miltenburg, I.; Piovesan, T.; Rauw, J.; den Toom, M.; VanderWees, J. An overview of continuation methods for non-linear model predictive control of water systems. IFAC-PapersOnLine 2019, 52, 73–80. [Google Scholar] [CrossRef]
- Brown, D.A.; Zingg, D.W. Monolithic homotopy continuation with predictor based on higher derivatives. J. Comput. Appl. Math. 2019, 346, 26–41. [Google Scholar] [CrossRef]
- Gallardo-Alvarado, J. An Application of the Newton–Homotopy Continuation Method for Solving the Forward Kinematic Problem of the 3-<u>R</u>RS Parallel Manipulator. Math. Probl. Eng. 2019, 2019, 3123808. [Google Scholar] [CrossRef]
- Gritton, K.S.; Seader, J.; Lin, W.J. Global homotopy continuation procedures for seeking all roots of a nonlinear equation. Comput. Chem. Eng. 2001, 25, 1003–1019. [Google Scholar] [CrossRef]
- Jiménez-Islas, H.; Martínez-González, G.M.; Navarrete-Bolaños, J.L.; Botello-Álvarez, J.E.; Oliveros-Muñoz, J.M. Nonlinear Homotopic Continuation Methods: A Chemical Engineering Perspective Review. Ind. Eng. Chem. Res. 2013, 52, 14729–14742. [Google Scholar] [CrossRef]
- Jiménez-Islas, H.; Calderón-Ramírez, M.; Martínez-González, G.M.; Calderón-Álvarado, M.P.; Oliveros-Muñoz, J.M. Multiple solutions for steady differential equations via hyperspherical path-tracking of homotopy curves. Comput. Math. Appl. 2020, 79, 2216–2239. [Google Scholar] [CrossRef]
- Pan, B.; Ma, Y.; Ni, Y. A new fractional homotopy method for solving nonlinear optimal control problems. Acta Astronaut. 2019, 161, 12–23. [Google Scholar] [CrossRef]
- Rahimian, S.K.; Jalali, F.; Seader, J.; White, R. A new homotopy for seeking all real roots of a nonlinear equation. Comput. Chem. Eng. 2011, 35, 403–411. [Google Scholar] [CrossRef]
- Słota, D.; Chmielowska, A.; Brociek, R.; Szczygieł, M. Application of the Homotopy Method for Fractional Inverse Stefan Problem. Energies 2020, 13, 5474. [Google Scholar] [CrossRef]
- Wang, Y.; Topputo, F. A Homotopy Method Based on Theory of Functional Connections. 2020. Available online: https://arxiv.org/pdf/1911.04899.pdf (accessed on 27 November 2021).
- Wayburn, T.; Seader, J. Homotopy continuation methods for computer-aided process design. Comput. Chem. Eng. 1987, 11, 7–25. [Google Scholar] [CrossRef]
- Berezowski, M. Determination of catastrophic sets of a tubular chemical reactor by two-parameter continuation method. Int. J. Chem. React. Eng. 2020, 18, 20200135. [Google Scholar] [CrossRef]
- Khan, W.A. Numerical simulation of Chun-Hui He’s iteration method with applications in engineering. Int. J. Numer. Methods Heat Fluid Flow 2021. ahead-of-print. [Google Scholar] [CrossRef]
- Berezowski, M. Method of determination of steady-state diagrams of chemical reactors. Chem. Eng. Sci. 2000, 55, 4291–4295. [Google Scholar] [CrossRef]
- He, J.H. Comparison of homotopy perturbation method and homotopy analysis method. Appl. Math. Comput. 2004, 156, 527–539. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).