developing a straightforward tuning method for weak acid ... · pdf filecentral chemical...

13
Central Chemical Engineering & Process Techniques Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward Tuning Method for Weak Acid or Weak Base Neutralization Control System. Chem Eng Process Tech 2(1): 1023. *Corresponding author Larry K. Jang, Department of Chemical Engineering, California State University, Long Beach 1250 Bellflower Boulevard, Long Beach, CA 90840, USA, Email: Submitted: February 18 2014 Accepted: 12 May 2014 Published: 13 June 2014 ISSN: 2333-6633 Copyright © 2014 Jang et al. OPEN ACCESS Keywords pH Control • IMC Tuning Method • pH dynamic model • Acid Neutralization Research Article Developing a Straightforward Tuning Method for Weak Acid or Weak Base Neutralization Control System Larry K. Jang* and Roger C. Lo Department of Chemical Engineering, California State University, Long Beach Long Beach, CA, USA Abstract Control of pH in chemical reactors is a challenging issue due to the complex chemistry and the highly nonlinear nature of the dynamic model. The authors focus on the case in which weak acid (or weak base) is fed to a continuous stirred-tank reactor (CSTR) and neutralized by another stream of strong base (or strong acid). We developed a procedure of finding controller parameters: (1) Instead of pH, this work uses [H + ] as the controlled or process variable; (2) Steady-state balance equations are established for “non-reactants”, which in turn allow one to calculate [H + ] (or [OH - ] ) in CSTR by introducing water product K w , acid dissociation constant K a (or base dissociation constant K b ), and equation of electrical neutrality; (3) First-order dynamic model for the response of [H + ] (or [OH - ]) to a small change in base (or acid) stream flow rate is derived; (4) A schedule of tuning parameters for a proportional-integral (PI) controller is established for various steady states by using internal model control (IMC) method. Simulation results suggest that IMC tuning method yields satisfactory performance of the feedback PI control system in tracking [H + ] setpoint. INTRODUCTION The regulation of pH is a commonly encountered issue in the chemical industry [1-7] and waste water treatment processes [8,9]. One main challenge encountered in the design of pH control system is the nonlinear nature of the pH control process. Other complicating factors include the hydration of weak acid (or weak base), the existence of buffering compounds, and the splitting of watert into H + and OH - [1,4-6,10-13]. As a result, it is very difficult to obtain the dynamic behavior based on mass balances on [H + ] or [OH - ], although some studies used the concept of “excess hydrogen” to overcome this problem under specific conditions [14]. Many researchers have explored a new approach to implement pH control based on the Wiener model (a dynamic linear element for mixing in series with a static nonlinearity or pH) [15]. Many publications adopt advanced control stategies such as fuzzy logic , neural network [5,10,16], model predictive control [5,17] and many other methods [1,7]. The objective of this work is to present a straightforward and simplistic approach to the design of a gain-scheduled proportion- al-integral (PI) controller based on the dynamic model param- eters obtained at various steady-states or operating conditions. Instead of using the highly non-linear pH as the controlled vari- able used by most workers in this area, this work uses [H + ] (or [OH - ] )as the controlled variable in a hypothetical fixed-volume continuous stirred-tank reactor (CSTR) having two inlet streams: (1) weak acid (or weak base) at a fixed concentration and a fixed inlet flow rate, and (2) strong base (or strong acid) at a fixed con- centration but varying flow rates. Steady-state [H + ] (or [OH - ]) for various strong base (or strong acid) flow rates is solved by using mass balance of “non-reactants” or “reaction invariants” under the condition of electrical neutrality. We then derived the transfer functions for the responses of nonreactants and [H + ] (or [OH - ]) to varying base (or acid) flow rate (the “manipulated” variable). Dynamic model paramenters for various steady-state conditions were calculated, followed by the calculation of tuning parameters for a critically-damped feedback PI controller by us- ing internal model control (IMC) method. Finally, a schedule of tuning parameters for adaptive gain-scheduled PI controller is recommended for the range of pH from weakly acidic (or weakly basic) up to the equivalence point. We will first offer detailed simulation for the neutralization of weak acid by strong base. It will then be shown that the equations for the neutralization of weak base by strong acid appear to be analogous to those of the weak acid-strong base case.

Upload: vukhuong

Post on 06-Mar-2018

216 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central Chemical Engineering & Process Techniques

Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward Tuning Method for Weak Acid or Weak Base Neutralization Control System. Chem Eng Process Tech 2(1): 1023.

*Corresponding authorLarry K. Jang, Department of Chemical Engineering, California State University, Long Beach1250 Bellflower Boulevard, Long Beach, CA 90840, USA, Email:

Submitted: February 18 2014

Accepted: 12 May 2014

Published: 13 June 2014

ISSN: 2333-6633

Copyright© 2014 Jang et al.

OPEN ACCESS

Keywords• pH Control• IMC Tuning Method• pH dynamic model• Acid Neutralization

Research Article

Developing a Straightforward Tuning Method for Weak Acid or Weak Base Neutralization Control SystemLarry K. Jang* and Roger C. LoDepartment of Chemical Engineering, California State University, Long BeachLong Beach, CA, USA

Abstract

