Preprint
Article

This version is not peer-reviewed.

Dynamic and Control of a pH-CSTR

Submitted:

16 February 2025

Posted:

18 February 2025

You are already at the latest version

Abstract

This research aims to study by numerical simulation the dynamic and the control of a pH- CSTR (Continuous Stirred Tank Reactor) process. The main characteristic of this important system is that it used to neutralize an acidic inlet liquid stream so as at the exit of the continuous stirred tank reactor (CSTR) the liquid stream has a neutral pH (pH =7). The study of the pH-CSTR is carried out in order to evidence the dynamic and the influence of disturbances on the regulation of the pH inside the reactor. The controlled variable is the pH inside and at the effluent of the reactor, and the manipulative variable is the alkali (NaOH) liquid stream. The obtained results show that the PID controller can regulate the pH in the reactor at the desired set-point value despite the occurrence of strong disturbances related to the acidic composition and flow rate of the inlet liquid stream.

Keywords: 
;  ;  ;  ;  

1. Introduction

This research focuses on the study of pH-CSTR (Continuous Stirred Tank Reactor) because it is very used in the chemical industries and waste water processing stations. [1]. The ph-CSTR is used to neutralize an acidic inlet liquid stream by mixing it with an alkali liquid stream in order to obtain a neutral liquid stream having a pH equal or close to 7. The incoming acidic liquid stream feeding the reactor can be a liquid process or a liquid resulting of a waste water processing unit [1,2,3]. Indeed, a liquid stream must be processing in order to have a neutral pH before being released in the environment. These considerations motivate the need of investigating the dynamic and control of a pH CSTR system. For this purpose, the dynamic mathematical model of a pH-CSTR was set and solved using the data related to a nominal operating point. Afterwards, the performance of a PID controller was assessed in regulation and tracking mode of the pH inside the reactor.

2. The pH CSTR Unit

A flowsheet of pH-CSTR unit is presented in Figure 1 [1]. This unit consists mainly of a continuous stirred tank reactor. The feed entering the reactor is an acidic liquid. The controller manipulates an alkali liquid stream flowrate by mixing it with the inlet liquid inside the reactor. At the exit of the reactor, the effluent liquid must have a neutral pH. Table 1 gives additional parameter values related to the studied process.

3. Model Assumptions

The main model assumptions are listed below:
-
neutralization of weak acid (acetic acid) with strong alkali (NaOH) ;
-
isothermal operation (constant temperature in the reactor);
-
perfect mixing in the reactor;
-
the dynamics of the pH sensor and valve are neglected;
-
any delay time or dead time is neglected in the process;
-
the concentration C2s is supposed constant;
-
F2 is considered as the manipulative variable;
-
disturbances are related to the acid flowrate F1 or the acid concentration C1.

4. Dynamic Mathematical Model and Method of Resolution

