Next Article in Journal
Biogas Reforming as a Precursor for Integrated Algae Biorefineries: Simulation and Techno-Economic Analysis
Previous Article in Journal
Model-Based Evaluation of Hydrothermal Treatment for the Energy Efficient Dewatering and Drying of Sewage Sludge
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Simulation of Continuous Catalytic Reforming Process Based on Simultaneous Solution

School of Automation, Hangzhou Dianzi University, Hangzhou 310018, China
*
Author to whom correspondence should be addressed.
Processes 2021, 9(8), 1347; https://doi.org/10.3390/pr9081347
Submission received: 20 June 2021 / Revised: 25 July 2021 / Accepted: 28 July 2021 / Published: 30 July 2021

Abstract

:
The dynamic simulation of the continuous catalytic reforming process is of great significance to the performance prediction and optimization of the entire process. In this study, a 34-lumped mechanism model described by differential algebra was established based on the actual process conditions of the continuous catalytic reforming process in China, and an efficient dynamic simulation solution method based on simultaneous equations was proposed. First, a 34-lumped differential–algebraic mechanism model was established based on the basic principles of reforming kinetics, thermodynamics, material balance, and energy balance. Secondly, in order to solve and simulate the mechanism model composed of 144 differential equations and several algebraic equations, the method of finite-element collocation is used to discretize the differential equations and convert them into large-scale, nonlinear programming problems, and the interior point algorithm is used to estimate its parameters and verify the model. In addition, in order to avoid the problem of too long derivative solution time and too large memory in the solution process, methods such as sparse derivative and Broyden–Fletcher–Goldfarb–Shanno (BFGS) with limited storage are used to solve the problem. Finally, on the basis of model verification, dynamic simulation and sensitivity analysis of the whole process are carried out by modifying different input parameters. The results show that the mechanism model and solution method presented in this paper can quickly and accurately simulate the continuous catalytic reforming process dynamically.

1. Introduction

Continuous catalytic reforming is one of the main processing techniques in the petrochemical industry. In the process of continuous catalytic reforming reaction, there are many components involved and the reaction process between each reactant is very complex. It is almost impossible to establish the kinetic equation of each component by conventional method, so lumped method must be used to model [1]. In 1959, after Smith proposed a four-component lumped reaction kinetic model [2], domestic and foreign universities, research institutions, major petrochemical companies, etc.—based on the actual situation and application conditions of the reforming units—researched and developed many lumped reaction kinetic models, including the 20-component lumped reaction kinetic model proposed by Krane [3]. Compared with Smith’s four-component lumped model, this model is more detailed and closer to the actual reforming process. The 22-component lumped reaction kinetics model proposed by Kmak [4] was compared to Krane’s 20 lumped model; this model subdivides the hydrocarbon group composition. Mobil has made great contributions to the study of lumped reaction kinetic models; Remage et al. published 13-component lumped reaction kinetic models in 1980 and 1987 [5]. The lumped division method of the model is considered comprehensive, simple, practical, and effective. The research on the lumped reaction kinetic model evolved on this basis.
Typical lumped reaction kinetics models include Pace’s 30-component lumped reaction kinetics model [6], Wolff’s 5-component lumped reaction kinetics model [7], Froment’s 28-component lumped reaction kinetics model [8], and Taskar’s 35-component lumped reaction kinetics model [9]. Compared with foreign countries, researches on lumped reaction kinetic models in China are relatively late, mainly including the following: Based on Ramage’s 13-component lumped reaction kinetics model, Weng et al. lumped n-alkanes and isoparaffins separately, and proposed a 16-component lumped reaction kinetic model. Later, they assumed that the kinetic parameters did not change with the composition of the raw materials; 27-component lumped reaction kinetic models were thus proposed [10,11]. Xie et al. not only distinguished between n-alkanes and isoparaffins, but also subdivided C 8 cycloalkanes and aromatics based on Weng et al., and proposed a 28-component lumped reaction kinetic model [12]. Ding et al. separately lumped C 9 based on Ramage’s 13-component lumped reaction kinetics model, and proposed a 17-component lumped reaction kinetic model [13]. Hu considered the coking and deactivation of the catalyst based on predecessors and proposed a 17-component lumped reaction kinetic model [14]. Hou considered all hydrocracking reactions based on Hu’s 17-component lumped reaction kinetic model and proposed a 20-component lumped reaction kinetic model [15].
Although the research on lumped reaction kinetics has made some progress in China, there are many mature-mechanism modeling software in foreign countries [16], such as Aspen Plus, Pro Π , UniSim. It is worth mentioning that a modeling software from a country is a mechanism model established for the actual situation of the country, which leads to the problem that some of the existing models may not be applicable to the actual situation in China and cannot be modified. This is because the reforming feed composition of foreign chemical plants is relatively fixed and basically operates according to design, based on the obtained empirical parameters, factor coefficients, etc. can be used in foreign mechanism modeling software. However, for the composition of reforming feedstock changes greatly, these foreign software cannot be consistent with the actual process, which needs to be designed by ourselves. This is the case in China, where the composition of the reforming feed varies quite a lot. The reforming feed is generally obtained by reconciling the petroleum of different countries, and the proportion will also change according to the fluctuation of the price, resulting in the composition of reformation feed varying greatly. China is also quite different from foreign countries in terms of operating processes and procedures, leading to large differences in parameters, empirical coefficients, and device coefficients of related reactions. For example, the catalyst has a great influence on the catalytic reforming reaction, while the loading and regeneration cycle of catalysts in China are very different from those in foreign countries. Therefore, the use of these foreign modeling software will have problems of inapplicability.
In addition, dynamic simulation includes two methods, namely, sequential method and simultaneous equations method. The advantage of the sequential method is that when it has a reliable differential–algebraic mixed equation solver, it is simpler to implement and apply, and the scale of the nonlinear programming problem obtained is smaller. The disadvantage is that there are many iteration nesting levels, which require a lot of iterative calculations, especially for large-scale problems, which consume too much time and cannot handle unstable systems. The advantages of the simultaneous equations method are that it can avoid layers of iteration and the solution of large-scale problems can speed up the solution and can deal with unstable systems; the disadvantages are that appropriate initial values and enough memory space are needed. However, in the research work, it can be found that the initial value problem is not as serious as expected, it can converge well for any given initial value in a large range. Aiming at the memory problem, with the continuous development of optimization algorithms, for example, the BFGS method with limited memory storage can solve it [17,18], which is the reason why this paper adopts the simultaneous equations method. In this paper, the simultaneous method based on finite-element collocation is used to discretize the model, and the nonlinear solver is used to simulate the system dynamically. Some output results of the dynamic simulation of the discrete model and the continuous model, such as the outlet temperature of the reactor and the molar mass of the product, are compared to prove the accuracy of the discrete model. In addition, the sensitivity analysis of the yield of each product is carried out by modifying the temperature and the ratio of hydrogen to oil—these products include C 5 + liquid yield, aromatic yield, benzene yield, toluene yield, xylene yield, trimethylbenzene yield, hydrogen yield, octane number, etc.
In order to make the continuous catalytic reforming process run better, this paper not only established a general mechanism model in line with the actual situation of our country, but also combined the more efficient and rapid dynamic simulation method with it, which would improve the yield and obtain better economic benefits.

