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

s3_prep.py

In the investigation at sim/m8_engine/s3_prep.py · last changed in commit a66cab2, 25 November 2026 · 2,974 bytes · runnable copies in the scripts zip


#!/usr/bin/env python3
"""Numbers for the lock of run S3, computed before the lock is written (a derivation, not a run of the engine).
P4: one held charge alone. Its frequency, with the static self-field (-1/3) and the field's inertia ((2/3) G(0)), and its loss by radiation
from the lattice's own density of light-modes: Im S(w) = pi <(1 - Kx^2/K^2) delta(K^2 - w^2)> over the zone, by a surface integral [D]."""
import math
import subprocess

import numpy as np

print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip())
G0 = 0.25273100985866                                    # Watson's integral over 2 [S]; the outline's and my checks' value
N = 64
G_N = 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)
print(f"G(0) endless {G0:.6f}; on a {N}^3 box (no k = 0 mode) {G_N:.6f}")


def imS(w, ndir=200000, seed=1):
    """pi <(1 - Kx^2/K^2) delta(K^2 - w^2)>: (1/(2 pi)^3) int over the surface K^2 = w^2 of (1 - Kx^2/K^2) dS/|grad K^2|, times pi.
    Directions from a Fibonacci sphere; along each, the radius where K^2 = w^2 by Newton's method; dS = rho^2 dOmega/|n . n_S|... written as
    int dOmega rho^2 f/(n . grad K^2)."""
    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
        F = (4 * np.sin(kk / 2) ** 2).sum(1) - w * w
        dF = (2 * np.sin(kk) * n).sum(1)
        rho -= F / dF
    kk = rho[:, None] * n
    Kv = 2 * np.sin(kk / 2)
    f = 1 - Kv[:, 0] ** 2 / (Kv**2).sum(1)
    dF = (2 * np.sin(kk) * n).sum(1)
    integral = (4 * np.pi / ndir) * np.sum(rho**2 * f / dF)
    return math.pi * integral / (2 * math.pi) ** 3


for w in (0.1, 0.3):
    print(f"   check: lattice Im S({w}) / Larmor's w/(6 pi) = {imS(w)/(w/(6*math.pi)):.6f}")
dt = 0.1
for label, wp2 in (("P4a", 0.5), ("P4b", 0.25)):
    wb2 = 0.36 - wp2 / 3                                  # the static hold puts the charge, with its own field, at 0.6 before the field's inertia
    meff = 1 + wp2 * (2 / 3) * G_N
    Om2t = (wb2 + wp2 * (1 - 1 / N**3) / 3) / meff       # Omega~^2
    Omt = math.sqrt(Om2t)
    Om = 2 / dt * math.asin(Omt * dt / 2)                 # the stepped frequency
    rat = imS(Omt) / (Omt / (6 * math.pi))
    Gam = wp2 * Omt * imS(Omt) / meff
    Gam_L = wp2 * Omt**2 / (6 * math.pi) / meff
    Om_noinertia = 2 / dt * math.asin(math.sqrt(wb2 + wp2 * (1 - 1 / N**3) / 3) * dt / 2)
    print(f"{label}: wp2 = {wp2}, wb2 = {wb2:.6f}; field's inertia m_eff = {meff:.6f}; predicted frequency {Om:.6f} (without the field's inertia {Om_noinertia:.6f});")
    print(f"     energy loss rate {Gam:.6e} (Larmor's, same m_eff: {Gam_L:.6e}; lattice/Larmor {rat:.5f})")