Control of pH in chemical reactors is a challenging issue due to the complex chemistry and the highly nonlinear nature of the dynamic model. The authors focus on the case in which weak acid (or weak base) is fed to a continuous stirred-tank reactor (CSTR) and neutralized by another stream of strong base (or strong acid). We developed a procedure of finding controller parameters: (1) Instead of pH, this work uses [H+] as the controlled or process variable; (2) Steady-state balance equations are established for “non-reactants”, which in turn allow one to calculate [H+] (or [OH-] ) in CSTR by introducing water product Kw, acid dissociation constant Ka (or base dissociation constant Kb), and equation of electrical neutrality; (3) First-order dynamic model for the response of [H+] (or [OH-]) to a small change in base (or acid) stream flow rate is derived; (4) A schedule of tuning parameters for a proportional-integral (PI) controller is established for various steady states by using internal model control (IMC) method. Simulation results suggest that IMC tuning method yields satisfactory performance of the feedback PI control system in tracking [H+] setpoint.

INTRODUCTIONThe regulation of pH is a commonly encountered issue in the

chemical industry [1-7] and waste water treatment processes [8,9]. One main challenge encountered in the design of pH control system is the nonlinear nature of the pH control process. Other complicating factors include the hydration of weak acid (or weak base), the existence of buffering compounds, and the splitting of watert into H+ and OH- [1,4-6,10-13]. As a result, it is very difficult to obtain the dynamic behavior based on mass balances on [H+] or [OH-], although some studies used the concept of “excess hydrogen” to overcome this problem under specific conditions [14]. Many researchers have explored a new approach to implement pH control based on the Wiener model (a dynamic linear element for mixing in series with a static nonlinearity or pH) [15]. Many publications adopt advanced control stategies such as fuzzy logic , neural network [5,10,16], model predictive control [5,17] and many other methods [1,7].

The objective of this work is to present a straightforward and simplistic approach to the design of a gain-scheduled proportion-al-integral (PI) controller based on the dynamic model param-eters obtained at various steady-states or operating conditions. Instead of using the highly non-linear pH as the controlled vari-

able used by most workers in this area, this work uses [H+] (or [OH-] )as the controlled variable in a hypothetical fixed-volume continuous stirred-tank reactor (CSTR) having two inlet streams: (1) weak acid (or weak base) at a fixed concentration and a fixed inlet flow rate, and (2) strong base (or strong acid) at a fixed con-centration but varying flow rates. Steady-state [H+] (or [OH-]) for various strong base (or strong acid) flow rates is solved by using mass balance of “non-reactants” or “reaction invariants” under the condition of electrical neutrality. We then derived the transfer functions for the responses of nonreactants and [H+] (or [OH-]) to varying base (or acid) flow rate (the “manipulated” variable). Dynamic model paramenters for various steady-state conditions were calculated, followed by the calculation of tuning parameters for a critically-damped feedback PI controller by us-ing internal model control (IMC) method. Finally, a schedule of tuning parameters for adaptive gain-scheduled PI controller is recommended for the range of pH from weakly acidic (or weakly basic) up to the equivalence point.

We will first offer detailed simulation for the neutralization of weak acid by strong base. It will then be shown that the equations for the neutralization of weak base by strong acid appear to be analogous to those of the weak acid-strong base case.

Page 2: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 2/13

NEUTRALIZATION OF WEAK ACID WITH STRONG BASE

Theory

Assume that a CSTR has a liquid volume of V [L] with two inlet streams: Stream 1 containing a weak acid (such as acetic acid denoted as HA) at a concentration of C1 [mol/L] entering the CSTR at a volumetric flow rate of F1 [L/min] and Stream 2 containing a strong base (such as sodium hydroxide NaOH) at a concentration of C2 [mol/L] entering the CSTR at a volumetric flow rate of F2 [L/min]. The product stream is withdrawn at a volumetric flow rate of F1 + F2 (Figure 1). In this system, the reacting species are H+ and OH- that react instantaneously to form water:

12 ; wH OH H O K+ − −+

(1)

where Kw = [H+] [OH-] = 10-14 at 25oC. Other “non-reactants” or “reaction invariatnts” [4,12,16,18-20] are dissociated acid A- and undissociated HA as well as sodium ions, defined as

[ ]A HAα − = + (2)

and

Naβ + = (3)

HA is a mono-protic weak acid with dissociate constant Ka

; aHA H A K+ −+ (4)

where [ ]a

H AK

HA

+ − = (5)

We may express [A-] in terms of α and Ka by combining Eqs. 2 and 5:

[ ] [ ]a

a

K H AK

α+

− +=

(6)

Electroneutrality requires that

[ ] [ ]Na H OH A+ + − − + = + (7)

By substituting Eqs. 3 and 6 into Eq. 7 while recognizing [OH-] = Kw / [ H+], we have

[ ] [ ]w a

a

K KHH K H

β α++ +

+ = + + (8)

which results in the cubic equation for [H+] :

( ) ( )3 2[ ] [ ] 0a a w a w aH K H K K K H K Kβ β α+ + + + + + − − − = (9)

With Eq. 9, we may solve for the concentration of hydrogen ions in the CSTR based on the concentrations of non-reactants along with Ka and Kw. The rationale behind the use of concentrations of non-reactants has been discussed in the literature [19]. Basically, when dealing with issues of acid-base neutralization, it is very difficult to construct mass balances for [H+] or [OH-] due to the formation of H2O as the neutralization product as well as dissociation of a weak acid, the extent of which in turn depends on the pH of the solution. In constrast, the concentrations of non-reactants α and β undergo simple dilution in the CSTR. By using Eq. 9, [H+] can be solved, which in turn determines the values of [A-] and [HA]. Therefore, this approach of using the concentrations of non-reactants provides a convenient means to predict the steady-state condition as well as the dynamic responses in the transient state.

Although most published work uses highly nonlinear pH as the process variable, the derivation below uses [H+] as the process variable to remove one key nonlinearity in the acid neutralization process.

Steady-state Mass Balance for Non-reactants

Since HA and A- originally come from the feed of the acidic