2. Establishment of Mechanism Model for Continuous Catalytic Reforming Process

2.1. Lumped Division and Establishment of Reaction Network

The reforming feed in the continuous catalytic reforming process is determined by gas chromatography and, from the analysis of the results, it can be seen that there are many components involved in reforming reaction and the reaction process among the reactions is very complex; it is almost impossible to establish the dynamic equation of each component by the conventional method. Therefore, the lumped approach is the best choice to establish the mechanism modeling of the continuous catalytic reforming process [1].
In this paper, according to the actual situation and application conditions of China’s continuous catalytic reforming process, the components are divided as follows:
Paraffins: Methane ( P 1 ), Ethane ( P 2 ), Propane ( P 3 ), N-butane orthoisomerism ( P 4 ), N-pentane orthoisomerism ( P 5 ), N-hexane orthoisomerism ( P 6 ), N-heptane orthoisomerism ( P 7 ), N-octane orthoisomerism ( P 8 ), N-nonane orthoisomerism ( P 9 ), N-decane orthoisomerism ( P 10 ), Undecane hydrocarbon ( P 11 ), Carbon dodecane ( P 12 ).
Cycloalkanes: Cyclopentane ( 5 N 5 ), Methyl cyclopentane ( 5 N 6 ), six-carbon naphthenes ( N 6 ), Seven carbon naphthenes ( N 7 ), eight-carbon naphthenes ( N 8 ), nine-carbon naphthenes ( N 9 ), ten-carbon naphthenes ( N 10 ), eleven-carbon naphthenes ( N 11 ), twelve-carbon naphthenes ( N 12 ).
Aromatics: Benzene ( A 6 ); Toluene ( A 7 ); Ethylbenzene (EB); o, p, m-xylene (OPMX); C 9 aromatics ( A 9 ), C 10 aromatics ( A 10 ), C 11 aromatics ( A 11 ), C 12 aromatics ( A 12 ).
Olefins: Hexene, Heptene, Octene, Nonene.
There are 34-component lumped including hydrogen. Although olefins account for a small proportion (about 1%) of the components involved in the reforming reaction, they are taken into account in order to consider the generality of the model. The lumped reaction network is shown in Figure 1.
The reaction network in Figure 1 includes 39 reforming reactions, including 7 dehydrogenation reactions of paraffins, 8 dehydrogenation reactions of naphthenes, 5 hydrolyzation reactions of aromatics, and 19 hydrocracking reactions of paraffins. The details are as follows:
Dehydrogenation reactions of paraffins:
P i N i + H 2 , i = 6 12
Dehydrogenation reactions of naphthenes:
N i A i + 3 H 2 , i = 6 12
Hydrolyzation reactions of aromatics:
A 7 + H 2 A 6 + P 1 A 8 + H 2 A 7 + P 1 A 9 + H 2 A 8 + P 1 A 10 + H 2 A 9 + P 1 A 11 + H 2 A 10 + P 1
Hydrocracking reactions of paraffins:
P 4 + H 2 P 2 + P 2 P 5 + H 2 P 2 + P 3 P 6 + H 2 P i + P 6 i , i = 1 , 2 , 3 P 7 + H 2 P i + P 7 i , i = 1 , 2 , 3 P 8 + H 2 P i + P 8 i , i = 1 , 2 , 3 , 4 P 9 + H 2 P i + P 9 i , i = 1 , 2 , 3 , 4 P 10 + H 2 0.1 P 1 + 0.1 P 2 + 0.15 P 3 + 0.2 P 4 + 0.9 P 5 + 0.2 P 6 + 0.15 P 7 + 0.1 P 8 + 0.1 P 9 P 11 + H 2 0.3 P 2 + 0.25 P 3 + 0.25 P 4 + 0.2 P 5 + 0.2 P 6 + 0.25 P 7 + 0.25 P 8 + 0.3 P 9 + 0.25 P 7 + 0.25 P 8 + 0.3 P 9 P 12 + H 2 0.1 P 1 + 0.15 P 2 + 0.15 P 3 + 0.15 P 4 + 0.15 P 5 + 0.6 P 6 + 0.15 P 7 + 0.15 P 8 + 0.15 P 9 + 0.15 P 10 + 0.1 P 11

