PH Calculation With CO2 Addition
PH Calculation With CO2 Addition
The pH, alkalinity and total inorganic carbon algorithms that are incorporated into WASP come
directly from QUAL2K & QUAL2Kw (Chapra, Pelletier and Tao, 2008). Every effort was made
to insure that the implementation of the pH calculation within WASP is consistent with
QUAL2K/.
The following sections were mostly taken from the QUAL2K documentation and where
appropriate the equations were modified to match the assumptions and kinetic implementations
in WASP.
2 pH Calculation
The following equilibrium, mass balance and electroneutrality equations define a freshwater
dominated by inorganic carbon (Stumm and Morgan 1996),
[HCO 3 ][H ]
K1 (1)
[H 2 CO *3 ]
K w [H ][OH ] (3)
where K1, K2 and Kw are acidity constants, Alk = alkalinity [eq L1], H2CO3* = the sum of
dissolved carbon dioxide and carbonic acid, HCO3 = bicarbonate ion, CO32 = carbonate ion, H+
= hydronium ion, OH = hydroxyl ion, and cT = total inorganic carbon concentration [mole L1].
The brackets [ ] designate molar concentrations.
Note that the alkalinity is expressed in units of eq/L for the internal calculations. For input and
output, it is expressed as mgCaCO3/L. The two units are related by
Alk (mgCaCO 3 /L) 50,000 Alk (eq/L) (6)
The equilibrium constants are corrected for temperature by
Harned and Hamer (1933):
4787.3
pK w = 7.1321log10 (Ta ) 0.010365Ta 22.80 (7)
Ta
K1[H ]
1 (11)
[H ] 2 K1[H ] + K1 K 2
K1 K 2
2 (12)
[H ] K1[H ] + K1 K 2
2
where 0, 1, and 2 = the fraction of total inorganic carbon in carbon dioxide, bicarbonate, and
carbonate, respectively. Equations (3), (11), and (12) can be substituted into Eq. (4) to yield,
Kw
Alk = (1 2 2 )cT
[H ] (13)
[H ]
Thus, solving for pH reduces to determining the root, {H+}, of
Kw
f ([H ]) = (1 2 2 )cT
[H ] Alk (14)
[H ]
where pH is then calculated with
pH log10[H ] (15)
The root of Eq. (14) is determined with a numerical method. The user can choose bisection,
Newton-Raphson or Brent’s method (Chapra and Canale 2006, Chapra 2007) as specified on the
QUAL2K sheet. The Newton-Raphson is the fastest but can sometimes diverge. In contrast, the
bisection method is slower, but more reliable. Because it balances speed with reliability, Brent’s
method is the default.
where kac(T) = the temperature-dependent carbon dioxide reaeration coefficient [/d], and [CO2]s
= the saturation concentration of carbon dioxide [mole/L].
The stoichiometric coefficients are computed as1
gC moleC m3
rcca rca (18)
mgA 12 gC 1000 L
1 gC moleC m3
rcco (19)
roc gO 2 12 gC 1000 L
where KH = Henry's constant [mole (L atm)1] and pCO2 = the partial pressure of carbon dioxide
in the atmosphere [atm]. Note that the partial pressure is input as a constant or as an
1
The conversion, m3 = 1000 L is included because all mass balances express volume in m3, whereas total inorganic
carbon is expressed as mole/L.
environmental time function in units of ppm. The program internally converts ppm to atm using
the conversion: 106 atm/ppm.
The value of KH can be computed as a function of temperature by (Edmond and Gieskes 1970)
2385.73
pK H = 0.0152642Ta 14.0184 (21)
Ta
The partial pressure of CO2 in the atmosphere has been increasing, largely due to the combustion
of fossil fuels (Error! Reference source not found.). Values in 2007 are approximately 103.416
atm (= 383.7 ppm).
where c'T,i1 = the concentration of inorganic carbon entering the element [mgO2/L], where
CO 2,s,i 1 2 cT ,i 1
c'T ,i 1 (1 2 )cT ,i 1 CO 2,s,i 1 (24)
rd
where rd is calculated from the dam reaeration algorithm for dissolved oxygen.
NO3 Increase
SRP Increase
SRP Decrease
NO3 Increase
NO3 Increase
It should be noted that the alkalinity calculations in advanced eutrophication module of WASP
do not include the influences of metals.
2.5 Nitrification
Nitrification utilizes ammonium and creates nitrate. Hence, because a positive ion is taken up
and a negative ion is created, the alkalinity is decreased by two equivalents. The change in
alkalinity can be related to the nitrification rate by
2 eq moleN gN 50,000mgCaCO 3 gN
S a , nitr Nitrif (25)
moleN 14.007gN 10 gN
6
1 eq Ld
2.6 Denitrification
Denitrification utilizes nitrate and creates nitrogen gas. Hence, because a negative ion is taken up
and a neutral compound is created, the alkalinity is increased by one equivalent. The change in
alkalinity can be related to the denitrification rate by
1 eq moleN gN 50,000mgCaCO 3 gN
S a, denitr Denitr (26)
moleN 14.007gN 106 gN 1 eq Ld
where the r’s are ratios that translate the processes into the corresponding amount of alkalinity.
The stoichiometric coefficients are derived from nutrient algorithms in WASP.
2
Note that although it will almost always be negligible, Eq. (193) PO43– for completeness.
K p1K p 2 [H ]
HPO 4 (29)
[H ]3 K p1[H ]2 + K p1K p 2 [H ] + K p1K p 2 K p 3
K p1K p 2 K p 3
PO 4 (30)
[H ] K p1[H ] + K p1K p 2 [H ] + K p1K p 2 K p 3
3 2
rna 1 Pap
1 eq moleN gN
moleN 14.007gN 10 gN
6
(32)
1 eq moleP gP
rpa ( H 2 PO 4 2 HPO 4 3 PO 4 )
moleP 30.974gP 10 gP
6
gA
PhytoPhoto
Ld
50,000mgCaCO 3
S a ,BAUp
1 eq
BotAlgUpN(mgN/m 2 /d)
Pab Fi (1 Pab )
1 eq moleN gN
moleN 14.007gN 106 gN H (m)
1 eq moleP gP BotAlgUpP(mgP/m2 /d)
( H 2 PO 4 2 HPO 4 3 PO 4 )
moleP 30.974gP 106 gP
H (m)
(35)
3 Model Input
The data required to support the application of the advanced eutrophication model to predict pH
is described below.
3.1 Systems
For the inclusion of pH calculations within the WASP Framework two additional state variables
(Total Inorganic Carbon and Alkalinity) were added to the advanced eutrophication model. The
user would be advised to set their simulation option to By-Pass if pH calculations are not needed
(Figure 2).
3.3 Constants
Figure 4 illustrates where the user specifies the only constant needed for the pH calculation (if
not specified as a time function). The CO2 atmospheric partial pressure constant is specified in
the advance eutrophication module by selecting Constants and the Global Constants group. To
switch between the constant groups, chose using the drop down picklist. Note the user is
specifies the values for the constants, but also needs to check the “Used” radio button. Failing to
check this box will keep the interface for sending this information to the model. If a time
function as described in Section 3.2 provides data for CO2 atmospheric partial pressure it
supersedes the value specified here.
4 References
Chapra, S.C., Pelletier, G.J. and Tao, H. 2008. QUAL2K: A Modeling Framework for
Simulating River and Stream Water Quality, Version 2.11: Documentation and Users Manual.
Civil and Environmental Engineering Dept., Tufts University, Medford, MA.,
[email protected]