Figure 1 Feedback control schematic diagram of weak acid neutralization by using feedback [H+] controller in a CSTR.

Page 3: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 3/13

stream with inlet concentration of undissociated HA at C1,ss :

( )1, 1, 1, 2,0ssss ss ss ss ss

dV F C F Fdtα α= = − + (10)

Similarly, Na+ originally comes from the feed of the basic stream with inlet concentration of NaOH at C2,ss :

( )2, 2, 1, 2,0ssss ss ss ss ss

dV F C F Fdtβ β= = − + (11)

where the subscript “ ss “ denotes initial steady-state condition. It is obvious from Eqs. 10 and 11 that

1, 1,

1, 2,( )ss ss

ssss ss

F CF F

α =+

(12)

and

2, 2,

1, 2,( )ss ss

ssss ss

F CF F

β+

= (13)

Therefore, with the knowledge of flow rates and inlet concentrations of weak acid and strong base, we may solve for steady-state [H+]ss by combining Eqs. 9, 12, and 13. In a sense, Eq. 9 may be regarded as the “titration equation” in terms of concentrations of non-reactants.

Open-loop Transient-state Mass Balance for Non-reactants

For simplicity, it is assumed in the following derivation that the only operating condition that may vary with time is the flow rate of strong base F2. This situation may be encountered when a weak acid with constant concentration C1,ss is fed at a constant flow rate of F1,ss, while the strong base (with constant feed concentration C2,ss) may vary its flow rate F2 in order to track the [H+] set point. In this situation, we may write transient-state equations

( )1, 1, 1, 2ss ss ssdV F C F Fdtα α= − + (14)

( )2 2, 1, 2ss ssdV F C F Fdtβ β= − + (15)

By substracting Eq. 10 from Eq. 14, linearizing the non-linear term (∆F2 α ) = (F2α − F2,ssαss) ~

F2,ss ∆α + α ss ∆F2 (where ∆α ( = α – α ss ) and ∆F2 ( = F2 – F2,ss )), and applying Laplace transform to the resultant differential equation in deviation quantities (∆α and ∆F2 ), we have the following transfer function:

( )( )1

2 21, 2, 1

1

αα α αττ

−∆ = − = ∆ = ∆

++ +pss

sspss ss p

KF F

sF F s (16)

where

11, 2,

ssp

ss ss

KF F

α−=

+ (17)

Likewise, by subtracting Eq. 11 from Eq. 15 and following the similar procedure of linearization and Laplace transform, we have the following transfer function:

( )( )22,

2 21, 2,

11

ββ β β

ττ+

−∆ = − = ∆ = ∆

++pss ss

sspss ss p

KCF F

sF F s (18)

where 2,2

1, 2,

ss ssp

ss ss

CK

F Fβ−

=+

(19)

1, 2,p

ss ss

VF F

τ =+

(20)

Open-loop Transient-State Response of [H+]

The above derivations revealed that ∆ α/∆F2 and ∆β/∆F2 are both first-order transfer functions. If a small change in ∆F2 is made, the above equations will predict the transient-response of ∆α and ∆β. If a small step change in ∆F2 with magnitude A is made, i.e.,

( )2AF ss

∆ = (21)

We may find the time-domain response equations for ∆α and ∆β from any published Laplace transform table:

( ) 1 1 exppp

tt AKατ

− ∆ = − (22)

( ) 2 1 exp pp

tt AKβτ

− ∆ = − (23)

By applying Eq. 9, we may predict the transient response of [H+] in the following manner: First, we may write a steady-state equation for Eq. 9 and solve for steady-state [H+] ss:

3 2[ ] ( )[ ] ( )[ ] 0ss ss a ss ss a w a ss ss w aH K H K K K a H K Kβ β+ + ++ + + − − − = (24)

Second, Eq. 24 may be subtracted from Eq. 9 to yield the linearized result:

2

2

3[ ] 2 [ ] [ ]

[ ] 2 [ ]

[ ]

[ ] 0

ss ss ss

ss a ss

a ss a ss w

a ss a ss

H H H H

H K H H

K H K H K H

K H K H

β

β

β β

α α

+ + + +

+ + +

+ + +

+ +

∆ + ∆ + ∆ + ∆ +

∆ + ∆ − ∆ − ∆ − ∆ =

(25)

or

[ ] ( ) /H P Q+∆ = − (26)

where

( ) 2( ) [ ] [ ] [ ]ss a ss a ssP s orP t H K H K Hβ β α+ + += ∆ + ∆ − ∆ (27)

23[ ] 2 [ ]

2 [ ]ss ss ss

a ss a ss w a ss

Q H H

K H K K K

β

β α

+ +

+

= + +

+ − − (28)

Finally, by combining Eqs. 12, 13, 16-20, and 22-26, we may obtain the transient-state response function for ∆[H+] in terms of ∆F2 and initial steady-state or operating conditions of F1,ss, F 2,ss, C1,ss, and C2,ss. Since ∆ [H+] is a linear combination of ∆α and ∆β, both of which being first-order models, we expect the resultant transfer function to be first-order model as well:

21p

p

KH F

sτ+ ∆ = ∆ +

(29)

and

( ) 1 exppp

tH t AKτ

+ − ∆ = −

(30)

Page 4: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 4/13

where the magnitude of step change in ∆F2 is A , and the process gain Kp can be found from the calculated results (Eq. 26):

[ ]( )p

H tKA

+∆ → ∞= (31)

Or, we may combine Eqs. 16-19 and 26-28 to yield the analytical expression for Kp:

( )22 2 1[ ] [ ] [ ]ss p a ss p a ss p

