playback speed1.0

Directions

This simulation uses families walking down a shopping street as an analogy for how a gas chromatograph separates molecules. Each family (two grandparents, a mother and father, two teenagers, and two young children) enters the left end of the street together, just as a pulse of a mixture is injected into a column. Everyone walks at the same speed, but as they pass each store, each person may go in and shop for a while. For the default settings, children tend to leave later, but this can be changed with the slider settings. The plot below the street shows when each person leaves the street; it plays the role of the detector signal (the chromatogram).

Press "start" to send the families down the street. A person in a store is drawn with a black outline and does not move until they come back out. Each person who leaves the right end of the street is added to the plot as a dot in their group's color, stacked in time intervals so the dots build up peaks. Check the "smooth curves" box to see smooth curves that approximate the dots to better make the analogy to a GC detection.

Use the sliders to change the walking speed, the number of families that enter together, the chance that a person goes into each store they pass, and the average time each group spends in a store. The dashed line on the plot is the time to walk the street without stopping. Make all the shopping times equal to see the separation disappear, or give the grandparents the longest shopping time to reverse the order. When you press "start," the current settings are used for that run, and the sliders and the "start" button are locked until you press "reset." The axis scales are set when you press "start" so the time axis ends just after the last person leaves, and they do not change while the families walk. The "playback speed" slider can be changed at any time; it only changes how fast the animation runs.

Details

The shopping street is an analogy for a chromatography column:

shopping streetcolumn
walking down the streetflow of the carrier gas
stores along the streetadsorbent coating on the column wall
going into a storeadsorbing on the coating
time spent in a storeadsorption time
family entering togetherinjected pulse of a mixture
groups of different agesdifferent kinds of molecules
people leaving the streetdetector signal

Everyone walks at the same speed \(u\), so a person who never shops walks the street of length \(L\) in time

\[ t_M = \frac{L}{u} \]

The street has \(N_s\) stores. When a person passes a store door, they go in with probability \(p\). Once inside, they stay for a time drawn from an exponential distribution with mean \(\tau\), which depends on the person's age group:

\[ P(t_{shop} > t) = e^{-t/\tau} \]

The time a person spends on the street is the walking time plus the time spent in all the stores they visited. The number of stores visited follows a binomial distribution with mean \(N_s p\), so the mean time on the street (the retention time) and its standard deviation are

\[ t_R = t_M + N_s\, p\, \tau \] \[ \sigma = \tau \sqrt{N_s\, p\,(2 - p)} \]

Because \(\sigma\) is proportional to \(\tau\), groups that shop longer leave later and are spread over a longer time, so their peaks are shorter and broader, as for strongly adsorbed molecules in a chromatograph. The mean time on the street is set by the shopping time, but the spread is set by the randomness of which stores each person visits and how long they stay. Visiting more stores (larger \(p\)) increases \(t_R - t_M\) faster than \(\sigma\), so the peaks become better separated, just as a molecule that adsorbs and desorbs many times gives a sharper peak.

The retention factor and the resolution of two neighboring peaks are

\[ k = \frac{t_R - t_M}{t_M} \] \[ R_s = \frac{2\,(t_{R,2} - t_{R,1})}{w_{b,1} + w_{b,2}} \]

where \(w_b\) is the width of a peak at its base. The simulation estimates each width with the Gaussian-width approximation

\[ w_b \approx 4\sigma \]

where \(\sigma\) is the standard deviation of the times people in that group leave the street. For a Gaussian peak, tangents drawn through the two inflection points cross the baseline \(4\sigma\) apart, so \(4\sigma\) is the usual base width. The peaks here are not exactly Gaussian (the children's peak, for example, has a long tail of late leavers), so the resolutions in the table below the plot are estimates. Peaks are compared in the order the groups leave the street, so each row of the table is a pair of neighboring peaks. In this simulation, \(L\) = 400 m and \(N_s\) = 16 (8 on each side of the street).

Symbols:
\(k\) = retention factor
\(L\) = length of the street
\(N_s\) = number of stores
\(p\) = probability that a person goes into a store as they pass it
\(R_s\) = resolution
\(t\) = time
\(t_M\) = time to walk the street without stopping
\(t_R\) = mean time a group spends on the street (retention time)
\(t_{shop}\) = time a person stays in one store
\(u\) = walking speed
\(w_b\) = peak width at the base
\(\sigma\) = standard deviation of the times people leave the street
\(\tau\) = mean time spent in each store visited

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. This simulation is based on an analogy created by Eva Sorenson of University College London. It was prepared with financial support from the National Science Foundation (DUE 2336987 and 2336988). Address any questions or comments to LearnChemE@gmail.com.

walking speed (m/min)60
number of families10
chance of entering a store (%)50
minutes per store:
grandparents1
parents3
teenagers6
children12
Turn your device sideways for a larger view.
time = 0 min in stores: 0 left the street: 0 of 80
Estimated resolution
neighboring peaksresolution, Rs
⚠️ 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.