Chemical Kinetics Lab

Mass-action schemes · RK4 integration · Concentration vs time (v3)

Concentration vs time

Click legend entries to show or hide species

Calculation reference (student sheet)

Elementary mass-action (one reaction step)

For reactant species Xi with stoichiometric coefficients νi and product species Yj with μj:

  • Forward rate: rf = kfi [Xi]νi
  • Reverse rate (reversible steps): rb = kbj [Yj]μj
  • Net reaction rate: r = rf − rb (for irreversible steps, kb = 0).

Species balances (single step): each reactant contributes −νi·r to d[Xi]/dt; each product contributes j·r to d[Yj]/dt. Multiple steps superpose additively.

Time integration (RK4)

Let y be the concentration vector. One step of step size h = Δt:

k1 = f(y),
k2 = f(y + (h/2)k1),
k3 = f(y + (h/2)k2),
k4 = f(y + hk3),
yn+1 = yn + (h/6)(k1 + 2k2 + 2k3 + k4).

After each accepted step, each component of y is clamped to ≥ 0 for numerical stability.

Reading the graph

Run a simulation to populate this panel. Each coloured curve is the molar concentration of one species versus time; use the legend to compare subsets or hide noisy traces.

Key data points

Sampled times along the stored trajectory (start, interior samples, end). Values match the integrator output.

t (s)
No simulation data yet.