p

H K K H K K H KK

Q

+ + +− + −=

(32)

Prediction of the Performance of A Closed-loop Feedback PI Controller

Assuming that the process is controlled by a feedback controller with [H+] as the controlled (or process) variable and base flow rate F2 as the manipulated variable, we may describe the block diagram of the the closed-loop control system in Figure 2. It is also assumed that a proportional-integral (PI) controller is used to adjust the base stream flow rate ∆F2 according to error ε and the transfer function Gc for the controller :

2 11c cI

FG Ksτ

∆= = +

(33)

where

Kc= Proportional Gain of the PI controller

𝛕i = Integral Time of the PI controller

[ ] [ ]sp sperror H H H H+ + + + = = − = ∆ − ∆

The subscript sp denotes setpoint. From Eq. 29, we may define the neutralization process model Gp as

2

[ ]1

pp

p

KHGF sτ

+∆= =

∆ + (34)

With the process model Gp defined, we may derive the the transfer function for the closed-loop setpoint tracking ∆[H+]/∆[H+]sp under the assumption that both sensor and actuator respond instantaneously to their respective inputs (Ga = 1, Gs = 1 ) [21]

[ ][ ] 1

c p

sp c p

G GHH G G

+

+

∆=

∆ + (35)

2 2

[ ] 1[ ] 2 1

I

sp n n

H sH s s

ττ ζτ

+

+

∆ +=

∆ + + (36)

where

p In

c pK Kτ τ

τ = (37)

12

c p I

p c p

K KK Kτζ

τ+

= (38)

Therefore, if a step change in ∆[H+]sp with magnitude B is made, as shown below

[ ] ( )spBH ss

+∆ = (39)

the resultant response of ∆[H +] would be a combination of the response of a second-order process to an impulse input with magnitude of (B τI ) plus that of a second-order process to a step input of maginutde B:

( )

2 2 2 2

2 2 2 2

1[ ] [ ] [ ]2 1 2 1

2 1 2 1

[ ] [ ]

Isp sp

n n n n

I

n n n n

impulse step

sH H Hs s s s

B Bs s s s s

H H

ττ ζτ τ ζττ

τ ζτ τ ζτ

+ + +

+ +

∆ = ∆ + ∆+ + + +

= ++ + + +

= ∆ + ∆

(40)

The Impulse Component and the step component have the following well-established time-domain response equations:

Impulse component

( )2

2

exp11; [ ] sin

1n

impulse Inn

ttfor H t B

ζτ ζ

ζ τττ ζ

+

− − < ∆ = −

(41)

( ) 21; [ ] expimpulse In n

t tfor H t Bζ ττ τ

+ −= ∆ =

(42)

( )2

2

exp1 1; [ ] sinh

1

ζτ ζ

ζ τττ ζ

+

− − > ∆ = −

nimpulse I

nn

ttfor H t B

(43)

Figure 2 Feedback control block diagram for the acid neutralization process. Here Gc = controller transfer function, Gp = process model, ε = error, and Ga (actuator) = Gs (sensor) = 1 for this simulation.

Page 5: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 5/13

Step Component

( )

2 21

2

1; [ ]

exp1 11 sin tan

1

ζ

ζτ ζ ζ

τ ζζ

+

< ∆ =

− − − − + −

step

n

n

for H t

ttB

(44)

( ) 1; [ ] 1 1 expζτ τ

+ −= ∆ = − +

step

n n

t tfor H t B (45)

( )2 2

2

1; [ ]

1 11 expexp cosh sinh1

step

n n n

for H t

t ttB

ζ

ζ ζζ ζτ τ τζ

+> ∆

− −− = − + −

(46)

Equations 35-46 are modified from those for the response of a first-order process to a step change in setpoint under feedback PI control covered in any standard undergraduate textbooks [21,22].

IMC Tuning Rule

There are many tuning rules available for finding appropriate tuning parameters Kc and τI. Since the process model Gp is purely first order, tuning methods that requires a deadtime component in the process model are not appropriate for this purpose. Therefore, the internal model controller (IMC) tuning rule is chosen for this work. Let τc be the desired time constant for the closed-loop response, the IMC tuning rule recommends that

pc

c p

KK

ττ

= (47)

τI = τp (48)

[23]. When one chooses a certain τc , it is expected that the closed response will reach the new steady state within 4 or 5 times of τc .

Neutralization of Weak Base with Strong Acid

Assume that a CSTR has a liquid volume of V [L] with two inlet streams: Stream 1 containing mono-basic weak base (such as ammonia NH3 denoted as B) at a concentration of C1 [mol/L] entering the CSTR at a volumetric flow rate of F1 [mol/min] and Stream 2 containing strong acid (such as hydrogen chloride HCl) at a concentration of C2 entering the CSTR at a volumetric flow rate of F2. The product stream is withdrawn at a volumetric flow rate of F1 + F2 . In this system, the reacting species are H+ and OH- that reacts to form water:

12 ; wH OH H O K+ − −+ (49)

where Kw = [H+] [OH-] = 10-14 at 25oC. Other “non-reactants” are conguated acid BH+and unreacted base B as well as chloride ions. Define

[ ]BH Bα + = + (50)

and

Clβ − = (51)

Since B is a mono-basic weak base with dissociate constant Kb

2 ; bB H O BH OH K+ −+ + (52)

where ([ ][ ])[ ]b

BH OHKB

+ −

= (53)

We may express [BH+] in terms of α and Kb by combining Eqs. 50 and 53:

[ ] [ ]b

b

K OH BHK

α−

+ +=

(54)

Electroneutrality requires that

