Research Article Volume 2 Issue 6
Dynamics and control system design for biodiesel transesterification reactor
AS Olufemi,1
Regret for the inconvenience: we are taking measures to prevent fraudulent form submissions by extractors and page crawlers. Please type the correct Captcha word to see email ID.
SE Ogbeide2
1Department of Chemical Petroleum Engineering, Niger Delta University, Nigeria
2Department of Chemical Engineering, University of Benin, Nigeria
Correspondence: AS Olufemi, Department of Chemical Petroleum Engineering, Niger Delta University, Nigeria
Received: June 10, 2017 | Published: August 9, 2017
Citation: Olufemi AS, Ogbeide SE. Dynamics and control system design for biodiesel transesterification reactor. Int Rob Auto J. 2017;2(6):201-206. DOI: 10.15406/iratj.2017.02.00036
Download PDF
Abstract
The immiscibility of vegetable oil in methanol provides a mass transfer challenge in the early stages of Transesterification reaction in the production of biodiesel. It is of a great significance to design high–performance nonlinear controllers for efficient control of these nonlinear processes to achieve closed–loop system’s stability and high performance of a biodiesel CSTR. A mathematical model capable of predicting the performance and behaviour of a CSTR has been developed and evaluated. In this work, a comprehensive design procedures based on model predictive control (MPC) have been proposed to efficiently deal with the design of gain–scheduled controllers, controller tuning, optimal controllers and time–varying for nonlinear systems. Since all the design procedures proposed in this work rely strongly on the process model, the first difficulty addressed in this paper is the identification of a relatively simple model of the nonlinear processes under study. The second major difficulty is the analysis of stability and performance for such models using nonlinear control theory of a robust control approach. In the current work, the nonlinear model is approximated by a nominal linear model combined with a mathematical description of model error (due to nonlinearity) to be referred to (in this work) as model uncertainty. The robust control theoretical tools developed are used for the design of gain–scheduled Proportional–Integral–Differential (PID) control and gain–scheduled Model Predictive Control (MPC) in which the MPC method achieves the steady–state optimal set–points of the biodiesel Transesterification reactor.
Keywords: CSTR, mathematical model, predictive control, gain–scheduled controllers, transesterification
Abbreviation
MPC, model predictive control; PID, proportional–integral–differentia; MG, mono glycerides; DG, di glycerides
Introduction
With the world’s depletion of fossil fuels and global environmental degradation, the development of alternative fuels from renewable resources has received considerable attention. Biodiesel has become the foremost alternative fuel to those refined from petroleum feedstock. It can be produced from renewable sources, such as vegetable and animal oils, as well as from wastes, such as used cooking oil. Transesterification is the primary method of converting these oils to biodiesel.1–3 Transesterification is the chemical reaction between triglyceride and alcohol in the presence of a catalyst to produce biodiesel and glycerol. Transesterification process can be classified as homogenous and heterogeneous. Marchetti et al.,4 investigated the possible methods for biodiesel production. The catalysts used in the process can also be classified as homogeneous and heterogeneous. In both groups of catalyst there are several kinds; alkali catalyst, acid catalyst, lipases (biocatalyst). You et al.,5 conducted a research into the biodiesel production using an alkali catalyst and discovered it is quite common due to its low temperature and pressure operation. Production of biodiesel using homogeneous catalysts offers high conversion rapid reactions. However associated problems such as saponification reaction as well as the difficulty in separation between the produced biodiesel and catalyst often results in the use of heterogeneous catalyst which when used results in an easy separation of the biodiesel from glycerol (glycerin). Transesterification consists of three steps in series with two intermediates namely diglycerides (DG) and monoglycerides (MG). As shown in Equation 1 the three consecutive reversible reactions of Transesterification include;
- Conversion of triglycerides to diglycerides,
- Conversion of diglycerides to monoglycerides,
- The conversion of monoglycerides to glycerol.
Overall, the three fatty acids bound to the glycerol bond of triglyceride are combined to CH3–group of methanol, yielding three fatty acid methyl esters. The alcohol used in Transesterification is a short type such as methanol, ethanol, propranolol and butanol. However, methanol is the favorite choice because of its low cost, physical and chemical advantages (polar and shortest chain alcohol). For the stoichiometry of Transesterification, the ratio of alcohol to oil is 3:1 but an excess of alcohol is usually used in order to shift the reaction for more production of biodiesel.
(1)
The chemical reaction with methanol is shown schematically in Figure 1.
Figure 1 Control diagram for two inputs - two outputs.
(2)
The Parameters which greatly influences the Transesterification reaction include: temperature, methanol: oil molar ratio, mixing rate, catalyst type and amount of catalyst. Catalysts and feedstock are closely related to each other and affect the economic profitability of biodiesel production. Therefore, intensive research is dedicated to finding pertinent feedstock and establishing optimum reaction conditions. Biodiesel can be used directly in diesel engines but is commonly mixed with petroleum–based diesel.
Materials and methods
This section presents the development of a mathematical model algorithm to generate the controller behaviour. The simulation, which is done using ASPEN–Plus® Version 20.0 and the model predictive toolbox in MATLAB/SIMULINK motivated by the prediction and control of future inputs and outputs based on the present data/model and comparing with that of conventional PIDs as used by Mjalli et al.,6
Development of the mathematical models
The modeling of trans–esterification reactors starts with the understanding of the complex reaction kinetic mechanism. The stoichiometry of vegetable oil methanol sis reaction requires three moles of methanol (A) and one mole of triglyceride (TG) to give three moles of fatty acid methyl ester (E) and one mole of glycerol (glycerin) (GL).The overall reaction scheme for this reaction is:
(3)
Accordingly, the model predictive controller is designed to handle a 2×2 system of inputs and outputs as shown in Figure 1. The controlled output variables include biodiesel concentration (CE) and reactor temperature (T); the manipulated variables include reactant flow rate (Fo) and coolant flow rate (Fc). It is very important for a reactor to handle the disturbances in the feed concentration and initial temperatures, as these disturbances heavily change the system performance. The reactions in the reactor during biodiesel production may be modelled as a scheme of multiple reactions of the consecutive‐competitive/series‐parallel type. The forward reactions are said to be second order, referring to the overall order of the proposed forward reaction step. When the molar ratio of alcohol to triglyceride is very high, the concentration of alcohol can be assumed constant. The rate of reaction, then, depends solely on the concentration of triglyceride, a condition which Freedman et al.,7 referred to as pseudo–homogeneous first order kinetics. Finally, where the data does not fit the sequential model, Freedman et al.,7 proposed a “shunt reaction” in which three alcohols simultaneously attack the triglyceride. The shunt reaction is said to be of fourth order, presumably proportional to [TG] [ROH].3,8 The catalytic effect is also captured here. The stepwise reactions are modelled as follows;
(4)
Where E – (FAME) and GL – Glycerol. The first–order kinetic model can be explained through the following set of differential:
(5)
Where
are the concentrations of triglyceride, diglycerides, monoglycerides, methyl ester, methanol, and glycerol respectively
are the effective rate constants foe the forward reactions, and
are the effective rate constants for the reverse reactions. It is assumed that the initial concentration of triglycerides is CTG0 and that of diglycerides, monoglycerides, and glycerol is zero at time zero. This is an example of three‐step reaction where the final GL, glycerol and E (FAME) are desired.
Governing equation of CST–reactor design
A second-order decomposition reaction occurs in the continuous stirred tank reactor, the reactor is equipped with a heat transfer surface that contains a condensing fluid, so that it remains at uniform temperature. The outlet composition and temperature may vary as a result of disturbances in inlet temperature, inlet composition, and coolant temperature. Material and energy balances, plus supplementary equations, are the basis of the model of the reactor system and a mechanistic approach proposed by Mjalli et al.6 is used. The equations are nonlinear, so that numerical solution is necessary to predict how the reactor will behave from arbitrary initial conditions. However, because we desire to operate the reactor at steady state, it may be sufficient to examine the dynamics in the vicinity of a steady state; hence linear approximations are useful. In order to realize the optimization and control of continuous biodiesel production process, the model used in this work are based on the second-order kinetic model joining the material and energy balance equations as well as the dynamic equation of the coolant temperature, thus giving us the equations.
The material balance of the reactor for each component reactant is expressed as:
(6)
The reactor energy balanced is expressed as:
(7)
The coolant fluid energy balance is expressed as:
(8)
The function equation of heat transfer coefficient is approximately expressed as:
(9)
On linearization of Equations (5) and (6), we have:
For material balance,
(10)
The energy balance must account for the reaction and heat transfer
(11)
Process modeling and simulation
In the process vegetable oil was Trans–esterifies in the reactor, followed by downstream purification, which consisted of: methanol recovery by distillation; glycerol separation; and methyl–ester purification by distillation. The final purity of the methyl–ester product was quantified by reporting the product stream composition, which was determined by thermodynamic calculations in ASPEN. Mono–and di–glycosides were neglected as reaction intermediates. Plant capacity, unit block operating conditions, and chemical components (except the catalyst) were selected based on the previous heterogeneous acid catalyst (Styrene divinely benzene copolymer) simulation.9 For the present simulation styrene divinely benzene copolymer was chosen as the catalyst, as it has been shown to effectively catalyze both the trans–esterification and esterification reactions by several authors.10,11 Although the properties for triolein were available in the ASPEN data banks, different values of the boiling point and critical temperature were obtained from the literature and used to Re–estimate the Antoine’s vapor pressure coefficients since initial estimates and the results were unsatisfactory. The NRTL model was selected as the thermodynamic model. Since no kinetic data were available for the styrene divinely benzene copolymer reaction, the reactor was modeled as a stoichiometry reactor representing a packed bed reactor, eliminating the catalyst removal step. The conversion was set at 90%. It was assumed that no side reactions involving glycerol occurred, since there had been no reports of such reactions in the literature. ASPEN–Plus flow sheet of the process is presented in Figure 2; conditions and reactor specifications are outlined in Table 1. Catalyst characteristics such as density and porosity have not been included in the reaction scheme since they have not been reported in the literature and are likely to change with each method of synthesis. Additionally, since the reactor is modeled as a batch reactor, including such parameters would not have affected the results. The operating values and calculated data of each component are obtained from literatures12–15 The reaction rate constant, k, is taken from.16 Cooling water flow rate, Fc, overall heat transfer coefficient times transfer area, UA, products and reactants values are obtained from.6 Model of the reactor is written in MATLAB–MPC by using Equations 5–10.
Figure 2 ASPEN-Plus process flow diagram of the biodiesel production.
Parameter |
Symbol |
Value |
Unit |
Reactor Temperature |
T |
60 |
0C |
Reactor Pressure |
P |
1 |
atm |
Reactant Flow rate |
F0 |
0.119 |
m3/s |
Coolant Flow rate |
Fc |
0.00268 |
m3/s |
Catalyst |
Styrene-DVB |
1 |
wt% |
Conversion |
x |
90 |
% |
Initial Reactant Temp. |
T0 |
25 |
0C |
Stirrer Rotational Speed |
N |
10 |
Rps |
Initial Conc. of TG |
CTG0 |
1.11 |
kmol/m3 |
Initial Conc. of MeOH |
CA0 |
21.499 |
kmol/m3 |
Reynolds number |
Re |
69176.45 |
- |
Reactor Volume |
V |
27.08 |
m3 |
Agitator diameter |
Da |
0.913 |
m |
Volume of cooling Jacket |
VJ |
2.85 |
m3 |
Overall heat transfer Area |
AH |
50.48 |
m2 |
Molar flow of TG |
FTG |
1.31 |
kmol/h |
Molar flow of MeOH |
FA |
3.24 |
kmol/h |
Heat capacity of MeOH |
Cp(MeOH) |
79.5 |
J/(mol K) |
Heat capacity of Triglyceride |
Cp (TG) |
463.36 |
J/(mol K) |
Heat transfer coefficient |
U |
438 |
W m-2K-1 |
Cooling Water Temperature |
Tcin |
300 |
K |
Density of Methanol |
ρ |
0.998 |
Kg/m |
Kinetic constant |
k0 |
2.46 x 1010 |
m3.mol/sec |
Heat of reaction |
ΔHr |
6000 |
kjmol/-1 |
Table 1 The Operating conditions and Specifications of Reactor Parameter
Results and discussions
Model identification
Figures 3–7 shows that the biodiesel process is a two–input two–output multivariable process. The process nonlinear model was programmed and simulated in Mat lab. Simulation results shows system as an open stable process achieved the parameters of the controller by incrementally adjusting the parameters until the error was reduced to zero.
Controller design and simulations
The controller did not attempt to regulate the measured reactor temperature directly. However it varies since it needed to regulate the concentration. Thus, its MPC weight is zero. Each of these parameters was chosen carefully to attain the best controller performance and the least controller moves. Plant inputs CAi and Ti are unmeasured disturbances as shown in Figures 4–6. By default, the controller assumes integrated white noise with unit magnitude at these inputs when configuring the state estimator and increasing the state estimator signal–to–noise by a factor of 10 to improve disturbance rejection performance. The MPC Controller block was configured to look ahead the set–point changes in the future, i.e., anticipating the set–point transition which improves set–point tracking as shown in Figure 8, Figure 9. Testing the response to a 5% increase in feed concentration, the closed–loop response is satisfactory to the desired set–point transition.
Figure 8 The CSTR MPC controller design with a set-point.
Figure 9 A closed-loop response with a step disturbance in feed concentration.
After a 10minute warm–up period, ramp the concentration set point downward at a rate of 0.25per minute until it reaches 2.0kmol/m3. Removing the 5% increase in feed concentration used previously gives an unacceptable closed–loop response. Performance along the full transition is improved when other MPC controllers are designed at different operating conditions along the intermediate and final transition stages respectively as shown in Figure 10.
Figure 10 A closed-loop controller response using full transition.
Biodiesel Transesterification reactor control has become a very important issue in recent times due to the difficulty in controlling the complex and highly nonlinear dynamic behavior. Nonlinear models have a lot of advantages over linear models for control and estimation and at the same time, they also present new difficulties that must be addressed to guarantee their usefulness. This study demonstrates both the features and caveats of nonlinear models in MPC and presents simple and effective methods for analyzing and avoiding these problems. The research shows the proposed model of the control scheme for the continuous biodiesel Transesterification reactor and also, the transformation of the model in time domain presents the results of the model which shows that it achieved optimal output set–points according to the optimal control scheme goal of the actual production process, and the MPC realized the dynamic tracking control and it was observed that the choice of disturbance models is an important issue for nonlinear plants. The choice of disturbance model can determine whether a system can be stabilized. In general, the input disturbance model is appropriate for cases of plant/model mismatch, although it is ineffective for a specific class of systems. We further demonstrate poor performance of linear MPC on this class of system.
Conclusion
The control system design of the biodiesel Transesterification reactor is different from plant to plant. This depends mainly on the specific production technology adopted. For example, biodiesel production plants based on the MPOB (Malaysia Palm Oil Board) technology have the Transesterification reactor operating pressure higher than atmospheric pressure. For this project, the reactor flow rate is used as a controlled variable and is maintained at a certain level in order to keep methanol in the liquid phase constant. Meanwhile, the temperature of tank is chosen as another controlled variable, rather than the feed temperature itself. A cooling jacket system is utilized to manipulate this controlled variable to maintain the reactor temperature below 65°C (right below the boiling point of methanol at atmospheric pressure). Alternatively, the temperature of reactant feed is chosen as another controlled variable, rather than the temperature of the reactor itself using dynamic simulation software such as MATLAB, Simulink and Aspen Plus.
Acknowledgments
Conflict of interest
Author declares that there is none of the conflicts.
References
- Leung DYC, Wu X, Leung MKH. A reviews on biodiesel production using catalyzed Transesterification. Applied energy. 2010;87(4):1083–1095.
- Shahla S, Cheng NG, Yusoff R. An overview on Transesterification of natural oils and fats. Biotechnology and Bioprocess Engineering. 2010;15(6):891–904.
- Yusuf N, SK Kamarudin, Yaakub Z. Overview on the current trends in biodiesel production. Energy conversion and Management. 2011;52(7):2741–2751.
- Marchetti JM, Miguel VU, Errazu AF. Possible Methods for Biodiesel Production. Renewable & Sustainable Energy Reviews. 2007;11(2007):1300–1311.
- Yii–Der You, Je–Lueng Shie, Ching–Yuan Chang, et al. Economic Cost Analysis of Biodiesel Production: Case in soybean oil. Energy Fuels. 2007;22(1):182–189.
- Mjalli FS, San LK, Yin KC, et al. Dynamics and control of a biodiesel Transesterification reactor. Chemical Engineering and Technology. 2009;32(1):13–26.
- Freedman, Butterfield BRO, Pryde EH. Transesterification kinetics of soybean oil 1. Journal of the American Oil Chemists’ Society. 1986;63(10):1375–1380.
- Turner, TL. Modeling and simulation of reaction kinetics for biodiesel production. NCSU Libraries. 2005.
- Chiu CW, MJ Goff, GJ Suppes. Distribution of methanol and catalysts between biodiesel and glycerin phases. AIChE Journal. 2005;51(4):1274–1278.
- Kucek KT, César–Oliveira, Wilhelm HM, et al. Ethanolysis of refined soybean oil assisted by sodium and potassium hydroxides. Journal of the American Oil Chemists Society. 2007;84(4):385–392.
- Pinto AC, Guarieiroa LLN, Rezendea MJC, et al. Biodiesel: an overview. Journal of the Brazilian Chemical Society. 2005;16(6B):1313–1330.
- Perry RH, DW Green. Perry's chemical engineers' handbook. USA: McGraw–Hill Professional; 1988.
- Abreu FR, Lima DG, Hamu EH, et al. New multi–phase catalytic systems based on tin compounds active for vegetable oil transesterification reaction. Jour Mol Catal A–Chem. 2005;227:263–267.
- Benavides PT, Diwekar U. Optimal control of biodiesel production in a batch reactor: Part I: Deterministic control. Fuel. 2012;94:211–217.
- Canakci M, Sanli H. Biodiesel production from various feedstocks and their effects on the fuel properties. Journal of industrial microbiology & biotechnology. 2008;35(5):431–441.
- Noureddini H, Zhu D. Kinetics of Transesterification of soybean oil. Journal of the American Oil Chemists Society. 1997;74(11):1457–1463.
©2017 Olufemi, et al. This is an open access article distributed under the terms of the,
which
permits unrestricted use, distribution, and build upon your work non-commercially.