Whittaker's History (1910), reviewed › The review's files › sim/whittaker/check_D-F_fable/
check_DF.py
#!/usr/bin/env python3
"""Independent check of Parts D, E and F of the Whittaker review (the twenty-sixth reviewer).
Sections:
1. The concentration cell (W11.9): the three formulae derived and evaluated.
2. The vortex sponge (W9.10): Kelvin's 2/9 against the linear rapid-distortion result 2/15,
by a Monte-Carlo average over isotropic Fourier modes.
3. The GRB cell-size bound (W8.5): phase velocity against group velocity.
4. The 4/3 convention (W10.4): what cancels and what does not, with the assumption made explicit.
5. Trouton-Noble (W12.13): the arithmetic of the 3e-9 share bound.
6. The vortex atom (W9.9): the inertia-energy comparison re-examined.
7. Hall (W9.6) and Zeeman (W12.17) numbers reproduced.
8. Michelson-Morley and cavity numbers (W12.5) reproduced.
numpy only. Prints the git commit it ran at.
"""
import subprocess, datetime, math
import numpy as np
print("git rev-parse HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip())
print("run at:", datetime.datetime.now().astimezone().strftime("%Y-%m-%d %H:%M:%S %Z"))
R = 8.314462618; F = 96485.33212; T = 298.15
RTF = R*T/F
print("\n=== 1. Concentration cell (W11.9) ===")
print("RT/F = %.3f mV; per decade %.2f mV" % (RTF*1e3, RTF*math.log(10)*1e3))
print("Per faraday through M | MX(c1) | MX(c2) | M with electrodes reversible to the cation (z=1):")
print(" electrodes: 1 mol M+ leaves c2 (deposited) and 1 mol M+ enters c1 (dissolved): net 1 mol M+ from c2 to c1")
print(" junction: t+ mol M+ migrate c1->c2, t- mol X- migrate c2->c1")
print(" net salt transferred c2->c1 = 1 - t+ = t- (cation) and t- (anion): t- mol MX from c2 to c1")
print(" dG = -t- * 2RT ln(c2/c1) (ideal 1:1), E = 2 t- (RT/F) ln(c2/c1) [S, derived]")
print(" junction alone (t+ - t-)(RT/F) ln(c2/c1): the liquid-junction potential, which is Whittaker's p. 387 and p. 389 formula")
print(" amalgam cell (uniform electrolyte, v 'supposed' 0): (RT/zF) ln(a2/a1) of the amalgam: Whittaker's own example is right")
for name, tp, z in [("KCl", 0.490, 1), ("CuSO4", 0.40, 2), ("HCl", 0.82, 1)]:
tm = 1-tp; L = math.log(10)
junc = (tp-tm)*RTF/z*L*1e3; cell = 2*tm*RTF/z*L*1e3; anion = 2*tp*RTF/z*L*1e3
print(" %-6s t+=%.3f z=%d: Whittaker (junction) %+6.1f mV; cation-reversible electrodes %+6.1f mV; anion-reversible %+6.1f mV" % (name, tp, z, junc, cell, anion))
print(" (t+ from memory of standard tables: KCl 0.490, CuSO4 ~0.40, HCl 0.82; Part E uses the same)")
print("\n=== 2. Vortex sponge (W9.10): Kelvin's 2/9 against the linear rapid-distortion modulus ===")
print("Linearised inviscid equations for homogeneous turbulence under a mean shear U_1 = S x_2 (A_12 = S):")
print(" d u_i/dt = -A_il u_l + 2 (k_i k_j / k^2) A_jl u_l (second term: the pressure that keeps div u = 0)")
print(" d<u1 u2>/dt at t=0 for isotropic turbulence = -S<u2^2> + 2 S <(k1^2/k^2) Phi_22 + (k1 k2/k^2) Phi_21>")
rng = np.random.default_rng(1)
N = 4_000_000
v = rng.normal(size=(N, 3)); v /= np.linalg.norm(v, axis=1)[:, None]
k1, k2 = v[:, 0], v[:, 1]
# isotropic spectrum tensor Phi_lm = (E/4 pi k^2)(delta_lm - k_l k_m/k^2); angular averages with weight 1
# production: -S * <Phi_22> -> -S q^2/3 ; pressure: 2S * < k1^2/k^2 (1 - k2^2/k^2) + (k1 k2/k^2)(-k1 k2/k^2) > * (q^2/2)
prod = -1.0/3.0 # in units of S q^2
press = 2.0 * np.mean(k1**2*(1-k2**2) - k1**2*k2**2) * 0.5
print(" Monte-Carlo angular averages: <k1^2> = %.4f (1/3), <k1^2 k2^2> = %.4f (1/15)" % (np.mean(k1**2), np.mean(k1**2*k2**2)))
print(" d<u1u2>/dt / (S q^2): production %.4f + pressure %+.4f = %.4f (exact: -1/3 + 1/5 = -2/15 = %.4f)" % (prod, press, prod+press, -2/15))
G_kelvin = 2/9; G_rdt = 2/15
print(" Kelvin (1887, Whittaker p. 332): modulus (2/9) rho R^2 -> c_w = %.3f R; linear RDT: (2/15) rho R^2 -> c_w = %.3f R" % (math.sqrt(G_kelvin), math.sqrt(G_rdt)))
print(" under the c/2 postulate: %.3f c (Kelvin) against %.3f c (RDT); R needed for c: %.2f c against %.2f c" % (math.sqrt(G_kelvin)/2, math.sqrt(G_rdt)/2, 1/math.sqrt(G_kelvin), 1/math.sqrt(G_rdt)))
print(" Reading: Kelvin's coefficient omits the pressure fluctuations; the modern linear result (Crow 1968, from memory; derived here)")
print(" is 5/3 smaller, so the lesson (waves slower than the stirring speed) is stronger than Part D states, not weaker. [D]")
print(" The memory window: R/omega << ell << 2 pi c_w/omega = %.2f R/omega (Kelvin) or %.2f R/omega (RDT)" % (2*math.pi*math.sqrt(G_kelvin), 2*math.pi*math.sqrt(G_rdt)))
print("\n=== 3. GRB cell-size bound (W8.5, w8_04 section 3) ===")
hbar_c = 1.973269804e-7 # eV m
E = 31e9; k = E/hbar_c; dv = 2e-18
a_phase = math.sqrt(24*dv)/k # phase velocity: v_p/c = sin(ka/2)/(ka/2) ~ 1 - (ka)^2/24
a_group = math.sqrt(8*dv)/k # group velocity: v_g/c = cos(ka/2) ~ 1 - (ka)^2/8
d_aspden = 6.374e-13
print(" k(31 GeV) = %.3e m^-1" % k)
print(" nearest-neighbour chain: phase (ka)^2/24 -> a <= %.2e m (Part D's 4.4e-26); group (ka)^2/8 -> a <= %.2e m" % (a_phase, a_group))
print(" the arrival-time test bounds the GROUP delay, so the right bound is %.2e m: %.1e times finer than Aspden's d" % (a_group, d_aspden/a_group))
print(" (the survey review's 2.8e-26 m for beta = 1/24 uses n_g - 1 = 3 beta (kd)^2 = (kd)^2/8, the group form)")
print("\n=== 4. The 4/3 convention (W10.4, partE_em_mass section 4) ===")
re_ = 2.8179403205e-15
a_T = (2/3)*re_; b = 2.3032933e-14; N = (b/a_T)**3
a_c = 0.5*re_; b_c = 0.75*b
print(" Thomson convention: a = (2/3) r_e = %.5e m, b = %.5e m, N = (b/a)^3 = %.2f" % (a_T, b, N))
print(" covariant (surface charge) for both: a' = r_e/2, b' = 3b/4: N' = %.2f (unchanged, trivially: both radii scale by 3/4)" % ((b_c/a_c)**3))
print(" E0 = q^2 d^3/(2 pi b^4):")
print(" if d is fixed independently (Compton frequency and r/d, the record's reading): E0' = (4/3)^4 E0 = %.3f E0 -> %.1f MeV" % ((4/3)**4, 210.87*(4/3)**4))
print(" if instead d scaled with b (d set from b by 7.15 read the other way): E0' = (4/3) E0 = %.3f E0 -> %.1f MeV" % (4/3, 210.87*4/3))
print(" Part E section 8 states the first reading as its assumption; the page's 666 MeV inherits it. [D]")
print(" Note: 1/alpha = 144 pi (r/d) depends only on r/d and is unchanged either way (U06).")
print("\n=== 5. Trouton-Noble share bound (W12.13) ===")
tn_frac = 0.05; hayden = 1e5; v_cmb = 370.0; v_orb = 30.0
share = tn_frac/hayden/(v_cmb/v_orb)**2
print(" 1903: couple < %.2f of the Galilean prediction at 30 km/s; Hayden 1994 sensitivity x %.0e (from memory)" % (tn_frac, hayden))
print(" frame-fixed share of the condenser's internal stresses that would survive: %.1e at 370 km/s (Part F: 3e-9)" % share)
print(" The torque is cancelled in relativity by the transformation of the STRESSES in the plates and suspension;")
print(" a non-covariant share of the stresses, not of the inertia, is what this bounds. [D]")
print("\n=== 6. The vortex atom (W9.9, w9_02 section 2): the inertia-energy comparison ===")
k_B = 1.380649e-23; c = 2.99792458e8; m_p = 1.67262192e-27
dmm_matter = 1.5*k_B*300/(m_p*c**2)
print(" matter: dm/m = (3/2)kT/(m_p c^2) = %.1e at 300 K (E = mc^2 with coefficient 1)" % dmm_matter)
print(" vortex ring: dm/m = 1.85 dU/U. The comparison '1.9%% per 1%%' against 4e-11 is only '10 orders' if the thermal energy")
print(" is 1%% of the ring's energy U; nothing fixes U. If U is the atom's whole energy (its 'mc^2'), the ring's inertia")
print(" changes at 1.85 x relativity's rate, not 10^10 x. The sound statement is Whittaker's qualitative one, plus the")
print(" exponent 1.85 and the missing scale; 'excluded by about 10 orders' is not supported. [D]")
print("\n=== 7. Hall (W9.6) and Zeeman (W12.17) numbers ===")
e = 1.602176634e-19
RH = -7.2e-11; n_Au = 1/(abs(RH)*e); sigma = 4.5e7; B = 11420*0.19e-4
print(" gold: R_H = %.1e m^3/C -> n = %.2e m^-3 = %.2f per atom (5.90e28 atoms/m^3)" % (RH, n_Au, n_Au/5.90e28))
print(" Hall's field 11,420 x 0.19 G = %.3f T; Hall angle R_H sigma B = %.1e -> E/E' = %.0f (Hall: 3000 to 6500)" % (B, abs(RH)*sigma*B, 1/(abs(RH)*sigma*B)))
I, w, t = 0.028, 0.02, 1e-7
print(" drift speed for 28 mA through a leaf 2 cm x 1e-7 m: %.2f cm/s (von Ettingshausen: 0.1 cm/s)" % (I/(w*t*n_Au*e)*100))
e_over_m = 1.75882000838e11; lam = 589.3e-9
nu_L = e_over_m*1.0/(4*math.pi)
dlam = lam**2*nu_L/c
print(" Zeeman: Larmor shift at 1 T = %.1f GHz = %.1f pm per side at 589.3 nm; /597 pm = %.4f; Zeeman's 1/40 -> e/m = %.2e C/kg (%.0f%% of CODATA)" % (nu_L/1e9, dlam*1e12, dlam/597e-12, e_over_m*(1/40)/(dlam/597e-12), 100*(1/40)/(dlam/597e-12)))
print("\n=== 8. Michelson-Morley 1887 and the cavities (W12.5) ===")
beta2 = (29.78e3/c)**2; D = 11.0; lam_y = 550e-9
print(" beta^2 = %.3e; expected shift 2 D beta^2/lambda = %.3f fringe; 1/40 of it -> v < %.1f km/s" % (beta2, 2*D*beta2/lam_y, 29.78/math.sqrt(40)))
print(" Nagel 2015, 2e-18 round-trip anisotropy = beta^2/2 -> classical wind v < %.2f m/s; CMB 370 km/s: beta^2/2 = %.2e, excluded by %.1e" % (c*math.sqrt(2*2e-18), 0.5*(370e3/c)**2, 0.5*(370e3/c)**2/2e-18))
print(" Stokes slip 1.5 x 30 km/s = 45 km/s: beta^2/2 = %.2e, excluded by 10^%.1f (the page's 10^9.7)" % (0.5*(45e3/c)**2, math.log10(0.5*(45e3/c)**2/2e-18)))
print("\nEnd.")