[ ] [ ]Cl OH H BH− − + + + = + (55)

By substituting Eqs. 51 and 54 into Eq. 55 while recognizing [H +] = Kw / [ OH -], we have

[ ] [ ]w b

b

K KOHOH K OH

β α−− −

+ = + + (56)

which results in the final cubic equation of [OH-] :

3 2[ ] ( )[ ] ( )[ ] 0β β α− − −+ + + − − − =b b w b w bOH K OH K K K OH K K (57)

If Eqs. 1-9 are compared with Eqs. 49-57, it is interesting to find that analogous equations are obtained. Due to this analogy, the equations from the weak acid-strong base case can be applied to the weak base-strong acid case with the variables replaced according to Table 1.

RESULTS AND DISCUSSIONSNeutralization of Weak Acid by Strong Base

Steady-state Condition: The calculations were performed based on a CSTR with the parameters summarized in Table 2 at 25oC. Again, C1,ss is the concentration of acetic acid in the inlet acidic stream and C2,ss is that of sodium hydroxide in the inlet base stream (Figure 1). Assume that a CSTR with V = 10 L, inlet acetic acid concentration C1,ss = 0.1 mol/L, Ka = 1.8 x 10-5 for acetic acid, Kw = 1 x 10-14 at 25oC, inlet acetic acid stream flow rate F1,ss = 2 L/min, inlet NaOH concentration C2,ss = 0.1 mol/L.

The steady-state solutioins to Eqs. 12 (for αss), 13 (for βss), 17 (for Kp1 ), 19 (for Kp2 ), 24 (for [H+]ss ) for three steady-state inlet NaOH steam flow rates of 1.0, 1.4, and 1.8 L/min are summarized in the Table 3.

Care has to be taken when solving for [H+]ss by using the cubic equation Eq. 24. In this work, EXCEL Solver Tool was used to find the root to the equation. Since the coefficients of the terms may be very small, it is essential to boost the coefficients by a factor of 1010 or more. Also, the precision and tolerance limit need to be adjusted to suit this case. Otherwise, the Solver may give “0.00” or a negative value as the solution. The pHss vs. volumetric flow rate of base stream F2 is presented in Figure 3.

Page 6: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 6/13

Weak acid neutralized by strong base (Eqs. 1-48)

Weak base neutralized by strong acid (Eqs. 49-57 and more)

F1 Inlet flow rate of weak acid stream Inlet flow rate of weak base stream

C1 Inlet concentration of weak acid [HA] Inlet concentration of weak base [B] or [NH3]

F2 Inlet flow rate of strong base Inlet flow rate of strong acid

C2 Inlet concentration of strong base [NaOH] Inlet concentration of strong acid [HCl]

α [A-] + [HA] [BH+] + [B]

β [Na+] [Cl-]

[H+] or [OH-] [H+] [OH-]

pH or pOH pH pOH

Acid or base dissociation constant Ka ( = 1.8 x 10-5 for acetic acid in water) Kb ( = 1.8 x 10-5 for ammonia in water)

Water product Kw Kw

Table 1: Table of analogy between the weak acid-strong base case and the weak base-strong acid case.

Ka Kw V (L) F1,ss (L/min) C1,ss (mol/L) C2,ss

1.8 x 10-5 1.0 x 10-14 10 2.0 0.1 0.1

Table 2: Steady-state Conditions for Acetic Acid-NaOH Reaction in CSTR.

Figure 3 Titration curve for 0.1 M acetic acid neutralized by 0.1 M NaOH. The flow rate of the acid is fixed at 2 L/min, and that of the base ranges from 0.5 between 2.5 L/min. The CSTR has a constant volume of 10 L.

F2,ss (L/min) αss (mol/L) βss (mol/L) [H+]ss (mol/L) pHss Kp1 Kp2

1.0 0.0667 0.0333 1.80x10-5 4.75 -0.0222 0.0222

1.4 0.0588 0.0412 7.71x10-6 5.11 -0.0173 0.0173

1.8 0.0526 0.0474 2.00x10-6 5.70 -0.0139 0.0139

Table 3: Solutions for steady-state inlet NaOH stream flow rates.

Open-loop Transient Response: By using Eqs. 22, 23, and 26, the dynamic responses of ∆α, ∆β, ∆[H+] and [H+] (= [H+]ss + ∆[H+]) are calculated and presented in Figures 4-6. With the calcu-lated ∆[H+](t∞) , the Kp values can be calculated from Eqs. 31 or 32. Then the ultimate [H+]new ss can be calculated as [H+]new ss ( = [H+]ss + ∆[H+](t∞)). The results are summarized in Table 4. It is evident that the process gain Kp depends on initial steady state, which is characteristic of non-linear models. It is also shown that the change of pH is more pronounced as the initial steady-state base flow rate F2,ss is increased.

Closed-loop Response Using Feedback PI Controller: By choosing a reasonable closed-loop time constant τc = 3 min, the

IMC tuning rule (Eqs. 47 and 48) would recommend the tuning parameters for each initial steady-state, as summarized in Table 5.

To predict the performance of a PI controller at different initial steady states, we choose the size of setpoint change B corresponding to the expected ultimate changed

(∆[H+]sp = [H+]new ss – [H+]ss)

for each range of base flow rate change (F2: 1.01.1, 1.41.5, or 1.81.9 L/min). We designed a Visual Basic procedure to calculate ∆[H+] as well as [H+] versus t, accroding to the resultant ζ value in Eqs. 37-46. The simulation is done for each initial steady state using four sets of controller tuning parameters with the

Page 7: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 7/13

Figure 4 Simulated response of [H+] to the change in the base flow rate from 1.0 to 1.1 L/min.