2.2. Establishment of Reactor Model for Continuous Catalytic Reforming Process

In the continuous catalytic reforming process, the reforming reactor is the core device, so the reasonable modeling of the reforming reactor is the most critical in the whole process [14]. For the 34-component lumped reaction network established in this paper, the Hougen–Watson rate equation is used to describe it and 39 reaction rate equations can be obtained. The equations are as follows:
Dehydrogenation reactions of paraffins:
r j z = d Y P / d ( V c / F z ) = k j z · ( Y P Y N / K e p j z ) , j z = 1 7
Dehydrogenation reactions of naphthenes:
r j z = d Y N / d ( V c / F z ) = k j z · ( Y N Y A / K e p j z ) , j z = 8 15
Hydrolyzation reactions of aromatics:
r j z = d Y A / d ( V c / F z ) = k j z · Y A , j z = 16 20
Hydrocracking reactions of paraffins:
r j z = d Y P / d ( V c / F z ) = k j z · Y P , j z = 21 39
where r j z is the reaction rate; Y is the molar flow rate of each lumped component; Y P , Y N , Y A are the molar flow rates of paraffins, naphthenes, and aromatics, respectively; V C is the catalyst loading; F z is the feed volume flow; K e p j z is the j z -th reaction equilibrium constant; k j z is the reaction rate constant—its expression is
k j z = k 0 j z · exp ( E j z / R q T ) · P h b j z · ϕ j z · μ j z , j z = 1 39
where k 0 j z is the reaction frequency factor; E j z , b j z is the reaction activation energy and pressure index, respectively; P h is the hydrogen partial pressure in the reactants; R q is the molar gas constant; T is the reaction temperature; ϕ j z is the catalyst activity factor; μ j z is the device factor.
In this paper, the radial structure of the reactor in the continuous catalytic reforming process is used, and combined with the principle of material balance and energy balance, the model equations of the reforming reactor can be obtained:
d Y d R = 2 π R H L H S V · V c · α · r d T d R = 2 π R H L H S V · V c r · Δ H C p · Y
where Y is the molar flow rate of 34—component lumped; R is the bed radius of radial reactor; H is the reactor height; LHSV = Fz/Vc is the liquid hour space velocity; α is the stoichiometric coefficient matrix of each lumped component; Δ H is the reaction heat vector; C p is the constant pressure specific heat capacity vector; r = K · Y is the reaction rate vector of the reforming reaction, so the model equations of the reforming reactor can be rewritten as follows:
d Y d R = 2 π R H L H S V · V c · α · K · Y , Y ( R 0 ) = Y 0 d T d R = 2 π R H L H S V · V c r · Δ H C p · Y , T ( R 0 ) = T 0
where K is the reaction rate constant matrix.

2.3. Property Calculation

The acquisition of some important physical property data is a prerequisite for model calculation, and the accuracy of these data has a great impact on the accuracy of the subsequent dynamic simulation. At the temperature of the continuous catalytic reforming reaction, all the reaction components are in a gaseous form. They can be regarded as ideal gas states and treated with the thermodynamic consistency equation [19]. In this paper, 5 calculation methods of important physical properties are given; the methods are as follows:
(1) Enthalpy
H m = H = A + B T + C T 2 + D T 3 + E T 4 + F T 5
where H m is the enthalpy of ideal gas at T; T is the reaction temperature; A , B , C , D , E , F is the derived coefficient.
(2) Entropy
S = B ln ( T ) + 2 C T + 3 2 D T 2 + 4 3 E T 3 + 5 4 F T 4 + G
where S is the entropy of an ideal gas at T; G is the derived coefficient.
(3) Constant pressure specific heat capacity
C p = C p = B + 2 C T + 3 D T 2 + 4 E T 3 + 5 F T 4
where C p is the heat capacity of ideal gas under constant pressure.
(4) Reaction heat
At the temperature of T, the formula is as follows:
Δ r H m Θ ( T ) = α · Δ f H m Θ 298.15 K + 298.15 K T α · C p T d T
where Δ r H m Θ represents the standard molar enthalpy of reaction; α is the stoichiometric coefficient; Δ f H m Θ represents the standard molar formation enthalpy; C p T represents the constant pressure specific heat capacity of each component at temperature T.
(5) Reaction equilibrium constant calculation For a reversible reaction A i A j + n H 2 , the equilibrium constant at temperature T and a standard pressure of 100 K p a is
K e p = K Θ ( T ) = exp ( Δ r G m Θ ( T ) / R T )
where Δ r G m Θ is the Gibbs free energy of standard mole generation at temperature T, also known as the standard mole free enthalpy, and the calculation formula is
Δ r G m Θ ( T ) = Δ r H m Θ ( T ) T · Δ r S m Θ ( T )
where Δ r H m Θ ( T ) knows that the calculation formula of standard molar entropy Δ r S m Θ ( T ) is
Δ r S m Θ ( T ) = Δ r S m Θ ( 298 . 15 K ) + 298 . 15 K T α · C p T d T
Δ r S m Θ ( 298 . 15 K ) is the standard molar entropy of the component in the standard state.

3. Simultaneous Method Based on Finite-Element Collocation

