#### Abstract

Biodiesel, the most promising renewable and alternative energy, is produced through transesterification of vegetable oils. One of the most cost effective sources of biodiesel is *Jatropha curcas* oil. Transesterification of Jatropha oil depends significantly on reaction parameters such as reaction time, temperature, molar ratio, catalyst amount, and stirrer speed. Among these parameters temperature and stirring have noteworthy effect on mass transfer. In this research article, we have shown the simultaneous effect of temperature and stirring on mass transfer by considering a mathematical model. The optimal profiles of temperature and stirring are determined as a combined parameter, for which maximum biodiesel can be obtained. Further, we have shown that this pair exists and is unique for the optimality of the system.

#### 1. Introduction

Esters of vegetable oils are known as biodiesel and used as an alternative fuel for diesel [1]. Biodiesel is a nonpolluting, locally available, accessible, sustainable, and reliable fuel obtained from renewable sources such as vegetable oils or animal fats by transesterification [2]. An alternative way of biodiesel synthesis is produced from vegetable oils.* Jatropha* oil is one of such nonedible oils, which has an estimated annual production potential of 200 thousand metric tons in India and it contains high amount of oil, that is, triglycerides, and the produced biodiesel has a similar property as that of diesel [3].

Transesterification or alcoholysis is adopted to convert* Jatropha curcas* oil, to biodiesel. Two types of transesterification have been developed and analysed for biodiesel production using either chemical catalyst or biological catalyst [4–7]. There are ample research articles where alkaline transesterification for biodiesel production is investigated [8–10]. Raw materials with a high water or free fatty acid content need pretreatment with an acidic catalyst in order to esterify FFA [11, 12]. It is evident that reaction parameters such as molar ratio between alcohol and oil, reaction time, catalyst concentration, and reaction temperature influenced the transesterification process [13–15].

Triglycerides are immiscible with alcohol due to polar and nonpolar nature of alcohol and oil, respectively. Thus, biodiesel production process suffers initial mass transfer limitations problem [16]. This problem can be avoided by applying stirring on the system. Roy et al. [4, 17] successfully observed the effect of stirring on transesterification by formulating a mathematical model. Noureddini and Zhu proposed an initial mass transfer controlled region followed by a kinetically controlled region for base catalytic transesterification of sunflower oil [18]. Hou et al. showed that the reaction is very slow initially due to mass transfer limitations between methanol and oil phase [19]. Peterson et al. [20] have studied the effect of stirrer speed on the transesterification of vegetable oil with alcohol. Rashid et al. also observed the stirring intensity of the transesterification of cotton seed oil using several catalyst under experimental setup and analytical chemistry of fuel properties [21]. Sharma et al. have observed that beyond an optimum stirrer speed production level decreases [22].

In a previous study, influence of temperature on mass transfer is investigated in case of biodiesel production from* Jatropha curcas* oil [23]. It is observed that, with an increase in reaction temperature, conversion of oil increased significantly; that is, mass transfer has been increased [5, 12, 24]. But after a certain level of temperature (50°C), biodiesel yield decreases [25, 26]. It was shown by many researchers that mass transfer is highly dependent on temperature. At fixed stirring, mass transfer rate is directly proportional to its temperature profile, that is, high mass transfer at high temperature [6, 27].

Hence, mass transfer limitation is one of the most deciding factors for optimum production of biodiesel. Optimization of mechanical agitation and temperature for the evaluation of the mass transfer resistance is essential in transesterification of* Jatropha* oil. In this research article, we have considered a mathematical model [17] for biodiesel production and unveil the combined effect of temperature and stirring on mass transfer in different phases of biodiesel production. Using mathematical control theory, optimal profiles for temperature and stirring are derived. Our aim is to minimize mass transfer limitation to get maximum biodiesel production and make the process cost effective. We have also shown the existence and uniqueness of control variables for the optimal system. Analytical results are shown numerically using Matlab.

#### 2. The Mathematical Model

In this research article, we have attenuated two key parameters of our model system, which has been studied in detail in our previous works [17, 23]. We have chosen temperature and stirring as a combined parameter and study the dynamical behaviour impacted on biodiesel production due to different stirring as well as fluctuations of reaction temperature. The base model is constructed from the previous works [17, 23] and here we assume the same reaction mechanism as described in previous work. For a detailed discussion of the model assumptions one may refer to our earlier works [17, 23].

