Skip to main content
Back to Earth and Space

WEATHER, CLIMATE & HUMAN IMPACT · AIR QUALITY

Air Quality Lab

File ▾

CHOOSE YOUR INVESTIGATION LEVEL

Where does smog come from, and what does each kind of evidence tell you?

Both levels use the same four stations: a valley city through one model day, an inversion lid over the city, a particle filter, and an air monitor beside two lichen-covered trees.

About this model

What kind of model. Codex’s science core (model.js) runs every station; the page only calls it. Every number is an exact model value with no random noise, so repeating a run gives the same numbers and does not estimate measurement error. Hourly rows from one day are observations through one run, not repeated trials.

① Smog day. A synthetic one-box model of one day, not a measured day in any city and not a forecast. Every emission and reaction rate is hypothetical (FLAG in the code): traffic adds NO and NO₂ with a background level plus morning and evening rush peaks; VOCs are one lumped number in ppbC; air is vented toward fixed backgrounds faster when the mixing layer is shallow. Three reactions run each minute: NO₂ + sunlight → NO + O₃ (photolysis; the O atom step is merged), NO + O₃ → NO₂ (titration; slowed here, about 200 times slower than in real air, so NO and O₃ can both linger at night in the model, which real city air does not do), and a sunlight-driven VOC pathway that turns NO into NO₂ without using O₃ (qualitative chemistry from EPA’s ground-level ozone basics). Sunlight follows a sine from 06:00 to 18:00. Real ozone also depends on temperature, wind, terrain and pollution carried over from earlier days, and whether NOx or VOC cuts help more varies by place and hour; in the San Joaquin Valley it has been studied in detail (LBL). The 8-hour value is the largest of 17 windows inside the day, with no carry-over from the day before.

② A lid on the city. One instant, well-mixed box: concentration = background + mass ÷ (area × mixing height), with mg → µg/m³ conversion. There is no chemistry, deposition, wind or new emission. The temperature inset is an illustrative profile (cooling of 6.5 °C per km below the lid, warming inside a 200 m lid) used only to show what an inversion looks like. The guided lab uses 10⁶ mg over 10⁶ m² with a 5 µg/m³ background.

③ Particle filter. Ideal size bins: each bin loses exactly its removal fraction; a real filter’s capture efficiency changes smoothly with particle size. PM10 includes PM2.5. The icons are 2 µg each and not to scale; the size inset is to scale (a hair is about 70 µm across, EPA). A short filter sample is not converted into a daily AQI.

④ Monitor & lichens. The monitor readings are hypothetical classroom values. The AQI comes from EPA’s current breakpoint table (opened 2026-10-24; it includes the 2024 PM2.5 update) with EPA’s method: truncate the concentration, find its band, interpolate linearly and round. Averaging times: PM 24 h, O₃ 8 h, NO₂ 1 h; a different averaging time gets no AQI (the 1-hour ozone table, used only above 0.125 ppm, is not offered here). Values above the top of the table get no AQI instead of an extrapolation. The lichen counts are a hypothetical survey of two guilds (sensitive shrubby lichens, tolerant crust lichens). Real sensitivity is species-level, lichens reflect years of deposition, and a lichen count never converts into an AQI. When the two sites’ habitats differ, the comparison is confounded.

Level note. The Earth Science level focuses on local smog, inversions, particles and evidence, which the Greenhouse Effect & Climate Lab does not cover. AP Environmental Science adds Unit 7 topics 7.1–7.4 and 7.6 (primary and secondary pollutants, photochemical smog, thermal inversions, particulates and their controls). Indoor pollutants, acid rain and noise are not covered.

What am I looking at?

How the lab works. Pick Explore or one lab at the top. Each lab has five tabs: Pre-lab, Bench, Data & graph, Claim · Evidence · Reasoning, and Test. On the Bench, the coach lists your steps, and they tick themselves as you work. Press What do I do now? when you’re stuck.

① Smog day. A valley city through 24 hours: the sky and sun follow the clock, cars follow the rush hours, and the dashed amber line is the top of the mixing layer. Molecules float inside that layer, more of them when the concentration is higher. NO is two balls (blue N, red O), NO₂ is three balls in a V with a brown glow, O₃ is three pale-violet balls, and a VOC is a grey zig-zag chain with green rims. The chips at the top right name the reactions happening that hour. The ruler at the bottom shows the hour.

② A lid on the city. A slice through the valley. The town releases the same mass every run; the dots rise, stop at the warm lid and spread to fill the layer. Faint dots everywhere are the background. The inset shows temperature against height, and the gauge shows the box concentration.

③ Particle filter. Small dark dots are fine particles (PM2.5) and big sandy grains are coarse particles. The screen catches coarse grains and the pleated filter catches fine dots. The two monitors on the right read what gets through.

④ Monitor & lichens. On the left, the six AQI bands (with their names) and an arrow that slides to the AQI. On the right, two tree trunks: branching green lichens are the sensitive kind and flat orange crusts are the tolerant kind.

Controls. ▶ runs the station; Step › moves one hour (①) or one quarter (②–④) and pauses; the speed menu slows it to 0.1× or 0.05×. Keys: Space play / pause · → step · R reset · Z / X zoom. Drag to move a zoomed-in scene.