This paper belongs to the differential–algebraic optimization proposition that contains both differential equations and algebraic equations. The simultaneous method based on finite-element collocation is very suitable for solving this type of problem due to its unique advantages. This method has many advantages of the Runge–Kutta discrete method [20,21,22,23,24,25]. In this method, the differential state variable expression is as follows:
w ( z ) = w i y 1 + h i y q = 1 K Ω q ( z z i y 1 h i y ) d w d z i y , q
where w i y 1 represents the value at the initial position of the i y -th finite element; h i y represents the length of the finite element i y , Ω q ( t ) = r = 1 , r q K ( τ ρ r ) ( ρ q ρ r ) d τ ; the conversion relationship between t and τ is τ = ρ r + t t r h i y , and satisfies the polynomial of order K: Ω q ( 0 ) = 0 q = 1 , K Ω q ( ρ r ) = 1 , q = r 0 , q r ( q , r = 1 , , K ) ; here, z can represent space or time, ρ r is the position of the r-th configuration point in the finite element/the r-th root of the Radau equation, ρ q is the position of the q -th configuration point in the finite element/the q-th root of the Radau equation, d w / d z i y , q refers to the first derivative at the configuration point q in the i y -th finite element, and t r is the time corresponding to the r-th configuration point. The idea of the simultaneous method based on finite-element collocation is to uniformly discretize the entire time domain [ t 0 , t f ] into n e finite elements, and the entire time domain is divided into
t 0 = t 0 < t 1 < t 2 < < t n e = t f
The length h i of each finite element can be expressed as follows:
h i y = ( t f t 0 ) / n e , i y = 1 , , n e
The expressions of differential state variables, algebraic state variables, and control variables are as follows:
w i y = w i y 1 + h i y q = 1 K Ω q ( 1 ) d w d z i y , q
y ( z ) = q = 1 K ψ q ( z z i y 1 h i y ) y i y , q
u ( z ) = q = 1 K ψ q ( z z i y 1 h i y ) u i y , q
where y i y , q represents the value of the algebraic variable at the q-th configuration point at the i y -th finite element, and u i y , q represents the value of the control variable at the q-th configuration point at the i y -th finite element. ψ q represents the Lagrange function of the q-th configuration point at the i y -th finite element, and the expression is as follows:
ψ q ( t ) = j y = 1 K ( t t i y , j y ) ( t q t j y ) = j = 1 K ( t t i y , j y ) / h i y ( ρ q ρ j y )
ψ q ( t i y , j y ) = 1 , q = j y 0 , q j y ( q , j y = 1 , , K )
The configuration point of each finite element is K; the position corresponding to each configuration point is the root [ ρ 1 , ρ 2 , , ρ K ] of the orthogonal polynomial of the Radau configuration point; and the time corresponding to each configuration point is t i y , j y = t i y 1 + h i y ρ j y , j y = 1 , , K , where t i y , j y represents the initial time at the j y -th configuration point of the i y -th finite element.
ψ q ( t ) = r = 1 , r q K ( t t r ) / h i y ( ρ q ρ r ) = r = 1 , r q K ( τ ρ r ) ( ρ q ρ r )
When Ω q ( 0 ) = 0 q = 1 , 3 , then
Ω 1 ( t ) = ( τ ρ 2 ) ( ρ 1 ρ 2 ) ( τ ρ 3 ) ( ρ 1 ρ 3 ) d τ Ω 2 ( t ) = ( τ ρ 1 ) ( ρ 2 ρ 1 ) ( τ ρ 3 ) ( ρ 2 ρ 3 ) d τ Ω 3 ( t ) = ( τ ρ 1 ) ( ρ 3 ρ 1 ) ( τ ρ 2 ) ( ρ 3 ρ 2 ) d τ Z
As the differential state variable has continuity, it means that the final value of the current finite element differential state variable is equal to the initial value of the next finite element differential state variable. The expression is as follows:
w i y + 1 , 0 = w i y , 0 + h i y q = 1 K Ω q ( 1 ) d w d z i y , q
After the mechanism model of the continuous catalytic reforming process is discretized by a simultaneous method based on finite-element collocation, many discrete variables and algebraic equations will be obtained, so that the nonlinear solver can be used to dynamically simulate the system. Since this method has many advantages of the Runge–Kutta discrete method, and the Runge–Kutta discrete method has high discrete accuracy, the dynamic simulation of the discrete model and the dynamic simulation of its own continuous model will have a very high consistency. Comparison and verification will be conducted in the following model verification phase.

4. Parameter Estimation and Model Verification

4.1. Parameter Estimation