Biodiesel (BD) can be produced by reacting* Jatropha* oil (i.e., triglycerides (TG)) with methanol (AL). The reactions happen in three consecutive reversible steps. During the course of reaction of triglycerides and methanol, some intermediates (diglyceride (DG) and monoglyceride (MG)) are formed. The schematic explanation of the reaction is given by We denote the concentration of biodiesel, triglycerides, diglycerides, monoglycerides, methanol (alcohol), and glycerol by , , , , , and , respectively. We have the following set of rate equations as described in [17, 23]:with initial conditions,Here, , , and are forward and , , and are backward reaction rates. The dependency of reaction rate constants on the temperature, to , is expressed by the Arrhenius equation [26]: is the reaction temperature, is the frequency factor, and in which is the activation energy for each component and is the universal gas constant. Using the values of and [26], we obtain the values of . is the reaction temperature, and are constants, and their values are given in Table 1. We use as the mass transfer rate constant due to stirring and it is defined as [17, 23] where is the speed of stirrer and , , and are constants. The term is used in our model by the expression . Here, represents maximum biodiesel production in an ideal situation, which is defined as a system having no mass transfer resistance.

#### 3. Boundedness of the System

The right hand side of (2) is smooth functions of the variables , , , , , and and system parameters; as long as these quantities are nonnegative, the local existence, uniqueness, and continuous properties hold. In the next theorem we show that the solution of the system is bounded.

Theorem 1. *The solution of (2), where , is uniformly bounded.*

*Proof. *We define the function : byObserve that is well-defined and differentiable on some maximal interval ().

The derivative of (7) isUsing Gronwall’s inequality (differential form) [28], we can writeThus is bounded on . Now, suppose ; then . Thus solutions of the systems are uniformly bounded.

#### 4. The Optimal Control Problem

Optimal control is a useful mathematical tool for controlling a chemical system like biodiesel production. Generally, we use these types of method towards a system by finding the time dependent profiles of the control variables to optimize a particular performance. Here, we use the control pair , which represents the stirring activator input and temperature input, respectively, at time satisfying [29]. Also, represents the maximal use of control and signifies no use of control.

Based on the above assumptions, system (2) would be Initial conditions of the system (11) are , , , , , and . Here is the maximum BD production which can be obtained in an ideal reaction condition and is the mass transfer rate constant.

The system (10) can be written in compact form as where are the right sides of system (10) and are the state variables representing the concentration of each of the components , , , , , and , respectively.

We want to maximize the biodiesel concentration and minimize the cost of production. The objective functional is thus formulated as The parameters are the weight constants on the benefit of the cost of production and is the penalty multiplier. Now, the objective is to find the optimal control pair such thatHere Pontryagin Minimum Principle [30] has been used to find the optimal control pair .

##### 4.1. Existence of an Optimal Control Pair

The existence of the optimal control pair can be obtained using the result by Fleming and Rishel in [31] and in [32].

Theorem 2. *There exists an optimal control pair such that *

*Proof. *To use the result in [31], we must check the following conditions:(1)The set of controls and corresponding state variables is nonempty.(2)The control set is convex and closed.(3)The right-hand side of the state system is bounded by a linear function in the state and control variables.(4)The integrand of the objective functional is concave on .(5)There exists constants , and such that the integrand of the objective functional satisfies
In order to verify these conditions, we use a result by Lukes in [32] to give the existence of solutions of system (10) with bounded coefficients, which gives condition . We note that the solutions are bounded. Our control set satisfies condition . Since our state system is bilinear in , the right hand side of system (10) satisfies condition , using the boundedness of the solutions. Note that the integrand of our objective functional is concave. Also we have the last condition needed,where depends on the upper bound on , and since . We conclude that there exists an optimal control pair for the system (10) for which objective functional, , will be minimized.

##### 4.2. The Optimality System

Pontryagin’s minimum Principle, given in [31], provides necessary conditions for the optimal control problem. This principle converts (12), (14), and (17) into a problem of minimizing an Hamiltonian. By applying Pontryagin’s minimum principle in state, we obtain the following theorem.

Theorem 3. *If the given optimal control and the solution , , , , , of the corresponding system (10) minimize over , then there exists the adjoint variables , , , , and which satisfying the following equations: along with the boundary conditions, .*

*Proof. *The Hamiltonian can be taken as:According to the Pontryagin Minimum Principle [33], the unconstrained optimal control pair satisfies the following equation, Thus from (19), we have Due to the boundedness of the optimal control, According to Pontryagin Minimum Principle [29], the adjoint system can be obtained from the following equation [23], where and the necessary condition satisfying the optimal control pair are So, the adjoint system (17), corresponding to the system (10), can be obtained by (22). Boundary conditions for adjoint system (17) are as the salvage function in the objective functional (equation (14)) is zero.

Now, the system (17) can be written in compact form as: where are the right sides of system (17) and are the state variables representing the concentration of each components , and respectively and are the adjoint variables.

Thus, (10), (17), and (21) represent the optimality system with as the boundary conditions. Also, , , , , , are treated as initial conditions. We solve state system (10) by forward integration and the adjoint system (17) by backward integration using a numerical method such as RK4 method.

The optimal profiles for temperature () and stirring () can be obtained by the following relations:

###### 4.2.1. Uniqueness of the Optimal Control Pair

