Submit your papersSubmit Now
For Enquiries: [email protected]
IIARD LogoIIARD

Proportional, Integral and Derivative Controller Configuration of a Continuous Flow Agitator Type Reactor for Ethyl Acetate Production

Wosu, Chimene Omeke Ojong, Elias Ojong Benibo, Preniyobo Diepriye Ibu, Martha

Abstract

This research investigated the modeling and simulation of PID controllers for temperature and fractional conversion control in a Continuous Flow Agitator Type Reactor producing ethyl acetate through the esterification of acetic acid and ethanol. First-principles dynamic models of mass and energy balances were linearised into transfer functions and implemented in MATLAB/Simulink. Manual PID tuning with various gain sets (e.g., (3,8,1), (8,3,1), (1,2,2), (15,12,6) for temperature; (4,8,5), (2,4,5), (1,2,3), (1,2,2) for conversion) revealed that aggressive gains caused excessive overshoot (up to ~29.6% for temperature), severe oscillations, and prolonged settling, while conservative tuning yielded smoother responses with minimal ringing and settling within 6–8 s. MATLAB auto-tuning produced superior results: well-damped trajectories with only 3% overshoot and 10.1% overshoot for temperature and conversion loops respectively, negligible residual oscillations, zero steady-state error, rise times of 1.52 s and

Keywords

PID ControlFlow ReactorEsterficationEthyl AcetateModeling and MATLAB Simulation

References

