Whittaker's History (1910), reviewed › The review's files › sim/whittaker/partD/
w9_03_bjerknes.py
"""W9.4 / W9.5: hydrodynamic "magnets" (Thomson, Kirchhoff) and Bjerknes's pulsating
spheres (Whittaker pp. 312-317): inverse-square forces of the wrong sign.
Physical meaning:
rho density of the incompressible fluid (the aether of the model).
m, m' strengths of two sources/sinks: volume flux / 4 pi (Whittaker's footnote p. 315).
phi velocity potential; the fluid velocity is grad phi.
V(t) volume of a pulsating sphere, V = V0 + eps cos(omega t + delta).
p pressure; linearised unsteady Bernoulli: p = -rho d(phi)/dt.
F force on a small body of volume V in a pressure gradient: F = -V grad p.
Derivation (D):
Source 1 at the origin with outflow dV1/dt: phi_1 = -(dV1/dt)/(4 pi r).
p = -rho d phi_1/dt = rho (d^2 V1/dt^2)/(4 pi r); grad p = -rho V1''/(4 pi r^2) r_hat.
Force on sphere 2 (at distance r): F = -V2 grad p = + rho V2 V1''/(4 pi r^2) r_hat.
Time average with V_i = V_i0 + eps_i cos(omega t + delta_i):
<V2 V1''> = -(omega^2 eps_1 eps_2 / 2) cos(delta_1 - delta_2)
so <F> = -(rho omega^2 eps_1 eps_2 cos(delta_1 - delta_2)) / (8 pi r^2) r_hat :
ATTRACTION (toward 1) for in-phase pulsation, REPULSION for opposite phase,
inverse square. This is Bjerknes's result as Whittaker states it (p. 316).
"""
import numpy as np
from scipy.integrate import quad
from partD_common import header, section
header('W9.4/W9.5 Hydrodynamic magnets and Bjerknes\'s pulsating spheres: inverse square, wrong sign')
section('1. Two sinks in an incompressible fluid (Whittaker fn. p. 315): energy and force')
rho = 1000.0 # kg/m^3 (water, for a concrete number)
m1, m2 = 1e-6, 1e-6 # m^3/s per 4 pi: source strengths
for l in [0.1, 0.2, 0.4]:
E_excess = 4 * np.pi * rho * m1 * m2 / l
F = 4 * np.pi * rho * m1 * m2 / l ** 2 # = -d/dl of the excess energy -> drives l smaller: attraction
print(' separation %.2f m: excess kinetic energy %.3e J, force %.3e N, inverse-square, LIKE sinks ATTRACT' % (l, E_excess, F))
print('Two magnets: like poles repel. The fluid analogue gives the opposite sign (Thomson; Whittaker p. 315),')
print('because the invariants are the circulations (momenta), not the fluxes (velocities): Hamiltonian vs Lagrangian.')
section('2. Bjerknes: time-averaged force between two pulsating spheres')
omega = 2 * np.pi * 20e3 # 20 kHz, as in acoustic cavitation
eps1 = eps2 = 1e-12 # m^3 volume amplitude (a 0.1-mm bubble pulsing by ~25 %)
def mean_force(r, dphase, n=4000):
T = 2 * np.pi / omega
t = np.linspace(0, T, n, endpoint=False)
V2 = eps2 * np.cos(omega * t + dphase)
V1dd = -omega ** 2 * eps1 * np.cos(omega * t)
F = rho * V2 * V1dd / (4 * np.pi * r ** 2)
return F.mean()
for dphase, label in [(0.0, 'in phase'), (np.pi / 2, 'quarter period apart'), (np.pi, 'opposite phase')]:
r = 1e-3
Fnum = mean_force(r, dphase)
Fformula = -rho * omega ** 2 * eps1 * eps2 * np.cos(dphase) / (8 * np.pi * r ** 2)
print(' %-22s r = %.0e m: <F> numeric %+.3e N, formula %+.3e N (%s)' % (label, r, Fnum, Fformula,
'zero to rounding' if abs(Fnum) < 1e-15 else ('attraction' if Fnum < 0 else 'repulsion')))
r = np.array([1e-3, 2e-3, 4e-3])
F = np.array([mean_force(ri, 0.0) for ri in r])
print(' inverse-square check: F(r) r^2 = %s (constant)' % np.array2string(F * r ** 2, precision=4))
section('3. The sign against Coulomb and Newton')
print('Coulomb: like charges REPEL, unlike ATTRACT. Bjerknes: like phases ATTRACT, unlike REPEL. -> the wrong sign.')
print('Newton: all masses attract. Bjerknes: only if every body in the universe pulsates in phase,')
print(' and then F ~ omega^2 eps1 eps2, the product of pulsation amplitudes, not of inertial masses: no equivalence principle.')
print('Leahy (Whittaker p. 317): in an ELASTIC medium with wavelength >> separation the sign reverses, which repairs')
print(' the electric sign; but the next section shows what a finite wave speed then does.')
section('4. Finite wave speed: the sign alternates with distance (Whittaker p. 316, "a quarter wave-length")')
# With retardation the pressure at sphere 2 lags by omega r / c_s: <F> ~ -cos(dphase - omega r / c_s)
c_s = 1500.0
lam = 2 * np.pi * c_s / omega
for r in [0.05 * lam, 0.2 * lam, 0.25 * lam, 0.3 * lam, 0.5 * lam, 0.75 * lam]:
s = -np.cos(omega * r / c_s)
print(' r = %.2f lambda: sign factor -cos(2 pi r/lambda) = %+.3f -> %s' % (r / lam, s, 'attraction' if s < 0 else 'repulsion'))
print('Gravity and electricity do not change sign with distance: a compressible Bjerknes aether is excluded,')
print('and an incompressible one needs instantaneous action (Whittaker: "all pulsations are propagated instantaneously").')
section('5. What survives')
print('The secondary Bjerknes force between bubbles in a sound field is real and measured (Crum 1975, from memory);')
print('it is a confirmed piece of fluid mechanics, and an excluded model of gravity and of electricity.')