Does light charge the quons? › Files cited on the page › the trials

t26_prep.py

In the investigation at sim/m8_engine/t26_prep.py · last changed in commit 3e5c39b, 25 November 2026 · 3,194 bytes · runnable copies in the scripts zip


#!/usr/bin/env python3
"""Numbers for the lock of trial 26, computed before the lock (derivations, not runs of the engine)."""
import math
import subprocess
import sys

import numpy as np

sys.path.insert(0, ".")
from engine import static_field_of  # noqa: E402

print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip())
N = 32
G = None
k = 2 * np.pi * np.arange(N) / N
sx = 4 * np.sin(k / 2) ** 2
K2 = sx[:, None, None] + sx[None, :, None] + sx[None, None, :]
K2[0, 0, 0] = np.inf
G_N = float((1 / K2).sum() / N**3)
P = np.zeros((3, N, N, N)); P[0, 0, 0, 0] = 1.0
E = static_field_of(P)
own, cross = E[0, 0, 0, 0], E[1, 0, 0, 0]
print(f"G on a 32^3 box {G_N:.6f}; a unit x-dipole's static field on its own band {own:.6f}, on the y-band from the same corner {cross:.6f}")


def imS(w, ndir=200000):
    i = np.arange(ndir) + 0.5
    th = np.arccos(1 - 2 * i / ndir); ph = np.pi * (1 + 5**0.5) * i
    n = np.stack([np.sin(th) * np.cos(ph), np.sin(th) * np.sin(ph), np.cos(th)], 1)
    rho = np.full(ndir, w)
    for _ in range(60):
        kk = rho[:, None] * n
        rho -= ((4 * np.sin(kk / 2) ** 2).sum(1) - w * w) / (2 * np.sin(kk) * n).sum(1)
    kk = rho[:, None] * n
    Kv = 2 * np.sin(kk / 2)
    f = 1 - Kv[:, 0] ** 2 / (Kv**2).sum(1)
    return math.pi * (4 * np.pi / ndir) * np.sum(rho**2 * f / (2 * np.sin(kk) * n).sum(1)) / (2 * math.pi) ** 3


D, wp2, dt = 4, 0.2, 0.1
wA = 1.65 / D
meff = 1 + wp2 * (2 / 3) * G_N
Om2 = (wA**2 + wp2 * (-own)) / meff
Omt = math.sqrt(Om2)
Gam = wp2 * Omt * imS(Omt) / meff
print(f"Home 1, one rotor alone: wb = {wA:.4f}; frequency with its own field {math.sqrt(Om2):.5f} (stepped {2/dt*math.asin(Omt*dt/2):.5f}); energy loss rate {Gam:.5e}"
      f" (Larmor's at the bare rhythm, no inertia: {wp2*wA**2/(6*math.pi):.5e}); over t = 20 to 200 a factor {math.exp(-Gam*180):.4f}")
print(f"   the cross term between its two dipoles ({cross:.4f} of the 1/3 own term {own:.4f}) splits the circle into two linear motions at slightly different frequencies;")
print("   each radiates at its own rate. Mark on the rate averaged over many periods.")
Ng, h, A = 10, 1 / 6, 1 / 36
s0 = 0.06
th_s = s0 * ((1 - 1 / Ng**3) / 3 + 1 / Ng**3)
print(f"Home 3, G2: settled twist {th_s:.6f}; t1 = {math.pi*A/(2*h*th_s):.3f}")

print("Home 1, one rotor: its two normal motions (x + y and x - y) with the cross term [D; the dynamic cross term left out, about 1% in the rate]:")
gm = []
for sgn in (+1, -1):
    Om2s = (wA**2 + wp2 * (-own - sgn * cross)) / meff
    Oms = math.sqrt(Om2s)
    G_ = wp2 * Oms * imS(Oms) / meff
    gm.append(G_)
    print(f"   {'x + y' if sgn > 0 else 'x - y'}: frequency {Oms:.5f}; energy loss rate {G_:.5e}")
fac = (math.exp(-gm[0] * 200) + math.exp(-gm[1] * 200)) / (math.exp(-gm[0] * 20) + math.exp(-gm[1] * 20))
print(f"   energy from t = 20 to 200, the two motions sharing it equally at the start: a factor {fac:.4f}; mean rate {(gm[0]+gm[1])/2:.5e}")
fac2 = (math.exp(-gm[0] * 180) + math.exp(-gm[1] * 180)) / (math.exp(-gm[0] * 40) + math.exp(-gm[1] * 40))
print(f"   the same, means over t = 20 to 60 and 160 to 200 (taken at their middles, 40 and 180): a factor {fac2:.4f}")