T 343.15K Operating temperature of the reactor Nagamalleswara et al., 2015 ri 5.28 × 107mol/m3 Reaction rate Nagamalleswara et al., 2015 E 59.403kJ/mol Activation energy Nagamalleswara et al., 2015 3.1.1 Temperature Response at PID Configuration (3, 8, 1) Figure 2: Temperature Control at PID Values of (3, 8, and 1) Figure 2 showed the closed-loop temperature response for Kp= 3, Ki = 8, and Kd= 1. The process temperature (solid blue line) starts at 0 K and rises sharply, attaining a first peak of approximately 580–600 K within the first 0.8–1.0 s. This rapid initial response reflects adequate proportional action. A clear undershoot then occurs, dropping to around 220–250 K at t ≈ 2 s, caused by the strong integral term (Ki = 8) continuing to accumulate error and over-correcting. Smaller secondary peaks appear at approximately t = 3.5 s (≈ 480 K), t = 5 s, and t = 7 s, with progressively decreasing amplitude. The oscillations are damped and the response settles smoothly to the set point of 343.15K by 8–9 s with zero steady-state error. This configuration demonstrates balanced but not optimal tuning. The high integral gain effectively eliminates offset, which is critical for maintaining the exact operating temperature required for the esterification reaction. However, the limited derivative action provides only moderate damping, resulting in noticeable ringing. In a CFATR, such mild oscillations could cause short-term fluctuations in reaction rate and product quality, though the system remains stable overall. The behaviour affirms the importance of sufficient integral action in exothermic reactor control while highlighting the need for stronger derivative action to suppress transients. 3.1.2 Temperature Response at PID Configuration (8, 3, 1) Figure 3: Temperature Control at PID Values of (8, 3, and 1) Figure 3 illustrates the response for Kp= 8, Ki = 3, and Kd= 1. The temperature rises more aggressively, peaking at approximately 700–750 K within 0.7 s, indicating the stronger proportional gain accelerates error correction. A deeper undershoot follows, reaching nearly 0– 100 K at t ≈ 1.8–2.0 s. The response then exhibits more pronounced and sustained oscillations, with clear peaks at t ≈ 3.2 s, 4.8 s, 6.5 s, and 8.2 s before gradually damping. Full settling to 343.15 K occurs only after 9–10 s, with slightly longer ringing than in the previous case. The higher proportional gain speeds up the initial response but, when paired with a weaker integral gain, produces greater oscillatory tendency and prolonged settling. This configuration risks temporary temperature excursions that could trigger side reactions or reduce selectivity in ethyl acetate production. It demonstrates that increasing Kp without corresponding increases in Kd can destabilize the loop, a common challenge in highly exothermic CFATR systems. While steady- state offset is eventually removed, the excessive transients make this tuning less suitable for industrial deployment. 3.1.3 Temperature Response at PID Configuration (15, 12, 6) Figure 4: Temperature Control at PID Values of (15, 12, and 6) Figure 4 displays the highly aggressive response for Kp= 15, Ki = 12, and Kd= 6. The temperature surges dramatically, exceeding 1200 K within 0.5 s, an overshoot of more than 850 K above the set point. A severe undershoot follows, plunging close to 0 K at t ≈ 1.2 s. Multiple large-amplitude oscillations continue at t ≈ 2.2 s, 3.8 s, and 5.5 s before slowly damping, with full settling achieved only after approximately 9–10 s. Although the high gains produce the fastest initial rise, the excessive overshoot and prolonged ringing pose serious safety risks in an industrial CFATR. In the exothermic ethyl acetate reaction, such large temperature spikes could lead to thermal runaway, catalyst degradation, or unwanted by-product formation. This configuration clearly illustrates the dangers of over-tuning: while derivative action is present, it is insufficient to counteract the combined effect of very high proportional and integral gains. The result underscores why manual high-gain tuning is rarely recommended for exothermic reactor systems without rigorous robustness analysis. 3.1.4 PID Temperature Control Performance with Auto tuning Figure 5: Temperature Control at PID Auto tuning Following the limitations observed with manually selected PID parameters, particularly the excessive overshoot, prolonged oscillations, and potential instability risks associated with high- gain configurations, a PID auto-tuning technique was implemented to further improve the temperature control performance of the Continuous Flow Agitator Type Reactor for ethyl acetate production. Figure 5 shows the step-response comparison between the auto tuned PID controller (solid blue line) and the untuned block response (dashed blue line). The auto tuned response exhibits a smooth, well-damped rise with only 3 % overshoot, reaching the normalized set point (amplitude = 1.0) with a rise time of 1.52 s and settling time of 11.6 s. Minor ringing is visible between 4–8 s but decays rapidly. In contrast, the block response shows a much faster initial rise (0.239 s) but suffers from 29.6 % overshoot, a peak of 1.3, and slower damping. Auto tuning clearly outperforms the aggressive manual block settings by delivering superior reference tracking, minimal overshoot, and robust disturbance rejection. The auto-tuned controller achieves: i. A moderate rise time, faster than the low-gain configurations but without the aggressive and unstable behaviour of high-gain settings. ii. Minimal overshoot (only 3 %), indicating highly effective suppression of excessive correction and prevention of dangerous temperature spikes. iii. Negligible oscillations after the initial transient, reflecting superior damping and robust stability. iv. Zero steady-state error, confirming adequate integral action This behaviour demonstrates that the auto-tuned PID controller successfully balances responsiveness and stability, ensuring precise and consistent reactor temperature regulation without inducing transient fluctuations that could compromise reaction kinetics, reduce ethyl acetate selectivity, or lead to thermal runaway in the exothermic esterification process. For the ethyl acetate CSTR, this translates to safer operation with reduced risk of temperature excursions, consistent product quality, and lower energy consumption for cooling. The result affirms the value of MATLAB’s auto tuning algorithm for complex chemical processes where manual tuning often yields suboptimal or unsafe performance. 3.1.5 Auto tuning Parameters for PID Temperature Control Figure 6: Temperature Control at PID Auto tuning Parameters Figure 6 summarizes the controller parameters and performance/robustness metrics for the temperature loop. The auto tuner returned P = 0, I = 2.3266, D = 0 (effectively a well-tuned PI controller with filter coefficient N = 100). Compared with the manual block parameters (P = 15, I = 12, D = 6), the tuned controller dramatically reduces overshoot from 29.6 % to 3 %, improves the gain margin to 5.62 dB, and achieves an excellent phase margin of 80.1° at 0.542 rad/s. Although the rise time is slower (1.52 s versus 0.239 s) and settling time longer (11.6 s versus 3.83 s), the tuned response is far more stable and practical. Both configurations remain closed- loop stable. The auto-tuned gains result in: i. Sufficient proportional action to achieve timely set point tracking without inducing large initial overshoot. ii. Controlled integral action to eliminate steady-state temperature error without inducing persistent oscillations or integrator windup. iii. Adequate (in this case effectively zero) derivative action to dampen transient disturbances while avoiding excessive noise amplification These metrics confirm that the auto tuned parameters provide optimal robustness for the exothermic CFATR temperature loop. The elimination of derivative action in the final tuned set further simplifies implementation while maintaining excellent performance, offering a reliable, safe, and industrially viable solution for precise temperature regulation in continuous ethyl acetate production. 3.2 PID Fractional Conversion Control Performance The PID fractional conversion control performance for the Continuous Flow Agitator Type Reactor used in ethyl acetate production was comprehensively assessed through MATLAB/Simulink simulations. Four distinct manual PID gain configurations were examined, together with the MATLAB auto tuning function, targeting a fractional conversion set point of 0.95. The time-domain responses clearly illustrate how variations in proportional (Kp), integral (Ki), and derivative (Kd) gains influence rise time, overshoot, oscillatory behaviour, settling time, and overall loop stability. 3.2.1 Fractional Conversion Response at PID Configuration (4, 8, 5) Figure 7: Conversion Control at PID Values of (4, 8, and 5) Figure 7 displays the closed-loop fractional conversion response for Kp= 4, Ki = 8, and Kd= 5. The process variable (solid blue line) rises extremely rapidly from zero, attaining a first peak of approximately 2.0 (more than double the set point) at t ≈ 0.8–1.0 s. This aggressive initial response is followed by a sharp undershoot to nearly 0 at t ≈ 1.8 s. Subsequent large-amplitude oscillations persist throughout the 10-second simulation window: a second peak reaches ~1.9 at t ≈ 3.2 s, followed by an undershoot to ~0.2 at t ≈ 4.2 s; a third peak of ~1.5 occurs at t ≈ 5.5 s with an undershoot to ~0.4 at t ≈ 6.5 s; a fourth peak of ~1.3 appears at t ≈ 7.8 s, and smaller oscillations continue with peaks around 1.1–1.2 at t ≈ 9.2 s before slowly decaying. The conversion only begins to approach the set point of 0.95 after 9 s, with residual low-amplitude ringing still visible at the end of the simulation. This configuration produces the most unstable and oscillatory response among all manual tunings tested. The combination of high proportional gains (rapid error correction), strong integral action (continuous accumulation and over- correction of error) and substantial derivative term (aggressive but insufficient damping) results in severe over-shoot and under-shoot cycles. In industrial CFATR for ethyl acetate production, such violent fluctuations would lead to inconsistent reactant concentrations, variable reaction rates, fluctuating product quality, and potential loss of conversion efficiency. Although steady- state offset is eventually eliminated, the prolonged and excessive transients render this tuning entirely unsuitable for practical deployment where stable conversion is essential for economic and operational reliability. 3.2.2 Fractional Conversion Response at PID Configuration (1, 2, 3) Figure 8: Conversion Control at PID Values of (1, 2, and 3) Figure 8 presents the response for Kp= 1, Ki = 2, and Kd= 3. The conversion increases smoothly to a modest overshoot of 1.10–1.12 at t ≈ 1.1 s. A gentle undershoot to approximately 0.75 follows at t ≈ 2.2 s, succeeded by a smaller secondary peak of ~1.05 at t ≈ 3.2 s. Mild oscillations continue between t = 4–6 s before decaying rapidly. The response settles cleanly and precisely to the target set point of 0.95 within 7–8s, with virtually no residual ringing after t = 6s. This lower- gain configuration yields a significantly smoother and more stable response. The modest proportional action prevents excessive initial overshoot, while the balanced integral and derivative terms provide effective damping without inducing over-correction. The short settling time and minimal variability make this tuning highly suitable for maintaining the desired fractional conversion of 0.95. In the context of ethyl acetate manufacture, such stability ensures uniform product yield, reduces off-specification material, and supports consistent reactor throughput. This configuration demonstrates the advantages of conservative gain selection in mass-balance control loops where process dynamics are relatively slow. 3.2.3 Fractional Conversion Response at PID Configuration (1, 2, 2) Figure 9: Conversion Control at PID Values of (1, 2, and 2) Figure 9 illustrates the response for Kp= 1, Ki = 2, and Kd= 2. The conversion rises steadily with only a very small overshoot to approximately 1.02–1.04 at t ≈ 3.5s. A minor undershoot to ~0.85 occurs at t ≈ 4.5s, after which the curve approaches the set point almost monotonically. Slight ripples are visible, but the response settles smoothly and accurately to 0.95 within 7s, exhibiting excellent damping and zero steady-state error. This configuration delivers the best manual tuning performance observed. The further reduction in derivative gain produces near-ideal, critically damped behaviour with fast rise time, negligible overshoot, and minimal oscillation. For the CFATR esterification process, this smooth tracking guarantees highly consistent fractional conversion, maximizes ethyl acetate selectivity, and facilitates straightforward integration with downstream purification units. 3.2.4 PID Fractional Conversion Control Performance with Auto tuning Figure 10: Conversion Control at PID Auto-tuning Figure 10 compares the step response of the auto-tuned PID controller (solid blue line) with the corresponding block response (dashed blue line). The auto-tuned response exhibits a smooth rise with a moderate overshoot of 10.1 %, peaking at 1.1 around t = 4 s before settling cleanly to the normalized set point within 4.58 s. The block response shows a slightly different trajectory with 7.69 % overshoot and a longer settling time of 9.23 s. Both achieve zero steady-state error, but the auto-tuned controller demonstrates faster overall settling and superior damping. Auto-tuning provides noticeably better overall performance than the majority of manual configurations. It combines acceptable speed of response with excellent stability, rapidly achieving and maintaining the target conversion of 0.95 with reduced transient deviations. Compared with the manually tuned cases discussed in Figures 7–9, the auto-tuned controller achieves: i. A moderate rise time, faster than the low-gain configurations but without the aggressive and unstable behaviour of high-gain settings. ii. Minimal overshoot (only 10.1 %), indicating highly effective suppression of excessive correction and prevention of large conversion spikes. iii. Negligible oscillations after the initial transient, reflecting superior damping and robust stability. iv. Zero steady-state error, confirming adequate integral action This behaviour demonstrates that the auto-tuned PID controller successfully balances responsiveness and stability, ensuring precise and consistent fractional conversion without inducing transient fluctuations that could compromise reactant utilisation, reduce ethyl acetate yield, or lead to inconsistent product quality in the reversible esterification process. 3.2.5 Auto-tuning Parameters for PID Fractional Conversion Control Figure 11 Conversion Control at PID Autotuning Parameters Figure 11 summarizes the controller parameters and performance/robustness metrics for the fractional conversion loop. The auto tuner produced P = 0.64613, I = 1.8727, and D = 0 (a well- tuned PI controller with filter coefficient N = 100). When compared with the block parameters (P = 1, I = 2, D = 2), the tuned controller achieves a faster rise time (1.57 s versus 3.17 s) and substantially shorter settling time (4.58 s versus 9.23 s). Overshoot is marginally higher at 10.1 % (peak = 1.1) compared with 7.69 %, yet remains acceptably low. Robustness indicators are favorable, showing a gain margin of 7.26 dB at 1.57 rad/s and a phase margin of 60° at 0.586 rad/s. Both tuned and block configurations are confirmed to be closed-loop stable. These metrics demonstrate that the auto-tuned parameters deliver an optimal compromise between response speed and stability for the conversion control loop. The absence of the derivative term simplifies practical implementation while preserving excellent performance and robustness against typical model uncertainties in CSTR esterification systems. The superior rise time, settling time, and stability margins validate MATLAB’s auto-tuning capability as a reliable, efficient, and industrially recommended approach for achieving precise fractional conversion control, thereby ensuring high-yield, safe, and economically sustainable continuous production of ethyl acetate in a Continuous Flow Agitator Type Reactor. 4 Conclusion The design and implementation of a PID controller for precise temperature and fractional conversion control in a Continuous Flow Agitator Type Reactor for ethyl acetate production was undertaken in recognition of the industrial importance of ethyl acetate as a key solvent and intermediate in chemical, pharmaceutical, and coating industries. Effective control of temperature and conversion is essential to maximize yield, ensure product quality, maintain process safety, and optimize energy utilization in this exothermic and reversible esterification reaction between acetic acid and ethanol. To achieve the objectives of the research, the study systematically addressed the development of first-principles dynamic models for the reactor, linearization of the mass and energy balance equations into transfer functions, implementation of PID control structures in MATLAB/Simulink, evaluation of manual tuning strategies across multiple gain combinations, and application of auto-tuning techniques to derive optimal controller parameters. From the comprehensive simulation results and detailed performance analysis, the following conclusions can be drawn: i. Manual PID tuning with various gain combinations produced markedly different closed- loop responses. High-gain configurations (e.g., Kp= 15, Ki = 12, Kd= 6 for temperature and Kp= 4, Ki = 8, Kd= 5 for conversion) resulted in excessive overshoot, severe oscillations, and prolonged settling times. ii. Conservative manual tuning (e.g., Kp= 1, Ki = 2, Kd= 2 for both loops) delivered smoother, more stable responses with minimal overshoot and short settling times. iii. PID auto-tuning algorithm consistently outperformed manual configurations for both control loops, yielding well-damped responses with minimal overshoot (3 % for temperature and 10.1 % for conversion), negligible residual oscillations, zero steady-state error, and excellent robustness margins (gain margin 5.62 dB and phase margin 80.1° for temperature; gain margin 7.26 dB and phase margin 60° for conversion). The auto-tuned parameters effectively balanced responsiveness and stability, confirming their superiority for practical application. iv. The temperature loop favored a PI structure (P = 0, I = 2.3266, D = 0), while the conversion loop adopted a tuned PI controller (P = 0.64613, I = 1.8727, D = 0), highlighting that derivative action is often unnecessary or counterproductive when strong integral action and appropriate proportional tuning suffice for these process dynamics. v. The block diagrams of both control loops illustrated standard unity-feedback structures incorporating reactor dynamics, sensor feedback, and PID action, providing a clear and implementable framework for real-time control deployment. Authors Contributions WCO, OOE, DW and IM : Conceptualization, methodology, original draft preparation, performed simulation and writing.

More Articles from WORLD JOURNAL OF INNOVATION AND MODERN TECHNOLOGY

Stigmatization and Mental Health Among Orphans of Registered Orphanages in Benue State, Nigeria

Author: Phoebe Ibee Atile, Kwasedoo Martha Ngbea Ph.D, Elvis Oblu Ihaji Ph.D

Attachment Styles and Mental Health Among Orphans of Registered Orphanages in Benue State, Nigeria

Author: Phoebe Ibee Atile, Elvis Oblu Ihaji Ph.D, Kwasedoo Martha Ngbea Ph.D

Impact of AI-Driven Threat Intelligence on Organizational Resilience

Author: Ifeanyi C. Emeto, Agbakwuru, A.O. Amanze, B.C, Ifeanyi C. Emeto

Digital Career Guidance Tools and Career Adaptability Among Undergraduate Students: A Review of Empirical Evidence

Author: Mutong Cecilia Maren, Azor Loveth C., Ronke Olayemi Akintola and Doka II Obadiah, Abimiku