The dynamic mathematical model can be either used for studying the parametric sensivity of a process [4] or for control purpose [5]. The pH-CSTR dynamic model process is presented as follows.
HAC⇌ H+ +AC
Ka = [H+] [AC-] / [HAC]
NaOH→ Na+ + OH-
HAC + NaOH→ (AC-, Na+) + H2O
H2O⇌ H+ +OH- Kw = [OH-] [H+]
Molar balance for the acid
ξ (t) = [AC-] + [HAC]
F1(t) . C1 (t) = (F1 (t) + F2 (t)) . ξ(t) + V . dξ(t) / dt
 d ξ (t) / dt = [(F1 (t) . C1 (t)) / V] – [((F1 (t) + F2 (t)) / V) . ξ (t)
ξ(t) = y1 (t)
Molar balance for the alkali
ζ (t) = [Na+]
F2 (t) . C2s = (F1 (t) + F2 (t)) . ζ(t) + V . d ζ(t) / dt
 d ζ (t) / dt = [(F2(t) . C2S) / V] – [((F1 (t) + F2 (t)) / V) . ζ (t)
ζ(t) = y2 (t)
Equation of the electric neutrality
[H+] + [Na+] = [OH-] + [AC-]
[H+] + ζ(t) = Kw / [H+] + Ka . [HAC] / [H+]
equation (1), gives :
[AC-] = Ka . [HAC] / [H+]
the substitution of equation (7a) in equation (3), lead to :
ξ (t) = Ka [HAC] / [H+] + [HAC] = [HAC] . [(Ka / [H+]) + 1]
the equation (3a) gives :
[HAC] = ξ (t) . [H+] / (Ka + [H+])
Finally, the substitution of equation (3b) in equation (3a) lead to a third order algebraic equation relatively to [H+] :
[H+]3 + (Ka + ζ (t)) . [H+]2 + (Ka . ζ (t) – Kw – Ka . ξ (t)) . [H+] – Ka . Kw = 0
The resolution of the dynamic model can be resumed by the following steps:
1.
Compute ξ (t), from the following equation, by using Euler method
d ξ (t) / dt = [(F1 (t) . C1 (t)) / V] – [((F1 (t) + F2 (t)) / V) . ξ (t)
2.
Compute ζ (t), from the following, equation by using Euler method
d ζ (t) / dt = [(F2(t) . C2S) / V] – [((F1 (t) + F2 (t)) / V) . ζ (t)
3.
Compute the concentration [H+], from the following equation, by using Newton-Raphson method:
[H+]3 + (Ka + ζ (t)) . [H+]2 + (Ka . ζ (t) – Kw – Ka . ξ (t)) . [H+] – Ka . Kw = 0
4.
Compute pH from the following equation:
pH = -log [H+]

5. Results and Discussion

5.1. Study of Dynamic of the Process in Open Loop Mode (Without Control)

Figure 2 show the variation of the pH in case of an occurrence of a disturbance related to C1, injected at 1 minute, equal to +10 %, during 10 seconds.. It can be seen that the system is very sensitive to the concentration of the incoming acidic flowrate; this effect can be explained by the fact that the increase of the acid concentration induces a decrease of the pH because the mixture inside the reactor becomes more acidic. Furthermore, it can be seen from Figure 2 that after the disturbance has disappeared, the pH return to its initial value. That last fact means that the system is naturally stable and it possesses a certain tendency to auto-regulate or auto-control itself.
Figure 3 show the variation of the pH in case of an occurrence of a step variation related to F2, injected at 10 minute, equal to +10 %.. It can be seen that the system hasn’t a dead time and he has a sigmoid response, which denotes that it is a first order process. So, from data obtained in Figure 3, the transfer function of the process was: H(p) = K/ (1+τ.p) = 0.087/(1+0.06p)
The parameters of the controller were determined according to Ziegler-Nichols method by occurring continuous oscillations related to the pH in order to determine the period of the oscillations Tz . From Figure 4, the value of Tz was found to be equal to 0.2 min. Therefore, the parameters of the PID controller were found as follows : kc = 232; τI = 0.1 min; τD = 0.025 min.

5.1. Study of Dynamic of the Process in Closed Loop Mode (With Control)

Figure 5 shows the regulation of the pH to the setpoint value (pH =7) without occurrence of any disturbances. It can be seen from this figure that the controller can control the pH rapidly and with a good precision. The control signal (F2) varies regularly and doesn’t show excessive and dangerous peaks.
Figure 6 shows the regulation of the pH to the setpoint value (pH =7) with occurrence of a disturbance related to the concentration C1. It can be seen that the controller can handle the disturbance and it can regulate the pH to its serpoint value and the signal control varies regularly without excessive activity.
Figure 7 shows the control of the pH in tracking mode where the value of the setpoint changes from 7 to 6. It can be seen that the controller can handle easily the variation of the setpoint value and the signal control varies regularly without excessive variations.

6. Conclusions

This research studied the dynamic and the control of a non-linear pH-CSTR process. The obtained results showed that for the studied process is a first order kind without dead time. Furthermore, the studied process is naturally stable, i.e. it has a certain capacity to regulate itself. The controller can handle the disturbance and it can regulate the pH to its setpoint value and the signal control varies regularly without excessive activity. Furthermore, the controller can handle easily the variation of the setpoint value, in tracking mode, and the signal control varies regularly without excessive variations. This study highlighted the design of a PID controller who was able to regulate the pH despite the occurrence of a high disturbance and the controller was also able to operate in asservissement or tracking mode.

References

  1. Robert H.Perry , “Perry’s Chemical Engineering Handbook”, 1997.
  2. Ai-Poh Loh,, Dhruba Sankar De, and P. R. Krishnaswamy, “pH and Level Controller for a pH Neutralization Process”, Ind. Eng. Chem. Res., 2001, 40 (16), 3579–3584. [CrossRef]
  3. Teenu Jose, Rahul Antony, Samson Isaac, pH neutralization in cstr using modelreference neural network and fuzzy logic adaptive controlling schemes, Int J Adv Res Tech, 2(1),2013.
  4. Bendjaouahdou C (2024) Parametric study of a ternary batch distillation column, Research Square 1 (1), 14. [CrossRef]
  5. Bendjaouahdou C, Bendjaouahdou M H (2013) Control of the hot spot temperature in an industrial SO2 converter, Energy Procedia, 36, 428-443. [CrossRef]
Figure 1. Flowsheet of the pH-CSTR unit [1].
Figure 1. Flowsheet of the pH-CSTR unit [1].
Preprints 149566 g001
Figure 2. Variation of the pH without control in case of an occurrence of a disturbance related to C1, injected at 1 minute, equal to +10%, during 10 seconds.
Figure 2. Variation of the pH without control in case of an occurrence of a disturbance related to C1, injected at 1 minute, equal to +10%, during 10 seconds.
Preprints 149566 g002
Figure 3. Variation of the pH without control in case of an occurrence of a step variation related to F2, injected at 10 minute, equal to +10%.
Figure 3. Variation of the pH without control in case of an occurrence of a step variation related to F2, injected at 10 minute, equal to +10%.
Preprints 149566 g003
Figure 4. Continuous oscillations related to the pH.
Figure 4. Continuous oscillations related to the pH.
Preprints 149566 g004
Figure 5. Regulation of the pH to the setpoint value (pH =7) without occurrence of disturbances.
Figure 5. Regulation of the pH to the setpoint value (pH =7) without occurrence of disturbances.
Preprints 149566 g005
Figure 6. Regulation of the pH to the setpoint value (pH =7) with occurrence of a disturbance related to concentration C1 equal to + 10 %, injected at t = 1 min, during 30 s.
Figure 6. Regulation of the pH to the setpoint value (pH =7) with occurrence of a disturbance related to concentration C1 equal to + 10 %, injected at t = 1 min, during 30 s.
Preprints 149566 g006
Figure 7. Control of the pH in tracking mode where the value of the setpoint change from 7 to 6 at t = 10 min.
Figure 7. Control of the pH in tracking mode where the value of the setpoint change from 7 to 6 at t = 10 min.
Preprints 149566 g007
Table 1. Parameters values for the ph-CSTR [1].
Table 1. Parameters values for the ph-CSTR [1].
Parameter Signification Value
V reactor volume 1000 litres
F1 acid 81 litres/min
F2 Alacal flowrate 515 litres/min
C1 acid concentration 0.32 mole/litre
C2s inlet alkali concentration 0.05 mole/litre
Ka acidity constant 10-5
Kw water ionic constant 10-7
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2025 MDPI (Basel, Switzerland) unless otherwise stated