After the model is discretized by the simultaneous method based on finite-element collocation, in order to make the model consistent with the actual production process, it is necessary to use parameter estimation methods to correct the model. In this paper, the interior point algorithm is used to estimate the parameters of the pre-exponential factor of reaction and the device performance coefficient. The principle of the interior point algorithm is as follows:
Set the parameter vector x to be estimated, x is expressed as the pre-exponential factor of the reaction and the device performance coefficient, and the constrained optimization problem can be set as
min G ( x ) s . t . c ( x ) = 0 x 0
Among them, G ( x ) is the objective function and c ( x ) is the equality constraint including the differential equations and physical property equations mentioned in the mechanism modeling part, and is a nonlinear equation group, which expresses the relationship between process variables. Its Lagrange function is defined as
L ( x , λ , v ) = G ( x ) + c ( x ) T λ x T v
where λ and v are the Lagrange multipliers of the equality constraint and boundary constraint, respectively.
For the optimization problem of Equation (30), the barrier method is used to add boundary constraints to the objective function in the form of barrier terms [26], so Equation (30) can be transformed into
min φ μ ( x ) = G ( x ) μ i = 1 n ln ( x ( i ) ) s . t . c ( x ) = 0
where μ > 0 is the obstacle parameter and φ μ ( x ) is the obstacle function. When x is close to the boundary, the value of the objective function can be infinite, so the solution of this problem will be inside the boundary area.
For the solution of Equation (32), it is necessary to consider the first-order necessary condition of its local optimum—that is, the KKT (Karush–Kuhn–Tucker) condition is
G ( x ) + A ( x ) λ v = 0 c ( x ) = 0 X v μ e = 0 x ( i ) 0 μ x ( i ) 0
where G is the gradient vector, A ( x ) = c ( x ) is the transpose of the constrained Jacobian matrix, X is the diagonal matrix obtained by taking the vector x as the diagonal element, and e is the vector whose elements are all 1.
Since formula (32) satisfies the KKT condition, Newton’s method can be applied to formula (32) [27], the search direction at the iteration point is
W k A k A k T 0 d k λ k + 1 = g k c k
where W k is the Hessian matrix and g k is the gradient vector.
Newton’s method requires the calculation of the second-order derivative to form the true Hessian matrix, which may be nonpositive definite, so this paper uses the BFGS method to replace the Newton method. The BFGS method constructs a matrix that does not contain the second-order partial derivative to approximate the inverse matrix of the Hessian matrix in Newton’s method, so as to overcome the defects of Newton’s method [28]. In order to construct this matrix, we use Taylor’s formula to expand G ( x ) at x k + 1 and evaluate it:
G ( x k + 1 ) G ( x k ) 2 G ( x k + 1 ) ( x k + 1 x k )
Let s k = x k + 1 x k , y k = G ( x k + 1 ) G ( x k ) , B k + 1 = 2 G ( x k + 1 ) , so Formula (35) can be modified as
B k + 1 s k = y k
where B k + 1 is the approximation matrix constructed for the Hessian matrix.
When the above steps are completed, B k also needs to be corrected. The correction formula is as follows:
B k + 1 = B k B k s k ( s k ) T B k ( s k ) T B k s k + y k ( y k ) T ( y k ) T s k
The approximate matrix of the inverse matrix of the Hessian matrix is H k , H k = B k 1 , so the correction formula of H k can be obtained:
H k + 1 = V k T H k V k + ζ k s k s k T
where ζ k = 1 / y k T s k , V k = I ζ k y k s k T .
In order to ensure global convergence, the interior point algorithm needs to perform a linear search along the search direction d ( k ) . After the search, a search step size α k can be obtained. After the search step size is obtained, the algorithm can obtain the next iteration point by formula (39):
x ( k + 1 ) = x ( k ) + α k d ( k )

4.2. Efficient Solution Strategy

The interior point algorithm used in this paper is based on the derivative information used to solve it, but the derivative information is time-consuming and the Jacobian matrix has very high sparsity; thus, this leads to the problem of too long a time to solve the derivative. As shown in Figure 2, when obtaining the derivative information of the parameter estimation method, two aspects can be considered: One is the objective function; this paper uses an analytical method to obtain its derivative information. The other is the constraint equation; this paper uses the method of differencing the constraint equation to obtain the sparse matrix, and derivation of the sparse matrix to obtain the sparse Jacobian Matrix to complete the acquisition of derivative information. The sparse Jacobian matrix obtained by the above method can be used to replace the original Jacobian matrix so that the problem of too long a solving time of the derivative can be resolved, thereby speeding up the solution.
In addition, the BFGS method used in the interior point algorithm needs to store the matrix during the calculation process. The problem solved in this paper is a large-scale optimization problem, and the obtained Hessian matrix has 7056 * 7056. The memory required for normal calculation of this problem is more than 10 times that of the Hessian matrix. In this case, dozens of GB of memory cannot be solved, which may lead to a memory crash. To solve this problem, this paper adopts the BFGS method with limited storage. This is because the BFGS method with limited storage does not generate the approximate matrix of the inverse matrix of the Hessian matrix, but stores ω pairs of curvature information { s z , y z } , and H k can be defined by the obtained curvature information [29,30,31,32], At the iteration point x k , the initial matrix H 0 and ω curvature information pairs { s z , y z } are given, z = 0 , , ω 1 , where ω = min ( k , ω ) ; in the k + 1 -th iteration, H k is updated with the BFGS method. The updated formula is
H k + 1 = ( V k T V k ω T ) H 0 ( V k ω V k ) + ζ k ω ( V k T V k ω + 1 T ) s k ω s k ω T ( V k ω + 1 V k ) + ζ k ω + 1 ( V k T V k ω + 2 T ) s k ω + 1 s k ω + 1 T ( V k ω + 2 T V k T ) + + ζ k s k s k T
According to our numerical experiments, only the ω values in the range of 5∼9 can lead to good performance. The BFGS method with limited storage eliminates the need to store the matrix, which greatly saves space and prevents the problem of excessive memory.

4.3. Comparison between Simultaneous Method and Sequential Method

The dynamic simulation mainly includes two methods, namely, sequential method and simultaneous equations method. This paper takes the MATLAB platform as an example. The sequential method and simultaneous equations method are used on the MATLAB platform to dynamically simulate the mechanism model established in this paper. Figure 3 and Figure 4 show the time taken for part of the procedure for dynamic simulation using sequential method and simultaneous equations method.
It can be seen from Figure 3 and Figure 4 that in the comparison of the main program Calibration, the total time used for the simultaneous equations method is 50.735 s, while the total time used by the sequential method is 1269.877 s, which is approximately 25 times the total time for the simultaneous equations method. The reason for the difference in time is that the sequential method has a very large number of iteration nests, which take a lot of time. This comparison result clearly shows the superiority of the simultaneous equations method, which is the reason why this paper adopts the simultaneous equations method.

4.4. Model Verification

After the mechanism model of the continuous catalytic reforming process is discretized by a simultaneous method based on finite-element collocation, many discrete variables and algebraic equations are obtained. In order to verify the accuracy of the discrete model, some results of dynamic simulation of the discrete model and its own continuous model are compared in this paper.
Figure 5 shows the comparison of the change of the molar flow rate of 34-component lumped at the outlet of the final reactor after the dynamic simulation of the discrete model and its own continuous model, and Figure 6 shows the comparison of the outlet temperature of each reactor after the dynamic simulation of the discrete model and its own continuous model. It can be seen from these two figures that the difference between the results of the discrete model and its own continuous model is small.
In this paper, the internal state of the reactor is also dynamically simulated to further verify the accuracy of the discrete model. The discrete model and its own continuous model were used to dynamically simulate the temperature inside the reactor from the outside to the inside diameter. The results are shown in Table 1 and Table 2, where R is the bed radius of radial reactor.
It can be seen from Table 1 and Table 2 that the temperature distribution in the four reactors after the continuous model dynamic simulation is very close to the results obtained from the discrete model dynamic simulation.
From the above results, it can be concluded that the discrete method used in this paper is feasible and reasonable.

