← Module 3 · Modeling Assignment M3 (OpenHydroQual)

Iron oxidation in a closed batch: stoichiometric coupling, a limiting reactant, and two donors competing for oxygen

An illustrated, step-by-step worked example · about 50 minutes · the latest OpenHydroQual · uses Module 3, Sections 2, 3 and 5, and the reaction objects of Modeling Assignment M2

What you will build

A closed batch of groundwater in which dissolved Fe(II) is oxidized by dissolved oxygen, \(\mathrm{4Fe^{2+} + O_2 + 10H_2O \rightarrow 4Fe(OH)_3 + 8H^+}\). One reaction changes three constituents in a fixed ratio: 1 g of Fe(II) lost, 0.1432 g of O₂ lost and 1 g of Fe(III) formed. You will check that ratio, run the same water with too little oxygen, and then add sulfide as a second electron donor that competes for the same oxygen.

StageWhat changesWhat to look forSaved as
1Fe(II) 10 g/m³, O₂ 8 g/m³ (oxygen in excess)all Fe(II) oxidized; O₂ ends at 8 − 1.432 = 6.57 g/m³; ΔO₂/ΔFe = 0.1432 at every timeM3_stage1_iron_oxidation.ohq
2O₂ only 1 g/m³ (oxygen limiting)the reaction stalls at Fe(II) = 10 − 1/0.1432 = 3.02 g/m³M3_stage2_oxygen_limited.ohq
3+ sulfide oxidation (H₂S + 2O₂ → SO₄²⁻ + 2H⁺)electrons given by Fe(II) and sulfide = electrons taken by O₂M3_stage3_two_donors.ohq

The system

ItemValue
Batch reactorone Reactor block, \(V = 1\) m³, no inflow, no links (as in M2)
ConstituentsFe2 (Fe(II), g Fe/m³), O2 (g O₂/m³), Fe3 (Fe(III) formed, g Fe/m³); Stage 3 adds H2S (sulfide, g S/m³) and SO4 (sulfate, g S/m³)
Iron oxidationrate \(k_{ox}[\mathrm{Fe2}][\mathrm{O2}]\), \(k_{ox} = 0.1\) m³/(g·day); stoichiometric constants Fe2 −1, O2 −0.1432, Fe3 +1
Sulfide oxidation (Stage 3)rate \(k_s[\mathrm{H2S}][\mathrm{O2}]\), \(k_s = 0.05\) m³/(g·day); H2S −1, O2 −1.996, SO4 +1
Simulation0–6 days (Stage 1), 0–50 days (Stage 2), 0–20 days (Stage 3)

The rate constants are chosen so that the reactions take days, as in slightly acidic water; at pH 7 and above, Fe(II) oxidation takes minutes (Module 3, Example 5a). The stoichiometry and the electron balance, which are what this assignment checks, do not depend on the rate constants. In many real waters Fe(II) and sulfide also precipitate together as FeS; that is left out here.

1Three constituents

Start a new model, load the Mass Transfer plugin (M1, Step 1) and create three Chemical constituents named Fe2, O2 and Fe3 (M1, Step 2).

Add Objects, Chemistry, Chemical constituent
As before: 1 Add Objects → 2 Chemistry → 3 Chemical constituent.
Object Browser with constituents Fe2, O2 and Fe3
1 The three constituents. Their "concentrations" are all in g/m³, but of different things: Fe2 and Fe3 in g of iron, O2 in g of O₂.
Units are part of the stoichiometry. The constant 0.1432 is grams of O₂ per gram of iron. If you entered Fe(II) as g of FeSO₄ or in mol/m³, the constant would be different. Keep every iron species "as Fe" and every sulfur species "as S".

2The batch

Add one Reactor with no inflow and no links, exactly as in M2, Step 2.

Batch properties for stage 1
Properties of the batch.
PropertyValueMeaning
1Fe2:Concentration10 g/m³initial Fe(II), \(A_0\)
2Fe3:Concentration0no Fe(III) yet
3O2:Concentration8 g/m³initial dissolved oxygen, \(B_0\)
4Initial Storage1 m³
5Constant Inflow0closed batch
6NameBatch

3The rate constant

Add a Reaction Parameter (M2, Step 3) named k_ox with Value 0.1 and Arrhenius factor 1. Its units are m³/(g·day), because it multiplies two concentrations to give g/m³/day.

Reaction parameter k_ox
1 Arrhenius temperature correction factor 1, 2 Value 0.1, 3 Name k_ox.

4One reaction, three constituents

