Does light charge the quons? › Files cited on the page › check_trials25-27_fable/

a4b_box4.py

In the investigation at sim/m8_engine/check_trials25-27_fable/a4b_box4.py · last changed in commit 46c285d, 25 November 2026 · 2,196 bytes · the folder as a zip


"""A4 cross-check (blind): the in-step rotor lattice (spacing 4) is one rotor in a 4^3 periodic box. Thirty-fifth reviewer.
By hand: the images and the k = 0 field shift the hold by wp2 (1/64 - 1/192) = wp2/96 (depolarizing field -P/64 plus the cubic array's Lorentz field +P/192)."""
import subprocess, sys, time
import numpy as np
sys.path.insert(0, "/home/doug/aetherscience.org/aspden-investigation/sim/m8_engine")
import engine as eng
sys.path.insert(0, "/home/doug/aetherscience.org/aspden-investigation/sim/m8_engine/check_trials25-27_fable")
from a2_charge_tools import prony_damped
print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, cwd="/home/doug/aetherscience.org/aspden-investigation").stdout.strip())
print("clock:", time.strftime("%Y-%m-%d %H:%M:%S %Z"))
M_EM, C_XY, wp2, dt = (2 / 3) * 0.252731, -0.135794, 0.2, 0.1
mp = M_EM * wp2
for wb2 in (0.170156, 0.4125):
    shape = (4, 4, 4)
    L = eng.Lattice(shape, dt, wb2=wb2, wp2=wp2, occ=np.zeros((3, *shape)))
    w0 = np.sqrt(wb2 + wp2 / 3)
    L.occ[0, 0, 0, 0] = L.occ[1, 0, 0, 0] = 1; L.P[0, 0, 0, 0] = 1e-3; L.V[1, 0, 0, 0] = w0 * 1e-3
    L.E = eng.static_field_of(L.P)
    Um, px = [], []
    for s in range(int(2000 / dt)):
        Um.append(0.5 * np.sum(L.occ * (wb2 * L.P**2 + L.V**2)) / wp2); px.append(L.P[0, 0, 0, 0]); L.step()
    Um = np.array(Um); t = dt * np.arange(len(Um))
    slope = np.polyfit(t, np.log(Um), 1)[0]
    modes = prony_damped(np.array(px)[t >= 20], dt, 3)
    shift = wp2 / 96
    wp_h = np.sqrt((w0**2 - wp2 * C_XY + shift) / (1 + mp)); wm_h = np.sqrt((w0**2 + wp2 * C_XY + shift) / (1 + mp))
    print(f"\nwb2 = {wb2}: 4^3 box, one rotor, run to t = 2000. Matter energy: -d ln U/dt = {-slope:.2e}; min/max over start {Um.min()/Um[0]:.4f}/{Um.max()/Um[0]:.4f}")
    print("  P_x Prony: " + "; ".join(f"w = {w:.5f}, gamma = {g:.1e}, amp {a:.2e}" for w, g, a in modes[:3]))
    print(f"  by hand (lone-rotor modes shifted by the images, wp2/96): w+ = {wp_h:.5f}, w- = {wm_h:.5f}; without the shift {np.sqrt((w0**2 - wp2 * C_XY) / (1 + mp)):.5f}, {np.sqrt((w0**2 + wp2 * C_XY) / (1 + mp)):.5f}")
print("clock:", time.strftime("%Y-%m-%d %H:%M:%S %Z"))