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

shape_sensitivity.py

In the investigation at sim/charge_wave/check_lattices_fable/shape_sensitivity.py · last changed in commit cae720f, 13 November 2026 · 2,177 bytes · the folder as a zip


"""Passing rows whose finer quons sit within about one finer-quon radius of the quon's edge: the hold if each finer quon is a
smaller copy of the quon (a uniform ball of radius b/d = 0.036 finer spacings) instead of a point. The trace rule then counts
the fraction of each finer quon's charge inside the ball (trial 4's p_ball). Checked against section 9.1's sc 24 (0.64 -> 0.17).
Run: ~/aspden-review-venv/bin/python3 shape_sensitivity.py > shape_sensitivity_out.txt"""
import numpy as np
B = rf = 0.036135562
def frac_inside(d, R, r):
    if d + r <= R: return 1.0
    if d - r >= R: return 0.0
    return np.pi * (R + r - d) ** 2 * (d * d + 2 * d * r - 3 * r * r + 2 * d * R + 6 * r * R - 3 * R * R) / (12 * d) / (4 / 3 * np.pi * r ** 3)
cases = [("sc", 24, 8, [(0.8660, 8)], "cube centre"), ("sc", 25, 8, [(0.8660, 8)], "cube centre"), ("sc", 40, 19, [(1.4142, 12)], "on-site"),
         ("sc", 68, 81, [(2.4495, 24)], "on-site"), ("bcc", 34, 9, [(1.2599, 6)], "on-site, shell just outside"), ("bcc", 35, 15, [(1.2599, 6)], "on-site"),
         ("bcc", 58, 51, [(2.0893, 24)], "on-site"), ("bcc", 60, 51, [(2.1822, 8)], "on-site, shell just outside"), ("bcc", 61, 59, [(2.1822, 8)], "on-site"),
         ("bcc", 79, 113, [(2.8173, 24)], "on-site"), ("fcc", 20, 4, [(0.6874, 4)], "tetrahedral"), ("fcc", 23, 6, [(0.7937, 6)], "octahedral"),
         ("fcc", 32, 13, [(1.1225, 12)], "on-site"), ("fcc", 50, 38, [(1.7748, 24)], "octahedral"), ("fcc", 63, 55, [(2.2449, 12)], "on-site"),
         ("fcc", 66, 68, [(2.3478, 24)], "tetrahedral"), ("fcc", 73, 92, [(2.6324, 24)], "octahedral"), ("fcc", 80, 116, [(2.8617, 24)], "octahedral")]
print("row (site, n as points): margin to the edge; hold and share for points -> for smaller-copy finer quons")
for k, N, n, shells, lab in cases:
    a = B * N; y = 4 * np.pi / 3 * a ** 3; n_eff = n
    for dist, count in shells:
        n_eff += count * (frac_inside(dist, a, rf) - (1 if dist < a else 0))
    K0, K1 = (n / y - 1) / 3, (n_eff / y - 1) / 3
    print(f"  {k:3s} N={N:2d} ({lab:26s} n={n:3d}): margin {min(abs(d - a) for d, _ in shells):.4f}; hold {K0:+.4f} -> {K1:+.4f}; share {1 / (1 + K0):.3f} -> {1 / (1 + K1):.3f}")