Figure 5 Simulated response of [H+] to the change in the base flow rate from 1.4 to 1.5 L/min.

Figure 6 Simulated response of [H+] to the change in the base flow rate from 1.8 to 1.9 L/min.

Page 8: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 8/13

first one derived from IMC tuning rule and the other three having Kc or τI changed from the original IMC settings. The results are summarized in Table 6 and Figures 7-12.

From Figures 7 and 8, it is found that all four sets of tuning parameters provide satisfactory patterns of response for the initial steady state F2,ss of 1.0 L/min or [H+]ss of 1.80 x10-5 mol/L. The response pattern using IMC tuning rule with τC = 3 minutes offers almost critically-damped response (ζ ~ 1 ). Its response time is about the same as that of other three sets of controller settings without showing any extent of overshooting. Of course, we may make |Kc | somewhat greater than 30900 by choosing a more aggressive closed-loop time constant τc (say 1 or 2 min.) to allow some extent of overshooting.

Near Equivalence Point: Question may arise if one wishes to move pH further toward equivalence point. Using our approach, the process gain Kp (Eq. 31) can also be calculated from two adjacent points on the titration curve as pH is approaching the equivalence point (Table 7). The value of Kp would be small (due to small ∆ [H+] near equivalence point), which would result in large Kc required theoretically as shown in Table 7. The required proportional gain Kc is -8.950 x 104 (for a critically damped feedback control with τc = 3 min) whose absolute value is only some what greater than those in the weakly acidic range (Table 6).

Gain Scheduled PI Controller: The above calculations reveal that a feedback PI controller for regulating [H+] by manipulating the flow rate of strong base requires different proportional gains and integral times as operating condition varies. Many modern-day control algorithms offer one form of adaptive control that would automatically change tuning paramenters to suit a wider range of operating conditions. One such widely used algorithm is the gain-scheduled PI controller. This type of PI controller allows the users to build a schedule of tuning parameters at several operating conditions. As the operating condition changes, the algorithm would use linear interpolation or extrapolation to find the appropriate Kc and τI for any operating conditions. Alternatively, the algorithm can simply pick the control parameters corresponding to the operating condition at the lower end of the appropriate range. Based on this work, we may build a schedule as summarized in Table 8 by assuming closed-loop time constant τc of 3 min. The resultant pattern of closed-loop feedback control would be critically damped, which would have the advantage of avoiding overshooting near the equivalence point.

From Tables 5-8, it is found that the value of process gain Kp and the required proportional gain Kc of the PI controller still vary somewhat with operating condition, which is typical of nonlinear process models. However, the exent of variation of Kc is considered mild as compared with that reported in literature when pH is used as the controlled variable. Our work uses [H+] instead of pH as the controlled (or process variable) which

F2,ss (L/min) F2, new ∆F2 τp (min) ∆[H+] (t∞) [H+] new ss pH new ss Kp

1.0 1.1 0.1 3.33 -3.59 x 10-6 1.44x10-5 4.84 -3.59x10-5

1.4 1.5 0.1 2.94 -1.84 x 10-6 5.87x10-6 5.23 -1.84x10-5

1.8 1.9 0.1 2.63 -1.11 x 10-6 8.89x10-7 6.05 -1.11x10-5

Table 4: 1st-order model parameters for transient response of [H+] at various initial steady states.

Initial Steady State IMC Tuning Parameters

F2,ss (L/min) Kp τp (mins) τc (arbitrally chosen) Kc τI (min)

1.0 -3.59 x 10-5 3.33 3 -30900 3.33

1.4 -1.84 x 10-5 2.94 3 -53300 2.94

1.8 -1.11 x 10-5 2.63 3 - 79000 2.63

Table 5: Tuning parameters for a PI controller by IMC method.

F2,ss (L/min) [H +]ss (mol/L) B = ∆[H+]sp (mol/L) Kc τΙ (min)Closed-loop 2nd-order

parameters Plots of [H+] or pH vs. t

τn ζ

1.0 1.80x10-5 -3.59 x 10-6

-30900 3.33 3.16 1.00

Figs. 7 & 8-20000 2.00 3.05 0.785-20000 1.00 2.15 0.555-10000 1.00 3.05 0.621

1.4 7.71x10-6 -1.84 x 10-6

-53300 2.94 2.97 1.00

Figs. 9 & 10-20000 2.0 4.00 0.93-20000 1.0 2.83 0.658-10000 1.0 4.00 0.805

1.8 2.00x10-6 -1.11 x 10-6

-79000 2.63 2.81 1.00

Figs. 11 & 12-20000 2.00 4.87 1.13-2000 1.00 3.44 0.800-1000 1.00 4.87 1.03

Table 6: Net 2nd-order model parameters for a feedback PI control system. The italized bold numbers are based on IMC tuning method.

Page 9: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 9/13

Figure 7 Simulated response of [H+] to the step change of the set point by manipulating the base (0.1 M NaOH) feed rate for F2,ss = 1.0 L/min.

Figure 8 Simulated pH responses to the step change of the set point by manipulating the base (0.1 M NaOH) feed rate for F2,ss = 1.0 L/min.

-53300

Figure 9 Simulated response of [H+] to the step change of the set point by manipulating the base (0.1 M NaOH) feed rate for F2,ss = 1.4 L/min.

Page 10: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 10/13

Figure 10 Simulated pH responses to the step change of the set point by manipulating the base (0.1 M NaOH) feed rate for F2,ss = 1.4 L/min.

-53300

Figure 11 Simulated response of [H+] to the step change of the set point by manipulating the base (0.1 M NaOH) feed rate for F2,ss = 1.8 L/min.

