Problem set — fluctuations and transport
Problem set: fluctuations and transport¶
Exam-style problems. Work them with a pen before touching a computer; problems 3 and 4 are meant to be finished in the laboratory, problems 5 and 6 use its data files, and problem 8 — the course’s closing synthesis — is a challenge. Solutions and marking rubrics live with the instructor material and are deliberately not on this site.
Constants: , , , . Where needed, and the mean speed of a Maxwell–Boltzmann gas is .
Problem 1 — the noise is a heat capacity¶
(a) Starting from , show that and , and hence that .
(b) For atoms of a monatomic ideal gas drawn from the canonical distribution, each velocity component is Gaussian with variance . Compute directly, without using (a), and show that it gives . If every sample’s net momentum is set to zero before its energy is recorded, what does the same calculation give, and why?
(c) For independent two-level systems with gap , show that with , and that it reproduces module 12’s Schottky heat capacity.
(d) Show that for the systems of (c). Evaluate it at for and for a mole.
(e) A gas drawn microcanonically has no energy fluctuation at all, so (a) would assign it . Explain what is wrong with that conclusion, and why it does not contradict the statement that canonical and microcanonical descriptions agree for a mole of gas.
Problem 2 — from random walk to the diffusion equation¶
(a) A walker steps with equal probability every . Write the master equation for and, by expanding both sides, derive with . State the order of the terms you neglect and the limit in which they vanish.
(b) Verify by substitution that solves the diffusion equation, that it stays normalised, and that its variance is .
(c) On a lattice of spacing , derive Fick’s law by counting walkers crossing a plane between two sites in one step. Explain why there is a net flux down the gradient although no force acts on any walker.
(d) Show that a step distribution with zero mean and variance gives . What happens to the derivation for steps drawn from a Cauchy distribution, and what would you expect a cloud of such walkers to look like?
(e) Oxygen in water has . Estimate the time for it to diffuse across a cell wide, across of tissue, and across . What does this say about the size of an animal that could do without a circulation?
Problem 3 — the diffusion coefficient, three ways¶
In the laboratory, generate 104 independent walkers of 1000 steps with
transport.walker_trajectories (step , ).
(a) Measure with d_from_msd, d_from_histogram (with lattice=2.0) and d_from_vacf. Quote
each as value ± error and give your verdict on whether the three are consistent with each other and
with .
(b) Repeat (a) for 102, 103 and 104 walkers. Show that each error bar falls as , and explain why the batch method is used to compute them rather than the error bar of a least-squares fit to against .
(c) d_from_histogram fits the cloud at four snapshot times. Estimate from a single early
snapshot instead, at , with fit_gaussian_variance (pass lattice=2.0) divided by ,
and then from a single late one at . Does the estimate change? Explain what the fit is
sensitive to that the mean squared displacement is not.
(d) Now give the walkers a persistence : each step repeats the one before with probability
, and is otherwise drawn afresh. Compute d_from_vacf with the integral cut off
at , 10, 20, 50, 100 and 500 steps. Plot the value and its error against , and
explain both trends.
(e) Which of the three estimators is the most precise, and why? Give one reason why a less precise estimator is still worth computing.
Problem 4 — memory: from ballistic flight to diffusion¶
(a) A particle’s velocity autocorrelation is . Using , show that
Find its limits for and , and identify .
(b) Sketch against on log-log axes and mark the crossover. Where would you place it for a nitrogen molecule at room conditions, using ?
(c) In the laboratory, measure the mean squared displacement of persistent walkers with and . Find the time at which the log-log slope falls through 1.5 and compare it with the memory time .
(d) Module 04’s gas has no collisions between its particles. Show that in a box of side the mean
squared displacement along one axis settles at at long times, by computing
for two independent positions uniform in . Measure it with
box_gas_trace and explain the shape of its velocity autocorrelation.
(e) What would the same collisionless gas do in open space? Explain why “no collisions, no diffusion” is true both with and without walls.
Problem 5 — the mean free path, and three transport coefficients¶
(a) A molecule of a hard-sphere gas moves with speed through a gas of stationary targets of diameter at number density . Show that it collides times per second. Explain why the true rate is times larger, and derive .
(b) Module 02’s van der Waals per molecule is , and for hard spheres . The NIST Chemistry WebBook gives , for nitrogen and , for argon. Find for each, and the mean free path, mean speed and collision rate of nitrogen at and one atmosphere. How many molecular diameters, and how many mean spacings, is ?
(c) Using step 8, estimate the viscosity and thermal conductivity of nitrogen ( per molecule) and of argon () at . The laboratory’s data file gives NIST’s reference values at : and , and . Compute the ratios and comment.
(d) Show that and do not depend on the density. Using the data file, find by what fraction the viscosity of nitrogen changes between 0.1 and , and between 1 and . Explain the second change. In what regime would you expect the viscosity to fall as the pressure is lowered, and why does the data file not show it?
(e) For argon, NIST’s at . Compute and compare it with step 8’s prediction. Why does the comparison test the theory more cleanly than (c) does?
Problem 6 — Brownian motion and Avogadro’s number¶
(a) Beads of buoyant mass in water sink at a drift velocity . In sedimentation equilibrium their number density is . By requiring that the drift flux and Fick’s diffusion flux cancel, derive the Einstein relation .
(b) Derive it again from the Green–Kubo relation, assuming a bead forgets its velocity as . Why does the mass cancel?
(c) A bead of radius is in water at , viscosity . Find from the Stokes–Einstein relation, the root-mean-square displacement along one axis in , and its memory time if the bead’s density is . Could Perrin, plotting positions every , have seen the ballistic regime?
(d) The laboratory’s file 18-perrin-projections.csv is Perrin’s 1909 table of the sizes of the
horizontal projections of 30-second displacements of gamboge granules, radius .
For the first series, in water at with viscosity 0.011 poise, fit the
Gaussian with binned_variance_estimate, and obtain and Avogadro’s number, each with its
uncertainty. Compare with the defined .
(e) Perrin’s own values of for the same series at 30, 60, 90 and were 50.2, 113.5, 128 and . Compute from each, and explain why they scatter more than your error bar in (d) suggests. List three assumptions behind Perrin’s that no error bar computed from his table can include.
Problem 7 — where transport theory stops¶
(a) Compute the Knudsen number for nitrogen at in each of: a pipe of diameter at one atmosphere; a pore of diameter at one atmosphere; a vacuum chamber across at . Take . In which can the gas be described by a viscosity?
(b) A strong shock wave in a gas is a few mean free paths thick. Explain why the local-equilibrium assumption fails inside it, while it holds well on either side.
(c) When is much larger than the gap between two parallel plates, one of them moving, the drag on the moving plate is proportional to the pressure. Explain why, by thinking about where a molecule that hits the moving plate last collided.
(d) A Pirani vacuum gauge measures the heat lost by a hot wire to the surrounding gas. Use (c)'s argument to explain why it can measure pressure only below some pressure. The temperature gradient is steepest within a few diameters of the wire, so take the wire’s diameter as the length that matters, and estimate that pressure for a wire thick.
(e) Local equilibrium also requires that conditions change slowly compared with the collision time. Estimate the collision time in air at room conditions, and the frequency above which a sound wave would no longer be described by the equations of this module.
Problem 8 — one gas, the whole course (challenge)¶
A cylinder closed by a piston holds atoms of a monatomic ideal gas, of mass , in contact with a heat bath at temperature .
(a) Following module 04, derive the pressure on the piston from the momentum the atoms deliver to it, and show that .
(b) The gas is compressed slowly and isothermally from to . Using , find and , and the entropy changes of the gas, of the bath and of the two together (modules 05 and 08). What would change if the compression were sudden?
(c) In contact with the bath the gas is in the canonical ensemble (module 11). Write its partition function with , and obtain and from (module 12).
(d) Measure the same from the energy fluctuations of canonical samples with
transport.gas_energy_samples for , 100 and 1000, and check that
falls as . Quote each measurement with its uncertainty.
(e) In one paragraph: what single idea connects (a), (b), (c) and (d)? Your answer should explain why the steadiness of the pressure in (a) and the noise in (d) are the same fact seen from two sides.