Add a Chemical reaction (M2, Step 4). This is the new idea of M3: the stoichiometric constants are not all ±1.

Reaction Fe_oxidation properties
Properties of the iron-oxidation reaction.
PropertyValueWhere it comes from
1Fe2:Stoichiometric Constant−1the rate is written per gram of Fe(II) oxidized
2Fe3:Stoichiometric Constant1each gram of Fe(II) becomes a gram of Fe(III) (both as Fe)
3O2:Stoichiometric Constant−0.143232.00 g O₂ per 4 × 55.845 g Fe (Module 3, Example 2a)
4NameFe_oxidation
5Rate Expressionk_ox*Fe2*O2first order in each reactant (Module 3, Section 5)
Why not −1 for O₂, and +4 for Fe(III)?
The coefficients in the balanced equation (4, 1, 4) are in moles. OpenHydroQual works with whatever concentration units you give it, here g/m³, so the constants must be the mass ratios relative to the species the rate is written for. Dividing the molar equation by 4 × 55.845 g of Fe gives 1 g Fe(II) : 0.1432 g O₂ : 1 g Fe(III) (as Fe). The electron-equivalent route gives the same: 8/55.845 = 0.1432.

5Simulation time and time step

General Settings: end time 6 days. Solver Settings: initial time-step 0.01 and maximum time-step increase factor 5, as in M1 and M2.

Solver settings
As in M1: 1 initial time-step 0.01, 2 maximum time-step increase factor 5.

Stage 1Oxygen in excess

Save as M3_stage1_iron_oxidation.ohq and run. Plot Fe2, O2 and Fe3 for the Batch (right-click → Results, as in M2).

Predict first. The oxygen needed is \(\nu A_0 = 0.1432 \times 10 = 1.432\) g/m³, less than the 8 available, so Fe(II) is the limiting reactant: all of it is oxidized and \(8 - 1.432 = 6.57\) g/m³ of O₂ is left (Module 3, Section 5).