Figure 12 Simulated pH responses to the step change of the set point by manipulating the base (0.1 M NaOH) feed rate for F2,ss = 1.8 L/min.

Page 11: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 11/13

Base Flow Rate F2,ss (L/min) Steady-state [H+], mol/L Steady-state pH Kp ( ∆[H+]/∆F2 ) τp (min) Kc τΙ (min)

1.92 7.50 x 10-07 6.13-9.42 x 10-06 2.53 -8.95 x 104 2.53

1.99 9.05 x 10-8 7.04

Table 7: PI Controller Settings for τc = 3 min near equivalence point by IMC method that would yield critically-damped response (with ζ ~ 1).

[H+]ss (mol/L) Kc τΙ (min)

1.80x10-5 -30900 3.33

7.71x10-6 -53300 2.94

2.00x10-6 -79000 2.63

7.50 x 10-7 -89500 2.53

Table 8: Gain-scheduled PI Controller Settings for τc = 3 min by IMC Method for critically-damped feedback control.

greatly reduces the extent of non-linearity in the control system.

This work is based on the system with well known chemistry whose titration curve (Figure 3 and Eq. 9). If one would use our approach to tackle system with unknown chemistry, the first step would be to conduct acid-base titration experiements in the laboratory to produce titration curves, followed by converting pH scale to [H+] scale. Then, the practical Kp value may be easily calculated from Eq. 31 for various points on the titration curve where the horizontal axis may be easily converted from (base/acid volume ratio) to (base/acid flow rate ratio), or even base flow rate for a given acid flow rate. Note that if the horizontal axis is base flow rate, then Kp is simply the slope or ∆[H+]/∆ (base flow rate) on this titration curve. Finally, the tuning parameters would be obtained by the procedure outlined in this work with the knowledge of flowrates of the streams and the volume of CSTR.

Neutralization of Weak Base by Strong Acid

Due to the analogy between the weak acid-strong base case and the weak base-strong acid case, we may easily “map” the results from the former case to the latter case with variables in the second column of Table 1 replaced by those in the third column. Incidentally, the base dissociation constant of NH3 (Kb = 1.8 X 10-5), which is the same as the acid dissociation constant of acetic acid (Ka = 1.8 x 10-5). Therefore, Figures 3-12 may be applied to the case of neutralization of NH3 with HCl by replacing variables according to Table 1.

We are currently conducting experimental work using a mini CSTR with automatic monitoring and control system to verify the model and the tuning procudrue developed in this work. The Internet-based control system using LabVIEW hardware and software, as well as experimental results, will be reported in our subsequent work. Also, we are analyzing the process dynamics of using strong acid to neutralize weak base, as well as acid-base neutralization with any type titration curve.

CONCLUSIONSOur work may be summarized as follows:

(1) A procedure of calculating steady-state conditions for the process of weak acid neutralization by strong base in a CSTR is established by using mass balance on nonreactants under the condition of electrical neutrality with known acid-dissociation constant and water product.

(2) Gains and time constant for the first-order dynamic models of nonreactants and [H+] around various steady states (created at various base flow rates) can be calculated based on the transient-state response models developed in this work.

(3) The performance of a feedback control system by using a PI controller can be predicted. The tuning parameters for a gain-scheduled PI controller can be computed from IMC tuning rule by using the dynamic model parameters obtained in this work. The schedule of tuning parameters for critically damped feedback control is applicable in the weakly acidic range as well as near the equivalence point without causing overshooting of pH.

(4) Due to the analogy between the case of weak acid neutralized by strong base and that of weak base neutralized by strong acid, the dynamic models and tuning rule developed for the former can be applied to the latter with variables replaced according to Table 1 of this work.

In this work, we successfully developed a procedure of predicting the dynamics of neutralization process of weak acid (with strong base) and weak base (with strong acid). This model allows the user to futher tune a feedback PI controller based on well established theories. The results from this work can be easily incorporated in the curriculum of undergraduate process control class.

ACKNOWLEDGMENTThis work is partially supported by the Faculty Sabbatical

Leave Award (Jang) and Research, Scholarship, and Creative Activity Award (Lo) from California State University Long Beach.

NOMENCLATURE A The magnitude of step change in F2 , L/min

[A-] Molar concentration of dissociated acetate ions, mol/L

B Mgnitude of step change in [H+]sp (or [OH-]sp), mol/L

[B] Molar concentration of weak base NH3 , mol/L

C1 Molar concentration of inlet acetic acid (or ammonia) stream, mol/L

C2 Molar concentration of inlet NaOH (or HCl) stream, mol/L

Page 12: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 12/13

F1 Volumetric flow rate of acetic acid (or ammonia) stream, L/min

F2 Volumetric flow rate of NaOH (or HCl) stream, L/min

Gc Controller transfer function

Gp Open-loop transfer function for the process

[H+] Molar concentration of hydrogen ions, mol/L

[HA] Molar concentration of un-dissociated acetic acid, mol/L

IMC Internal model control tuning method

Ka Acid dissociation constant of acetic acid = 1.8 x 10-5 at 25 oC

Kb Base dissociation constant of ammonia = 1.8 x 10-5 at 25 oC

Kc Proportional gain of a feedback PI controller

Kp Open-loop process gain ( = ∆ [H+] / ∆F2 or ∆ [OH-] / ∆ F2 )

Kp1 Gain for α ( = ∆ α /∆ F2 )

Kp2 Gain for β ( = ∆ β / ∆ F2 )

Kw Water product = [H+] [OH-] = 1.0 x 10-14 at 25oC

