Does light charge the quons? › Files cited on the page › check_reflection_fable/

check_edge_crossing.py

In the investigation at sim/charge_wave/check_reflection_fable/check_edge_crossing.py · last changed in commit 87fc6d0, 12 November 2026 · 1,713 bytes · the folder as a zip


"""check_edge_crossing.py - the ball radius (in finer spacings) at which the midpoint of a finer-cell edge becomes lower in
energy than the finer quon itself (E(edge) = E(0)), and the corresponding N at Aspden's radius; finer quons as Gaussians of
s2 N = 0.02 (as R2b) and 0.005 (nearer points). Also the barrier between the two minima at a*N = 0.60."""
import itertools, math
import numpy as np
CUT = 41.4
B_ASP = 0.036135562
def F_ball(x): return 3 * (np.sin(x) - x * np.cos(x)) / x ** 3
for s2N in (0.02, 0.005):
    M = int(math.ceil(math.sqrt(CUT / (2 * math.pi ** 2 * s2N ** 2)))) + 1
    h = np.arange(-M, M + 1)
    m = np.array(list(itertools.product(h, h, h)), float)
    m2 = np.einsum("ni,ni->n", m, m); keep = m2 > 0; m, m2 = m[keep], m2[keep]
    edge = np.array([0, 0, 0.5])
    def dE(aN, u):
        coef = F_ball(2 * np.pi * np.sqrt(m2) * aN) * np.exp(-2 * math.pi ** 2 * s2N ** 2 * m2)
        return np.sum(coef / m2 * (1 - np.cos(2 * np.pi * (m @ u))))
    lo, hi = 0.50, 0.62
    for _ in range(50):
        mid = 0.5 * (lo + hi)
        if dE(mid, edge) > 0: lo = mid
        else: hi = mid
    ac = 0.5 * (lo + hi)
    yf = 4 * math.pi / 3 * ac ** 3
    print(f"s2 N = {s2N}: E(edge midpoint) = E(0) at a*N = {ac:.5f} (y_f = {yf:.4f}, K_T(0) there = {(1/yf - 1)/3:+.4f}); at Aspden's radius N = {ac/B_ASP:.2f}")
    # barrier along the edge at a*N = 0.60 (units 1/(pi N^2) of the lock's E; N = 4 -> divide by 16 pi)
    us = np.linspace(0, 0.5, 51)
    prof = np.array([dE(0.60, np.array([0, 0, t])) for t in us]) / (16 * math.pi)
    print(f"   a*N = 0.60, N = 4: E(u) - E(0) along the edge: max {prof.max():+.3e} at u = {us[np.argmax(prof)]:.2f} delta; at the midpoint {prof[-1]:+.3e}")