Fe(II) falling to zero
Fe(II) falls almost exponentially: with oxygen nearly constant the reaction is close to pseudo-first order with \(k' \approx k_{ox}B\), about 0.7–0.8 d⁻¹.
O2 falling from 8 to 6.59
O₂ falls only from 8 to 6.59 g/m³ by day 6 (it levels off at 6.57 once all the Fe(II) is gone): the mirror image of Fe(II), scaled by 0.1432.

Check the coupling. At any three times, compute \((8 - \mathrm{O_2})/(10 - \mathrm{Fe2})\). It must be 0.1432 every time, whatever the rate law. Then check the electrons: \((10 - \mathrm{Fe2})/55.845\) eeq/m³ of iron oxidized against \((8 - \mathrm{O_2})/8\) eeq/m³ of oxygen reduced.

The analytical solution (Module 3, Section 5) with \(\Delta = B_0 - \nu A_0 = 6.568\) g/m³ is \(A/B = (A_0/B_0)e^{-k_{ox}\Delta t}\), which you can evaluate in your spreadsheet to compare with the model.

Stage 2Oxygen limiting

Save a copy as M3_stage2_oxygen_limited.ohq. Change only the batch's O2:Concentration to 1 g/m³ and the end time to 50 days.

Batch with O2 concentration 1
1 O2:Concentration 1 g/m³; everything else as in Stage 1.

Now the iron needs 1.432 g/m³ of oxygen but only 1 is there: oxygen is limiting. The reaction can oxidize at most \(1/0.1432 = 6.98\) g/m³ of Fe(II), leaving 3.02 g/m³ however long you wait.

Fe(II) levelling off near 3
Fe(II) falls quickly at first, then ever more slowly toward 3.02 g/m³: 5.52 at 10 days, 4.28 at 20, 3.28 at 50.
O2 falling toward zero
O₂ heads to zero. As it runs out, the rate \(k_{ox}[\mathrm{Fe2}][\mathrm{O2}]\) goes to zero with it: that is why the approach is so slow.

The ratio \((1 - \mathrm{O_2})/(10 - \mathrm{Fe2})\) is still 0.1432 at every time: the limiting reactant changes how far the reaction goes, not the stoichiometry.

Stage 3Two electron donors competing for oxygen

Save a copy as M3_stage3_two_donors.ohq. Add:

  1. two constituents, H2S (sulfide, as S) and SO4 (sulfate, as S);
  2. a Reaction Parameter k_s = 0.05;
  3. a reaction sulfide_oxidation with rate k_s*H2S*O2 and stoichiometric constants H2S −1, O2 −1.996, SO4 +1 (and 0 for Fe2 and Fe3);
  4. in Batch: Fe2 5, H2S 2, O2 3 g/m³; end time 20 days.

Check that Fe_oxidation has 0 for H2S and SO4. Save and run.

Object Browser for stage 3
1 Five constituents; 2 two reactions; 3 two reaction parameters.
Properties of the sulfide oxidation reaction
sulfide_oxidation: 1 H2S −1, 2 O2 −1.9961, 3 SO4 1, 4 Rate Expression k_s*H2S*O2.
Batch initial concentrations in stage 3
Batch in Stage 3: 1 Fe2 5, 2 H2S 2, 3 O2 3 g/m³ (Fe3 and SO4 start at 0).

Predict with electron equivalents (Module 3, Section 3): the donors need \(8\,(5/55.85 + 2/4.008) = 0.716 + 3.992 = 4.71\) g/m³ of O₂, but only 3 are available. Oxygen is limiting again, and the two donors compete for it.

Put the two donors on one plot. Right-click Batch → Results → Fe2:Concentration and keep that plot window open. Open H2S:Concentration in a second window, right-click its chart → Copy curve, then right-click the chart of the Fe2 window → Paste. Both are in g/m³, so they share the axis.

Oxygen in stage 3
O₂ falls from 3 to 0.19 g/m³ by day 20.
Fe(II) and sulfide in stage 3 on one plot
Fe(II) and sulfide on one panel (H2S pasted into the Fe2 plot window): Fe(II) falls from 5 to 0.97 g/m³, sulfide from 2 to 0.88 g/m³. By day 20, 81 % of the iron but only 56 % of the sulfide has been oxidized, yet the sulfide has used about 80 % of the oxygen (8 electrons per S against 1 per Fe).

The electron balance. At 5, 10 and 20 days, compute the electrons given by both donors, \(1000[(5 - \mathrm{Fe2})/55.845 + (2 - \mathrm{H2S})/4.0075]\) meq/m³, and the electrons taken by oxygen, \(1000(3 - \mathrm{O2})/8\). They must agree (to about 0.03 %, the rounding of the stoichiometric constants).

Checkpoints

Read these from your own runs; small differences in the last digit are normal. The Stage 3 "formula" column is an accurate numerical solution (Runge–Kutta, step 10⁻⁴ day), because two competing donors have no simple closed form. Because of the time step the model lags the formula slightly (it reacts a little more slowly than the formula). In Stage 1 the relative gap grows as Fe(II) gets small: about 1.4 % at day 1, 2.7 % at day 2 and 5 % at day 4.

StageQuantityModelFormula
1Fe(II) at 1 / 2 / 4 days (g/m³)4.76 / 2.38 / 0.634.69 / 2.32 / 0.60
1O₂ at 6 days (g/m³)6.5936.591 (→ 6.568)
1(O₂ lost)/(Fe(II) lost), any time0.14320.1432
1Electrons at 2 days: Fe / O₂ (meq/m³)136.43 / 136.40equal
2Fe(II) at 5 / 10 / 20 / 50 days (g/m³)6.91 / 5.53 / 4.28 / 3.286.90 / 5.52 / 4.28 / 3.28
2O₂ at 20 / 50 days (g/m³)0.181 / 0.0380.180 / 0.038
2Fe(II) when O₂ runs out (g/m³)→ 3.023.02
3Fe(II) at 5 / 10 / 20 days (g/m³)2.03 / 1.36 / 0.972.01 / 1.35 / 0.97
3H2S at 5 / 10 / 20 days (g S/m³)1.27 / 1.04 / 0.881.27 / 1.04 / 0.88
3O₂ at 5 / 10 / 20 days (g/m³)1.120 / 0.566 / 0.1891.114 / 0.562 / 0.187
3Electrons at 10 days: donated / accepted (meq/m³)304.29 / 304.26equal

Explore

Save a copy with File → Save as and change one thing at a time.

Troubleshooting

Nothing reacts.The rate expression uses a name the model does not know yet (check the spelling, including upper/lower case), or O2 starts at 0 (then the rate is zero).
O₂ falls by as much as Fe(II).The O2 stoichiometric constant is −1 instead of −0.1432.
Fe3 does not appear.Fe3's stoichiometric constant in Fe_oxidation is 0 instead of +1.
In Stage 3 the electrons do not balance.Check the constants −0.1432 and −1.996, and that H2S and SO4 are "as S" (sulfide 2 g S/m³, not 2 g H₂S/m³).

What to submit