[OH-] Molar concentration of hydroxide ions, mol/L

P Quantity defined by Eq. 27

Q Quantity defined by Eq. 28

t Time, min

V Volume of CSTR reactor, L

Subscripts

ss Steady state or operating condition

sp Setpoint

step The step-response component of a overall response

impulse The impulse-response component of a overall response

Greek Letters

α Summation of molar concentions of acetate ions, dissociated and undissociated = [A-] + [HA] (or summation of molar concentration of base and its conjugated acid = [B] + [BH+] ) in the CSTR or outlet stream

β Molar concentration of sodium ions [Na+] (or chloride ions [Cl-] ) in the CSTR or outlet stream, mol/L

∆ Change from original or steady-state values

ε Error, [H+] sp - [H+] (or [OH-] sp– [OH-] )

τp Open-loop process time constant ( = V / (F1,ss + F2,ss ) ) , min

τc Desired closed-loop time constant for a feedback loop in IMC method, min

τΙ Integral time for a feedback PI controller, min

τn Time constant for a second-order closed-loop transfer function, min

ζ Damping factor for a second-order closed-loop transfer function

REFERENCES1. Abdullah NHS, Karsiti MN, Ibrahim R. A review of pH neutralization

process control. In: 2012 4th International Conference on Intelligent and Advanced Systems (ICIAS). Presented at the 2012 4th International Conference on Intelligent and Advanced Systems (ICIAS). 2012; 2: 594–598.

2. Ali E. pH control using PI control algorithms with automatic tuning method. Chem Eng Res Des. 2001; 79: 611–620.

3. Faanes A, Skogestad S. pH-neutralization: Integrated process and control design. Comput Chem Eng. 2004; 28: 1475–1487.

4. Hall RC, Seborg DE. Modelling and Self-Tuning Control of a Multivariable pH Neutralization Process Part. In: Modelling and Multiloop Control. Presented at the American Control Conference. 1989; 1822–1827.

5. Kavsˇek-Biasizzo K, Sˇkrjanc I, Matko D. Fuzzy predictive control of highly nonlinear pH process. Comput Chem Eng. 1997; 21: S613–S618.

6. Lee J, Lee SD, Kwon YS, Park S. Relay feedback method for tuning of nonlinear pH control systems. AIChE J. 1993; 39: 1093–1096.

7. Ylén JP. Measuring, modelling and controlling the pH value and the dynamic chemical state [dissertation]. Helsinki University of Technology. 2001.

8. Horiuchi JI, Shimizu T, Tada K, Kanno T, Kobayashi M. Selective production of organic acids in anaerobic acid reactor by pH control. Bioresour Technol. 2002; 82: 209–213.

9. Ishak AA, Hussain MA, Elkanzi E. Modeling and Control Studies of Wastewater Neutralization Process. In: Proceeding to Brunei International Conference on Engineering & Technology, Bandar Seri Begawan. 2001; 221-231.

10. Azlan Hussain M. Review of the applications of neural networks in chemical process control—simulation and online implementation. Artif Intell Eng. 1999; 13: 55–68.

11. Gupta SR, Coughanowr DR. On-line gain identification of flow processes with application to adaptive pH control. AIChE J. 1978; 24: 654–664.

12. Henson Michael A, Seborg DE. Adaptive nonlinear control of a pH neutralization process. Control Syst. Technol. IEEE Trans. 1994; 2: 169–182.

13. Norquay SJ, Palazoglu A, Romagnoli JA. Application of Wiener model predictive control (WMPC) to a pH neutralization experiment. Control Syst Technol. IEEE Trans. 1999; 7: 437–445.

14. Buchholt F, Kümmel M. Self-tuning control of a pH-neutralization process. Automatica. 1979; 15: 665–671.

15. Kalafatis A, Arifin N, Wang L, Cluett WR. A new approach to the identification of pH processes based on the Wiener model. Chem Eng Sci. 1995; 50: 3693–3701.

16. Rahmoune LSSF, Baddari VTK. Modeling pH Neutralization Process using Fuzzy Dynamic Neural units Approaches. 2011.

17. Pröll T, Nazmul Karim M. Model-predictive pH control using real-time NARX approach. AIChE J. 1994; 40: 269–282.

18. Ali E, Suliman M. Experimental set uP of pH Neutralization in CSTR with Application of PI Controller.

19. Gustafsson TK, Waller KV. Dynamic modeling and reaction invariant

Page 13: Developing a Straightforward Tuning Method for Weak Acid ... · PDF fileCentral Chemical Engineering & Process Techniques. Cite this article: Jang LK, Lo RC (2014) Developing a Straightforward

Central

Jang et al. (2014)Email:

Chem Eng Process Tech 2(1): 1023 (2014) 13/13

Jang LK, Lo RC (2014) Developing a Straightforward Tuning Method for Weak Acid or Weak Base Neutralization Control System. Chem Eng Process Tech 2(1): 1023.

Cite this article

control of pH. Chem Eng Sci. 1983; 38: 389–398.

20. Ibrahim R. Practical modelling and control implementation studies on a pH neutralization process pilot plant [dissertation]. University of Glasgow, 2008.

21. Coughanowr DR, LeBlanc SE. Process systems analysis and control. 3rd

edn. McGraw-Hill Higher Education. Boston. 2009.

22. Seborg DE, Edgar Thomas F, Mellichamp Duncan A, Doyle Francis J III. Process dynamics and control, 3rd edn. New Jeresy: John Wiley & Sons, Hoboken, 2011.

23. Riggs JB, Karim MN. In: Chemical and Bio-Process Control. Lubbock: Ferrett Publishing. 2006; 317.