M. J. Azarhoosh*,
F. Farivar and
H. Ale Ebrahim
Chemical Engineering Department, Petrochemical Center of Excellence, Amirkabir University of Technology (Tehran Polytechnic), Tehran 15875-4413, Iran. E-mail: m.j.azarhoosh@aut.ac.ir; Fax: +98 66405847; Tel: +98 9387295609
First published on 23rd January 2014
The synthesis of ammonia from nitrogen and hydrogen is one of the most important processes in petrochemical industry. In this study simulation and optimization of a horizontal ammonia synthesis reactor is presented in two cases: first, an intercooled horizontal ammonia synthesis reactor of the Khorasan petrochemical plant, second, a horizontal ammonia synthesis reactor with two quench flows. The one-dimensional heterogeneous mathematical model consists of two point boundary value differential equations for the catalyst pellets which were used in the simulations. Also, the effectiveness factor was calculated by both an empirical relation and considering the diffusion-reaction equations. The differential equations of boundary and initial value problems are solved with a combination of the Runge–Kutta method and an improved shooting method. The simulation was done for two cases. The first case is an intercooled horizontal ammonia converter, and the second one is a horizontal ammonia converter with two quench flows. Good agreement is achieved between simulated results, i.e., the outlet component mole fraction and temperature, and industrial data (Khorasan plant data and SRI report). Then the effect of parameters like inlet temperature, total feed flow rate, and operating pressure on ammonia production is studied. Finally, optimum solutions for the maximum mass flow rate production of ammonia are determined using a genetic algorithm (GA). The adjustable parameters are inlet temperature, total feed flow rate and operating pressure. The results of optimization show that a maximum ammonia mass flux of 52
433 kg h−1 and 73
979 kg h−1 was produced in both cases, respectively, in which the inlet temperature, feed flow rate, and operating pressure were, respectively, 524 °C, 217
005 kg h−1 and 167 atm in the first case and 437 °C, 354
986 kg h−1 and 237 atm in the second one.
The ammonia synthesis reactor is the heart of an ammonia production plant. Copious research on the mathematical modeling of ammonia synthesis reactors has been done.2–7 Many of these studies have shown that mathematical modeling is a convenient way to analyze and optimization of the reactor.6–11 In practice, a small improvement in the conversion degree considerably affects the overall economic balance of the ammonia production plant. Therefore, accurate modeling is essential for the analysis and design.
Ammonia synthesis is a straightforward reaction and there are no side reactions. The synthesis reaction based on the Haber–Bosh process takes place at high temperatures and pressures over a magnetic iron oxide, or recently, using Ru based catalysts.12 These reactors require a cooling system to achieve a high degree of conversion, because the reaction is highly exothermic. Based on the implemented cooling method, there are two types of converters for ammonia synthesis; tube-cooled converters and quench type converters.13
Many studies on the modeling and simulation of various configurations for an ammonia converter have been carried out. Annable is among the first researchers who studied the modeling of steady state ammonia converters.14 Baddour et al. developed a simple pseudo-homogeneous steady state model for Tennessee Valley Authority (TVA) type converters.15 Panahandeh et al. developed a two dimensional model for the axial-radial ammonia synthesis reactor.16 None of the above mentioned studies are about the horizontal ammonia converter. Dashti et al. recently simulated a horizontal ammonia converter with an internal heat exchanger.17 The density and viscosity have been assumed constant in the modeling; however, since the temperature and pressure vary along the converter, the density and viscosity of the gas mixture will change to a certain extent.
There are very few references that use evolutionary algorithm (EA) techniques in chemistry and catalysis which include the genetic algorithm (GA), evolutionary strategy (ES), genetic programming (GP), etc. Evolutionary strategy (ES) was used for selection and optimization of heterogeneous catalytic materials.18 Genetic programming has been employed very sparsely. Baumes et al.19,20 showed two examples of this very powerful technique. Genetic algorithms (GA) have been done by various groups such as Pereira et al.21 They reported a study on the effect of the genetic algorithm (GA) configurations on the performance of heterogeneous catalyst optimization. Also, Gobin et al.22,23 used a multi-objective experimental design of experiments based on a genetic algorithm to optimize the combinations and concentrations of solid catalyst systems. Moreover, genetic algorithm merges with a knowledge based system24 and has been boosted on a GPU hardware to solve a zeolite structure.25,26 In addition, GA has been used for crystallography and XRD measurements27,28 and as an active learning method for effective sampling.29
Although a number of papers on the production of ammonia are available, very few have tried to optimize the process conditions to get maximum benefit. In this study, an improved model for a horizontal ammonia synthesis reactor was developed in two cases. First, the intercooled horizontal ammonia synthesis reactor of the Khorasan petrochemical plant, and second, the horizontal ammonia synthesis reactor with two quench flows. The effect of density and viscosity change as well as pressure change along the bed length were considered in the model. Furthermore, the heat capacity of species was considered as a variable along the beds in order to increase accuracy. The effectiveness factor was calculated by both an empirical relation and a diffusion-reaction approach. The fourth-order Runge–Kutta method was used to solve the set of differential equations of the boundary and initial value problems. The modeling results were compared with some industrial data with good agreement. Then the effect of parameters like inlet temperature, pressure, and total mass flow rate on conversion was studied. Finally, the optimum conditions for maximum mass flow rate production of ammonia were determined by the genetic algorithm (GA). The adjustable parameters were inlet temperature, total feed flow rate, and operating pressure.
![]() | ||
| Fig. 2 Horizontal ammonia converter with two quench flows.34 | ||
1 The model is heterogeneous and one-dimensional.
2 Heat and mass dispersions in the longitudinal direction are negligible.6
3 The reactor is operating at steady-state conditions.
4 The heat transfer resistance between the pellets and gas is negligible.6
![]() | (1) |
![]() | (2) |
![]() | (3) |
In eqn (3), T represents the temperature in Kelvins. k2 was estimated by an Arrhenius relation as follows:7
![]() | (4) |
is the activation energy.35
Components activity can be defined as:
![]() | (5) |
| ai = fi = yiϕiP | (6) |
The fugacity coefficients of nitrogen, hydrogen, and ammonia can be determined from ref. 35 (Table 1).
![]() | (10) |
| (Cp)H2 = 4.184(6.952 − 0.04576 × 10−2T + 0.09563 × 10−5T2 − 0.2079 × 10−9T3) |
| (Cp)N2 = 4.184(6.903 − 0.03753 × 10−2T + 0.1930 × 10−5T2 − 0.6861 × 10−9T3) |
| (Cp)NH3 = 4.184(6.5846 − 0.61251 × 10−2T + 0.23663 × 10−5T2 − 1.5981 × 10−9T3 + [96.1778 − 0.067571P + (−0.2225 + 1.6847 × 10−4P)T + (1.289 × 10−4 − 1.0095 × 10−7P)T2]) |
| (Cp)CH4 = 4.184(4.750 + 1.200 × 10−2T + 0.3030 × 10−5T2 − 2.630 × 10−9T3) |
| (Cp)N2 = 4.184(4.9675) |
It must be mentioned that the average specific heat of the reaction varies with the degree of conversion. Here, the heat of reaction was calculated from the following equation:36
ΔHr = 9723.24[−23 840.57 + (P − 300.0)(1.08 + (P − 300.0)(0.01305 + (P − 300.0)(0.83502 × 105 + (P − 300.0) × 0.65934 × 10−7))) + 4.5 × (1391.0 − T)
| (16) |
![]() | (17) |
The density of the gas mixtures has been calculated by modification of the perfect gas law as follows:38
![]() | (18) |
The viscosity of components was accurately corrected as a function of temperature:38
![]() | (19) |
| η = b0 + b1T + b2X + b3T2 + b4X2 + b5T3 + b6X3 | (20) |
In the above equation, X is the conversion of nitrogen, and bi are coefficients where their values for different operating pressures were presented in ref. 35. In this work, coefficients for 15
000 kPa were used. The coefficients for this pressure are given in Table 3.
| b0 | b1 | b2 | b3 × 104 | b4 | b5 × 108 | b6 |
|---|---|---|---|---|---|---|
| −17.539096 | 0.07696844 | 6.900548 | −1.08279 | −26.4247 | 4.92765 | 38.9373 |
![]() | (21) |
![]() | (22) |
The boundary conditions are:
and C is the total concentration, defined as:
![]() | (23) |
The effective diffusion coefficients are calculated with the relation given by Elnashaie and Elshishini:40
![]() | (24) |
The Stefan–Maxwell equation for multi-component diffusion was used for computing the diffusion coefficients of the components:6
![]() | (25) |
![]() | (26) |
After calculation of the intraparticle concentration from eqn (22), the effectiveness factor can be computed as:41
![]() | (27) |
and an assumed yi(0), the missing part in the problem. Unless the computed yi(1) with the Runge–Kutta method agrees with the boundary condition of yi(1) = yig, yi(0) is adjusted in an iterative procedure until the assumed yi(0) yields a solution that agrees with the boundary condition within a specified tolerance. The conventional shooting method can be applied to compute the effectiveness factors only when the concentration at the catalyst center is greater than zero, i.e., yi(0) > 0, because yi(0) = 0 always results in a trivial solution yi(w) = 0 in the method. Indeed, yi(0) = 0 can occur when the reaction order is less than one and the Thiele modulus is large. To overcome such limitations of the conventional shooting method, an improved shooting method is used. In this method, the reaction rate f(yi) is approximated as a linear function of the concentration yi in an interval of yi = 0 and yi = ψ, a sufficiently small number which was set as 10−9. This approximation prevented yi(0), however small, from becoming zero. The proposed shooting method with the approximation has been found to be robust and efficient in computing the effectiveness factors.42 Having the effectiveness factor, bulk phase mass and heat balance differential equations can be solved. This procedure should be repeated for each differential step to obtain the temperature, bulk gas concentrations of the ingredients, and pressure profiles along the reactor length.
| Reactor characteristics | |
|---|---|
| Reactor length | 21.45 (m) |
| Reactor diameter | 2.8 (m) |
| Bed I | Bed II | Bed III | |
|---|---|---|---|
| Bed depth (m) | 0.93 | 0.93 | 0.93 |
| Operating conditions | |||
|---|---|---|---|
| Total feed flow rate | 189 932.42 (kg h−1) |
||
| Inlet temperature | 533 (K) | ||
| Operating pressure | 125.82 (atm) | ||
| Feed compositions | NH3 = 0.0222 | N2 = 0.2297 | H2 = 0.6672 |
| Ar = 0.0226 | CH4 = 0.0583 | ||
Fig. 3 and 4 show the compositions mole fraction and temperature profile along the beds, respectively.
The final results are summarized in Table 5. As can be seen, good agreement was achieved between simulated results and the Khorasan plant data.
| Simulation | Plant data | Relative error (%) | |
|---|---|---|---|
| Mole fraction | |||
| Nitrogen | 0.1969 | 0.1976 | 0.35 |
| Hydrogen | 0.5679 | 0.5684 | 0.09 |
| Ammonia | 0.1442 | 0.1435 | 0.48 |
| Methane | 0.0655 | 0.0626 | 4.43 |
| Argon | 0.0255 | 0.0243 | 4.70 |
| Temperature (K) | |||
| 725 | 723 | 0.27 | |
Fig. 5 shows conversion of nitrogen variation along the reactor beds.
The results confirm that the heterogeneous one-dimensional model with variable density and viscosity shows good accuracy and can be used for optimization or to study the effect of the operating parameters on reactor performance.
| Nominal synthesis pressure (kPa) | 20 750 |
| Input temperature (°C) | 399 |
| Total input feed flow rate (kg h−1) | 333 703.58 |
| Input compositions | |
| NH3 | 0.013 |
| N2 | 0.213 |
| H2 | 0.639 |
| Ar | 0.033 |
| CH4 | 0.102 |
Fig. 6 shows the variation of compositions along the beds. Black points in the figure represent the output industrial data.45 The final results are summarized in Table 7. As can be seen, good agreement is achieved between simulated results and industrial data when the effectiveness factor is calculated by the diffusion-reaction approach.
| Composition | Simulationa | Simulationb | Industrial data | Relative errora (%) | Relative errorb (%) |
|---|---|---|---|---|---|
| a Empirical relation for effectiveness factor.b Diffusion-reaction approach for effectiveness factor. | |||||
| Nitrogen | 0.182 | 0.180 | 0.179 | 1.68 | 0.56 |
| Hydrogen | 0.543 | 0.541 | 0.538 | 0.93 | 0.56 |
| Ammonia | 0.125 | 0.130 | 0.132 | 5.30 | 1.52 |
| Methane | 0.115 | 0.111 | 0.109 | 5.50 | 1.83 |
| Argon | 0.035 | 0.038 | 0.036 | 2.78 | 5.56 |
Fig. 7 and 8 show the conversion of N2 and temperature change along the beds, respectively.
In Table 8, the measured temperatures from the industrial plant are compared with simulation results.
| Bed no. | Industrial (K) | Simulation (K) | Error (relative) |
|---|---|---|---|
| I | 770 | 781.3 | 1.46% |
| II | 756 | 769.5 | 1.78% |
| III | 750 | 751.4 | 0.18% |
The results confirm that the heterogeneous one-dimensional model with variable density and viscosity shows good accuracy.
Fig. 9 and 10 show the effectiveness factor profiles along the converter, calculated by the empirical relation and diffusion-reaction approach, respectively.
The effectiveness factor is a measure of the effect of the diffusional limitations on the overall rate of reaction. As temperature increases along the reactor due to exothermic ammonia synthesis reaction, the rate constant and consequently the Thiele modulus rise. Therefore, diffusional resistance increases, and a decreasing trend is obtained for the effectiveness factor. In the cooling sections between the beds, the effectiveness factor jumps upward.
750 kPa. According to this figure, as the inlet temperature increases, conversion usually increases at the end of the converter, but the slope of increase declines. For example, at a vessel pressure of 20
750 kPa, up to 660 K, the conversion of nitrogen increases at the end of the converter. A further increase of inlet temperature will decrease the final conversion due to equilibrium constraint.
In Fig. 12, the final conversions at different temperatures and pressures are shown. As can be seen, for any given pressure, there is an optimal temperature in which the final conversion is maximum. Moreover, by increasing the pressure, the optimal temperature decreases.
The product molar flow rate is a multiplication of the total feed flow rate and outlet mole fraction of ammonia. It is apparent that by increasing the total feed flow rate, the molar fraction of ammonia will decrease due to diminishing reactor residence time. However, the outlet ammonia flow rate has a maximum. Thus an optimum total feed flow rate with maximum ammonia production flow rate can be determined. In Fig. 13, the effect of the total feed flow rate on the outlet ammonia molar flow rate is studied.
| Parameter name | Method and value |
|---|---|
| Number of decision variables | 3 |
| Number of objectives | 1 |
| Population size | 50 |
| Crossover method | Arithmetic crossover |
| Crossover probability | 0.7 |
| Mutation method | Gaussian mutation |
| Mutation probability | 0.05 |
The objective of optimization is maximum mass flow rate production of ammonia. The adjustable parameters are inlet temperature, total feed flow rate and operating pressure and their range is given in Table 10.
| First case | Second case | |
|---|---|---|
| Inlet temperature | 400 ≤ Tf ≤ 600 K | 350 ≤ Tf ≤ 500 K |
| Total feed flow rate | 127 500 ≤ ṁi ≤ 382 500 kg h−1 |
300 000 ≤ ṁi ≤ 400 000 kg h−1 |
| Operating pressure | 90 ≤ Pi ≤ 180 atm | 150 ≤ Pi ≤ 250 atm |
Different operations were performed for 50 generations to obtain optimum solution. Table 11 shows the optimum solution.
| First case | Second case | |
|---|---|---|
| Objective | ||
| Maximum mass flow rate production of ammonia | 52 433 kg h−1 |
73 979 kg h−1 |
| Adjustable parameters | ||
| Inlet temperature | 524.4 K | 437.0 K |
| Total feed flow rate | 217 005 kg h−1 |
354 986 kg h−1 |
| Operating pressure | 166.8 atm | 236.9 atm |
| aH2, aNH3, aN2 | Activity of hydrogen, ammonia and nitrogen |
| A | Crosse section area of beds (m2) |
| C | Total concentration (kmol m−3) |
| Cpmix | Specific heat of gas mixture (kJ kg−1 K−1) |
| Die | Effective diffusion coefficient of component i (m2 h−1) |
| fi | Fugacity of component i (kPa) |
| fi | Reference fugacity of component i (kPa) |
| FN20 | Initial molar flow rate of nitrogen (kmol h−1) |
| Ka | Equilibrium constant of reaction |
| k2 | Reverse reaction rate constant |
| l | Bed length (m) |
| ṁ | Mass flow rate (kg h−1) |
| Mav | Average molecular weight (kmol kg−1) |
| Ni | Molar flux of component i at catalyst particle (kmol m−2 h−1) |
| P | Pressure [kPa] |
| r | Radial coordinate of catalyst particle (m) |
| Rg | Universal gas constant (kJ kmol−1 K−1) |
| Rp | Equivalent radius of the catalyst particle (m) |
| RNH3 | Intrinsic rate of reaction (kmol m−3 h−1) |
| T | Temperature (K) |
| u | Velocity (m h−1) |
| X | Conversion of nitrogen |
| yi | Mole fraction of component i |
| yi | Mole fraction of component i in catalyst particle. |
| ε | Porosity of catalyst bed |
| η | Effectiveness factor |
| ϕi | Fugacity coefficient of component i |
| ΔHr | Heat of reaction (kJ kmol−1) |
| μ | Fluid viscosity (Pa s) |
| ρ | Density (kg m−3) |
| θ | Intra-particle porosity. |
| This journal is © The Royal Society of Chemistry 2014 |