A silica bead of radius is held in water ( ) at by an optical trap of stiffness
PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Probability, statistics and stochastic methods · Numerical and computational mathematics
Error, Chance and the Machine, Ch Partial differential equations: stability, convergence and solvers
Problem
A silica bead of radius a=0.50μm is held in water (η=1.002×10−3Pas) at T=293K by an optical trap of stiffness ktrap=1.0pNμm−1, which pulls it back along one axis with the force −ktrapx. Use kB=1.3806×10−23JK−1. For times long against the velocity relaxation time (Chapter 9) the position obeys dx=−τtrapxdt+2DdW,τtrap=ktrapγ, with γ=6πηa and D=kBT/γ, and the density p(x,t) of many beads obeys ∂t∂p=D∂x2∂2p+τtrap1∂x∂(xp). The stationary density is the Boltzmann density ∝e−ktrapx2/2kBT. We find its variance by four routes and compare them. (Here ktrap is a stiffness and not a wavenumber.)
((a)) Find γ, D, τtrap and the standard deviation σ of the Boltzmann density.
((b)) Simulate x by the Euler-Maruyama method of Chapter 12 with step h=1.0ms. Write the step as xn+1=ϕxn+2DhZn, find ϕ, and predict the stationary variance of the simulated positions as a multiple of σ2.
((c)) Run 4×105 steps from x0=0, after discarding the first 200. (The solution quotes NumPy's PCG64 with seed 1.) The record is a sequence of the kind solved in Chapter 8, so give the exact τint of xn in steps. Estimate τint of xn2 from the run by the window rule of Chapter 11, and quote x2/σ2 with its standard error. How many standard errors is it from the prediction in (b), and from 1? What would the standard error be if the correlation between steps were ignored?
((d)) Solve the Fokker-Planck equation on −320nm≤x≤320nm with Δx=5nm and p=0 at the two ends, so that there are 127 unknowns. At node j, where xj=jΔx, difference the drift term centrally as (xj+1pj+1−xj−1pj−1)/(2Δxτtrap). (a) Find the explicit step limit of the diffusion term and the number of such steps in τtrap. Find also the time Δx/∣A∣ in which the drift speed ∣A∣=∣x∣/τtrap at x=320nm carries density across one cell, and say which of the two limits is the tighter. (b) Use Crank-Nicolson with Δt=0.5ms. Find α=DΔt/Δx2. Write the three coefficients of row j of the tridiagonal system for pn+1, find the sum of the sizes of the two off-diagonal ones, and show that the matrix is not symmetric but is diagonally dominant, so that the solver of Chapter 2 needs no pivoting. (c) Central differencing of a drift term gives no spurious oscillation when ∣A∣Δx/D<2 (quoted). Check this at x=320nm. (d) Start from a Gaussian of mean 120nm and standard deviation 25nm, not from a single occupied cell, and explain why. Run 19 steps (9.5ms) and 190 steps (95ms), normalising p so that ∫pdx=1 before taking moments. Give the variance as a multiple of σ2 at both times, and compare the first with the exact value from the moment equations of Chapter 9.
((e)) Sample the Boltzmann density by random-walk Metropolis (Chapter 11), with proposal y=x+σξ, ξ a standard normal number. Predict the acceptance rate. Run 2×105 steps from x=0 after discarding 1000 (PCG64, seed 1), estimate τint of x2 by the same window rule, and quote x2/σ2 with its standard error.
((f)) Compare the four variances as multiples of σ2. For each of the Euler-Maruyama, Crank-Nicolson and Metropolis results, say what limits its accuracy (the time step, the grid or the run length) and whether halving h, halving Δt or doubling the run would change it.