5. Dynamic Simulation in Different Situations

5.1. Dynamic Simulation under Different Input Parameters

After the mechanism model is established, the lumped components at the outlet of each reactor and the changes in the internal temperature of the reactor can be observed, and the influence of these parameters on the reactor can be observed by modifying the values of some parameters.
First, observe the change of the lumped components at the outlet of each reactor. The consumption of each lumped component can be seen from Figure 7.
As it is a 34-component lumped reaction, in order to make the results look simple, the lumped is simplified into five parts: H (hydrogen), P (paraffins), N (naphthenes), A (aromatics), C5 (carbon 5 and below). The actual molar masses of these five lumps can be obtained from the factory as 3743.435, 282.211, 14.228, 1411.125, and 646.046.
First of all, the effect of catalyst loading on each lumped component can be observed by proportionally increasing the catalyst loading. The results are shown in Table 3.
Secondly, observe the changes in the internal temperature of each reactor. As shown in Figure 8, the inside of each reactor is again divided into four parts for observation.
It can be seen from Table 3 that with the proportional increase in the catalyst loading, the contents of these five components all show a downward trend.
Secondly, by increasing the input temperature of the reactor proportionally, the influence of the input temperature of the reactor on each lumped component can be observed. The results are shown in Table 4.
It can be seen from Table 4 that as the reactor temperature increases proportionally, most of these five components show a downward trend. However, when the temperature is too high—for example, when the reactor temperature ratio increases to 1.75 times—A and C5 no longer decrease but increase, which means that the temperature is too high and some reversible reactions may occur, which is obviously not the desired result, so the temperature needs to be controlled below a reasonable range.

5.2. Sensitivity Analysis

In this paper, the sensitivity of the yield of each product was analyzed by modifying the temperature and hydrogen oil ratio. As the C 5 + liquid yield, aromatics yield, and octane number are more important than for other products, these three products are mainly analyzed in this paper.
The first is the influence of temperature on C 5 + liquid yield, aromatic yield, benzene yield, toluene yield, mixed xylene yield, C9 aromatics yield, hydrogen yield, and octane number, as shown in Figure 9.
In industry, the reaction temperature is generally set to 480∼530 °C; this article sets the reaction temperature to 500∼540 °C on this basis. With the increase in the reaction temperature, the yield of aromatics and octane number also increase. When the temperature reaches 530 °C, the yield of aromatics tends to be flat. At this time, the yield of aromatics is between 72 and 74 (wt%). This is because the cycloalkane dehydrogenation reaction is a strong endothermic reaction, and higher temperature will increase the aromatics yield. However, when the temperature is too high, the alkane hydrocracking reaction will exceed the cycloalkane dehydrogenation reaction rate, so the aromatics yield will decrease. The liquid yield of C 5 + decreases with the increase in the reaction temperature, which is approximately a linear relationship. When the reaction temperature is higher than 510 °C, a lower liquid yield will be obtained.
The second is the influence of hydrogen–oil ratio on C 5 + liquid yield, aromatic yield, benzene yield, toluene yield, mixed xylene yield, C9 aromatics yield, hydrogen yield, and octane number, as shown in Figure 10.
With the increase in hydrogen–oil ratio, the catalyst activity can be improved, which is conducive to improve the yield of aromatics and octane number. At the same time, the increase in hydrogen–oil ratio will also accelerate the reaction rate of alkane hydrocracking and aromatics hydrocracking, and reduce the yield of C 5 + liquid.
From the sensitivity analysis, we can discover the influence of temperature and hydrogen–oil ratio on the yield of each product. These results can also be compared with the actual situation to verify the accuracy of the model, and it can also pave the way for subsequent optimization solutions.

6. Conclusions

Based on the basic principles of reforming kinetics, thermodynamics, material balance, energy balance, etc., a 34-lumped mechanism model described by differential algebra is established in this paper. The differential equations are discretized through the simultaneous equations method of finite-element collocation to transform them into large-scale nonlinear programming problems, so as to solve and simulate the mechanism model consisting of 144 differential equations and several algebraic equations, and adopt the internal point algorithm for parameter estimation and model verification. In order to avoid the problem of too long a derivative solution time and too large memory in the solution process, methods such as sparse derivative and limited storage BFGS are used. In the model verification, taking the MATLAB platform as an example, the sequential method and the simultaneous equations method were used on the MATLAB platform to dynamically simulate the mechanism model established in this paper. It can be seen from the results that the time taken by the sequential method is about 25 times the time taken by the simultaneous equations method. Finally, based on the model verification, the catalyst loading amount and reactor input temperature are to observe its impact on each reactor, and then observe the impact on each component through the proportional increase in catalyst loading and reactor input temperature. The above process is to conduct dynamic simulation and sensitivity analysis of the whole process by modifying different input parameters. In addition, sensitivity analysis can verify the accuracy of the model and pave the way for subsequent optimization solutions. The results show that the mechanism model given in this paper is in line with the actual situation in our country and the solution method proposed can quickly and accurately simulate the continuous catalytic reforming process.

Author Contributions

H.Z. performed the simulations and analyzed the data, W.Z. designed the process scheme and optimization of the paper, A.J. wrote the paper and reviewed it, Q.-Y.H. checked the results of the whole manuscript, H.W. writes program and Q.D. checked all the syntax of this article. All authors have read and agreed to the published version of the manuscript.

