theoretical
reaction order n
1.5
rate constant k
1
seed
1
noise amplitude
0.05
×

Directions

Consider an irreversible homogeneous liquid-phase reaction \(n\,\mathrm{A} \rightarrow \mathrm{B}\) taking place in a batch reactor. Assume that the experimental data (i.e. the concentration of species \(\mathrm{A}\) versus time data indicated by the blue dots in the figure) comes from, for example, the on-line measurement of electrical conductivity of the mixture in the reactor. The governing equation of the batch reactor is given by \(\frac{dc}{dt} = -k c^n\) with \(c(t=0)=1\).

This Demonstration uses the experimentally obtained data in order to estimate the theoretical reaction order \(n\) and rate constant \(k\) (shown in the figure in red and blue, respectively). You can vary the theoretical values of \(n\) and \(k\) using the sliders. The seed slider selects which random number sequence is used to generate the simulated data. The noise amplitude slider increases the noise in the concentration data but does not change the time of the individual data point.

×

Details

The concentration \(c\) of species \(\mathrm{A}\) in the batch reactor is governed by:

\[\frac{dc}{dt} = -k c^n, \qquad c(0) = 1,\]

where \(k\) is the rate constant and \(n\) is the reaction order. This equation is solved numerically for the theoretical values of \(k\) and \(n\) set by the sliders.

Simulated experimental data (blue dots) are generated by adding uniformly distributed random noise to the theoretical solution at times \(t_i = 0, 0.05, 0.10, \ldots, 4\):

\[c_i = \max\!\left[0,\; c(t_i) + a\,\frac{2 r_i - 1}{2}\right],\]

where \(a\) is the noise amplitude and \(r_i\) is a random number uniformly distributed on \([0,1]\); the random sequence is set by the seed.

The experimental reaction order \(n_1\) and rate constant \(k_1\) are then estimated by a nonlinear least-squares fit of the solution of the governing equation to the noisy data; that is, \(k_1\) and \(n_1\) are chosen to minimize:

\[\sum_i \left[ c(t_i;\, k_1, n_1) - c_i \right]^2,\]

where \(c(t;\, k_1, n_1)\) is the solution of \(\frac{dc}{dt} = -k_1 c^{n_1}\) with \(c(0)=1\). The fitted curve is shown in red, and the estimated values of \(n_1\) and \(k_1\) are displayed above the figure.

Reference

[1] L. D. Schmidt, The Engineering of Chemical Reactions, New York: Oxford University Press, 1998.

Symbols

\(a\)noise amplitude
\(c\)concentration of species \(\mathrm{A}\) (normalized so that \(c(0)=1\))
\(c_i\)simulated experimental concentration at time \(t_i\)
\(k\)theoretical rate constant
\(k_1\)rate constant estimated from the data (experimental)
\(n\)theoretical reaction order
\(n_1\)reaction order estimated from the data (experimental)
\(r_i\)random number uniformly distributed on \([0,1]\)
\(t\)time
\(t_i\)time of the \(i\)th data point
×

About

This simulation was created in the Department of Chemical and Biological Engineering at University of Colorado Boulder for LearnChemE.com by John L. Falconer using Claude AI. It is a JavaScript/HTML5 implementation of a Mathematica simulation by Housam Binous, Ahmed Bellagi, and Brian G. Higgins. It was prepared with financial support from the National Science Foundation (DUE 2336987 and 2336988). Address any questions or comments to LearnChemE@gmail.com.

⚠️ Simulation Under ReviewThis content is still being reviewed for quality and accuracy and may be updated in the future. Feel free to send us feedback.