In this section, we show that the control pair is unique for the system (10).

Let us suppose that, (, , , , , , , , , , , ) and (, , , , , , , , , , , ) are two solutions of the system (10) and (17).

Let us consider , and , for .

Similarly, , and , for .

Then optimal controls parameter take the form,Thus, we have the following two inequalities, Substituting , and , (for ) in (11) and (19) we have, are given in (25) and as for example, the differential equation for , We have another set of twelve such similar equations for the substitution , for .

Here we subtract the equations for from , and from for . Next, each subtracted equation is multiplied by an appropriate function and then integrated from initial time () to final time ().

Thus, we have the following inequalities,Here, the constants to depend on the coefficients and the bounds on states and adjoints.

The above twelve inequalities are added and estimated to obtain the following result,where and depend on the coefficients and the bounds of , and .

From the above relations we have, If we choose such that and , then , , , , , , , , , , , and .

Hence, the solution is unique in the time interval and also the control pair is unique for the optimality of the system (10) which minimizes the objective functional .

#### 5. Numerical Simulation

In previous section, Pontryagin Minimum Principle is used to observe the effect of optimal control in the system dynamics with the help of Hamiltonian. In this section, the model equation (6) and optimal control problem ((10) and (17)) are solved numerically using Matlab and the results are plotted in figures. The aim is to understand the effect of temperature and stirring on biodiesel yield in transesterification process.

Simultaneous effect of temperature and stirring can be seen in Figure 1. In this figure, final concentration of biodiesel is plotted as function of temperature () and stirring (). It is revealed from this figure that, as stirring increases, biodiesel production also increases, because at higher mixing intensity the mass transfer resistance decreases.

It is also noticed from Figure 1 that both the reaction rate and mass transfer rate vary with changes in temperature and stirring. But the change of mass transfer rate with the change of temperature will be negligible compared to the effect of temperature change on reaction rate. As reaction temperature increases, yield of biodiesel is also increased. But after a certain level of temperature (above 50°C), biodiesel yield is decreased. Temperature above 60°C should be avoided because at the high temperature, alcohol vaporizes which ultimately changes optimum molar ratio of alcohol and triglycerides or may be due to saponification reaction [26, 34, 35].

Thus, as a combined parameter, mixing intensity and temperature have major influence on mass transfer which ultimately increases the yield of biodiesel. Now, applying optimal controlling on stirring speed, along with temperature during the reaction process, it has significant impact for optimizing the biodiesel production. Figure 2 shows the optimal profiles of stirring () and temperature (). This result shows that initially higher mechanical stirring is needed for transesterification reaction to minimize mass transfer resistance and to increase reaction rate. Thus, increasing the rate of mixing intensity is essential from the beginning of the reaction. After minutes of reaction (evident from Figure 2), a lesser stirring (below 100 rpm) but high temperature (about 50°C) is required at this stage; that is, temperature is the main factor which controls the reaction system after minutes of reaction.

Figure 3 illustrates the concentration profiles of biodiesel for two cases, case I: with optimal control pair and case II: without optimal control. In this figure, the effect of optimal control pair is reflected on the concentration of biodiesel. In case I, the concentration of biodiesel at optimal condition reaches its maximum value, mol/L, while in case II the maximum concentration is mol/L after minutes.

#### 6. Discussion and Conclusion

In an earlier study, Roy et al. [17] have considered a system of biodiesel production and evaluated the effect of mass transfer, in terms of stirring, by developing a mathematical model. Also, an optimal profile of stirring was determined, at constant temperature, for which maximum biodiesel could be obtained. Basir and Roy [23] have applied control on temperature to maximize the yield of biodiesel giving a fixed stirring to the system. optimal temperature profile was also determined for maximum biodiesel production. In the present work the novelty belongs in the intuitive quality enhancement by varying both the temperature and stirring speed to optimize biodiesel yield. Combined effect of temperature and stirring on biodiesel productivity has been shown. Further, optimal profiles of temperature and stirring are determined, analytically as well as numerically, for which maximum yield of biodiesel can be obtained. It is also shown that the optimal control pair (temperature and stirring) has a significant impact on mass transfer resistance. Moreover, it has been shown analytically that this control pair is unique for the optimality of the system.

We may conclude that maximum biodiesel production can be obtained by minimizing mass transfer resistance and it can be done by introducing control on temperature and stirring simultaneously. This paper thus provides an idea of describing the simultaneous effect of temperature and stirring on the mass transfer for faster rate of biodiesel production.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

It is a pleasure to acknowledge the learned reviewers for their constructive and insightful comments, which helped us to improve the quality of this work, and Dr. Joydeep Pal, Department of Mathematics, Jadavpur University, Kolkata, India, for language revision. Research is supported by UGC major research project, F. no. 41-768/2012(SR), dated 18 July 2012.