Funding

The work was supported by the Natural Science Foundation of Zhejiang (No. LY20F030010), the National Natural Science Foundation of China (No. 61973102), Foundation of Zhejiang Provincial Education Department of China (No. Y202044268) and National Science and Technology Major Project (2018AAA0101601).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Data available on request due to restrictions, e.g., privacy or ethical. The data presented in this study are available on request from the corresponding author. The data are not publicly available, as our research group is still in the process of further research in this area.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
KKTKarush–Kuhn–Tucker

References

  1. Yi, X.; Zhang, P.; Hu, C.; Shen, B. Progress in lumped kinetic models for catalytic reforming. Ind. Catal. 2020, 3, 25–30. [Google Scholar]
  2. Smith, R.B. Kinetic analysis of naphtha reforming with platinum catalyst. Chem. Eng. Prog. 1959, 6, 76–88. [Google Scholar]
  3. Rahimpour, M.R.; Jafari, M.; Iranshahi, D. Progress in catalytic naphtha reforming process: A review. Appl. Energy 2013, 109, 79–93. [Google Scholar] [CrossRef]
  4. Kmark, W.S. A Kinetic Simulation Model of the Powerforming Process. AICHE Natl. Meet. 1972, 3, 72. [Google Scholar]
  5. Ramage, M.P.; Graziazi, K.R. Development of Mobils’ Kinetic Reforming Model. Chem. Eng. Sci. 1980, 35, 41–48. [Google Scholar] [CrossRef]
  6. Jenkins, J.H.; Stephens, T.W. Kinetics of catalytic reforming. Hydrocarb. Process. 1980, 11, 163–167. [Google Scholar]
  7. Wolff, A.; Kramarz, J. Kinetic models of catalytic reforming. Chem. Technol. Fuels Oils 1979, 12, 870–877. [Google Scholar] [CrossRef]
  8. Froment, G.F. The kinetics of complex catalytic reaction. Chem. Eng. Sci. 1987, 5, 1073–1087. [Google Scholar] [CrossRef]
  9. Tarkar, U.M. Modeling and Optimization of a Catalytic Naphtha Reformer; Texas Tech University: Lubbock, TX, USA, 1996. [Google Scholar]
  10. Sun, S.; Weng, H.; Mao, X.; Liu, F. Study on kinetic model of catalytic reforming lumped reaction. Acta Pet. Sin. (Petroleum Process. Sect. 1993, 3, 27–34. [Google Scholar]
  11. Zhou, H. Study of Lumped Kinetic Modeling of Aromatic Type Catalytic Naphtha Reforming. Ph.D. Thesis, East China University of Science and Technology, Shanghai, China, 2011. [Google Scholar]
  12. Xie, X.; Peng, S.; Liu, T. The establishment of catalytic reforming reaction kinetic model and its industrial application (1)-the establishment of physical model. Refin. Des. 1995, 6, 49–51. [Google Scholar]
  13. Ding, F.; Zhou, Z.; Yang, Z. 17-Lumped Kinetic Model for Naphtha Catalytic Reforming (I) –Establishment of the Model. J. Petrochem. Univ. 2002, 1, 15–17. [Google Scholar]
  14. Hu, Y. A Study on Simulation and Optimization of Naphtha Catalytic Reforming Processes. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2004. [Google Scholar]
  15. Hou, W. Simulation and Optimization of Naphtha Catalytic Reforming Process and Its Application. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2006. [Google Scholar]
  16. Liang, J. Research and Application of Soft Sensor Modeling Method Based on Data. Master’s Thesis, Hangzhou Dianzi University, Hangzhou, China, 2009. [Google Scholar]
  17. Shao, Z. On-line Optimization of Continuous Industrial Processes. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 1997. [Google Scholar]
  18. Biegler, L.T.; Cervantes, A.M.; Wachter, A. Advances in simultaneous strategies for dynamic process optimization. Chem. Eng. Sci. 2002, 4, 575–593. [Google Scholar] [CrossRef]
  19. Li, P.; Jiao, W.; Zhang, S. Calculation of vapor-liquid phase equilibrium by PR equation in natural gas Liquefaction. Gas Heat 2008, 4, 58–61. [Google Scholar]
  20. Huang, S. Research on Moving Finite Elements for Dvnamic Optimization. Master’s Thesis, Zhejiang University, Hangzhou, China, 2012. [Google Scholar]
  21. Kameswaran, S.; Biegler, L.T. Simultaneous dynamic optimization strategies: Recent advances and challenges. Comput. Chem. Eng. 2006, 10–12, 1560–1575. [Google Scholar] [CrossRef]
  22. Biegler, L.T. An overview of simultaneous strategies for dynamic optimization. Chem. Eng. Process. 2007, 11, 1043–1053. [Google Scholar] [CrossRef]
  23. Zhang, Q. Study on Integrated Optimal Control Strategy of Reverse Osmosis Desalination System. Master’s Thesis, Hangzhou Dianzi University, Hangzhou, China, 2019. [Google Scholar]
  24. Biegler, L.T. Nonlinear Programming: Concepts, Algorithms and Applications to Chemical Processes; Mathematical Optimization Society and the Society for Industrial and Apploed Mathematics: Pittsburgh, PA, USA, 2010. [Google Scholar]
  25. Sun, J.; Zhan, Z. Multi-stage nonlinear model polymerization reaction predictive control based on direct radau configuration. Comput. Eng. Appl. 2018, 12, 244–250. [Google Scholar]
  26. Wang, K. Study on Theory and Algorithm for Large-Scale Nonlinear Process System Optimization. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2008. [Google Scholar]
  27. Liu, D.C.; Nocedal, J. On the limited memory BFGS method for large scale optimization. Math. Program. 1989, 1–3, 503–528. [Google Scholar] [CrossRef] [Green Version]
  28. Hou, Y. Limited Storage BFGS Algorithm for Constructing Protein Fiber Molecular Structure. Master’s Thesis, Qufu Normal University, Qufu, China, 2013. [Google Scholar]
  29. Jiang, A. Research on Large -Scale Reduced Space SQP Algorithm and Its Application to Process Systems. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2005. [Google Scholar]
  30. Byrd, R.H.; Nocedal, J.; Robert, B.; Schnabel, R.B. Representations of quasi-Newton matrices and their use in limited memory methods. Math. Program. 1994, 1–3, 129–156. [Google Scholar] [CrossRef]
  31. Grippo, L.; Lampariello, F.; Lucidi, S. A nonmonotone line search technique for Newton’s method. Siam J. Numer. Anal. 1986, 4, 707–716. [Google Scholar] [CrossRef]
  32. Han, J.; Liu, G. Global convergence analysis of a new nonmonotone BFGS algorithm on convex objective functions. Comput. Optim. Appl. 1997, 3, 277–289. [Google Scholar] [CrossRef]
Figure 1. The 34-component lumped reaction network.
Figure 1. The 34-component lumped reaction network.
Processes 09 01347 g001
Figure 2. Derivative information acquisition flowchart.
Figure 2. Derivative information acquisition flowchart.
Processes 09 01347 g002
Figure 3. The time taken by some procedures using the sequential method.
Figure 3. The time taken by some procedures using the sequential method.
Processes 09 01347 g003
Figure 4. The time taken by some procedures using the simultaneous equations method.
Figure 4. The time taken by some procedures using the simultaneous equations method.
Processes 09 01347 g004
Figure 5. Comparison of the molar flow rates of the 34-component lumped at the outlet of the last reactor after the dynamic simulation of the discrete model and the continuous model.
Figure 5. Comparison of the molar flow rates of the 34-component lumped at the outlet of the last reactor after the dynamic simulation of the discrete model and the continuous model.
Processes 09 01347 g005
Figure 6. Comparison of the outlet temperature of each reactor after the dynamic simulation of the discrete model and the continuous model.
Figure 6. Comparison of the outlet temperature of each reactor after the dynamic simulation of the discrete model and the continuous model.
Processes 09 01347 g006
Figure 7. Changes of 34-component lumped at the outlet of each reactor.
Figure 7. Changes of 34-component lumped at the outlet of each reactor.
Processes 09 01347 g007
Figure 8. Internal temperature changes of each reactor.
Figure 8. Internal temperature changes of each reactor.
Processes 09 01347 g008
Figure 9. The influence of temperature on the yield of each product.
Figure 9. The influence of temperature on the yield of each product.
Processes 09 01347 g009
Figure 10. The influence of hydrogen–oil ratio on the yield of each product.
Figure 10. The influence of hydrogen–oil ratio on the yield of each product.
Processes 09 01347 g010
Table 1. The distribution of reactor temperature after dynamic simulation of the continuous model.
Table 1. The distribution of reactor temperature after dynamic simulation of the continuous model.
Reactor1234
Temperature
Internal Location
14.29%R799.450798.050796.050803.250
28.57%R727.155760.798774.127789.055
42.86%R713.115747.765763.432781.736
57.14%R705.826740.430757.175777.483
71.43%R701.344735.759753.164774.796
85.71%R698.445732.682750.521773.049
100%R696.610730.713748.833771.945
Table 2. Discrete model dynamic simulation of reactor temperature distribution.
Table 2. Discrete model dynamic simulation of reactor temperature distribution.
Reactor1234
Temperature
Internal Location
14.29%R799.450798.050796.050803.250
28.57%R727.771760.780774.151789.080
42.86%R713.421747.756763.457781.756
57.14%R706.029740.427757.201777.505
71.43%R701.500735.760753.191774.819
85.71%R698.576732.686750.549773.073
100%R696.726730.718748.861771.970
Table 3. Units for Magnetic Properties and the effect of catalyst loading on each lumped component.
Table 3. Units for Magnetic Properties and the effect of catalyst loading on each lumped component.
Lumped ComponentsCatalyst Loading Times
1.251.51.752
H6092.9785984.6195881.6895809.893
P1424.5801408.0331365.1771301.799
N176.421237.919334.1817448.134
A514.928471.747420.920373.312
C5762.195757.556750.861743.211
Table 4. The influence of reactor input temperature on each lumped component.
Table 4. The influence of reactor input temperature on each lumped component.
Lumped ComponentsInput Temperature Multiple
1.251.51.752
H5909.3925867.3375932.7146233.389
P1395.3791373.2191404.2601422.319
N293.547339.434272.553124.489
A436.161413.677447.534564.738
C5738.678735.443740.596773.474
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, H.; Zhao, W.; Jiang, A.; Huang, Q.-Y.; Wang, H.; Ding, Q. Dynamic Simulation of Continuous Catalytic Reforming Process Based on Simultaneous Solution. Processes 2021, 9, 1347. https://doi.org/10.3390/pr9081347

AMA Style

Zhang H, Zhao W, Jiang A, Huang Q-Y, Wang H, Ding Q. Dynamic Simulation of Continuous Catalytic Reforming Process Based on Simultaneous Solution. Processes. 2021; 9(8):1347. https://doi.org/10.3390/pr9081347

Chicago/Turabian Style

Zhang, Hanyu, Weijie Zhao, Aipeng Jiang, Qiu-Yun Huang, Haokun Wang, and Qiang Ding. 2021. "Dynamic Simulation of Continuous Catalytic Reforming Process Based on Simultaneous Solution" Processes 9, no. 8: 1347. https://doi.org/10.3390/pr9081347

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