Does light charge the quons? › Files cited on the page › check_pages_10_14_fable/
scan_anisotropic.py
"""Can an anisotropic lattice reach the tau pair's Q under Aspden's rules I1-I4 and I7 (I5 dropped, as trial 15 drops it)?
Tetragonal (a, a, c) and orthorhombic (a, b, c) Bravais lattices: every site is an inversion centre, so each quon is at an
electrostatic equilibrium (unstable or not: Aspden's balance does not test stability, and the record's simple cubic is itself
unstable to shear, charging quons 9.7). Wigner-Seitz cell = the box; B = (2 pi/3)<rho^2>, <rho^2> = (a^2 + b^2 + c^2)/12."""
import numpy as np
from scipy import constants as Kc
from scipy.special import erfc
from scipy.optimize import brentq
pc = Kc.physical_constants
me = pc["electron mass energy equivalent in MeV"][0]; mmu = pc["muon mass energy equivalent in MeV"][0]; mtau = pc["tau mass energy equivalent in MeV"][0]
alpha = Kc.fine_structure; CQ = (3/(4*np.pi))*(96*np.pi)**3*128*np.pi; aws = (3/(4*np.pi))**(1/3)
Tpair, Tone = 2*mtau/mmu, mtau/mmu
def ewald_bravais(prim, eta, rmax=10.0, gmax=22.0):
V = abs(np.linalg.det(prim)); rec = 2*np.pi*np.linalg.inv(prim).T
nm = int(np.ceil(rmax/min(np.linalg.norm(prim,axis=1))))+2; rng = np.arange(-nm,nm+1)
n = np.array(np.meshgrid(rng,rng,rng,indexing="ij")).reshape(3,-1).T.astype(float)
R = np.linalg.norm(n@prim,axis=1); R = R[(R>1e-12)&(R<rmax)]
gm = int(np.ceil(gmax/min(np.linalg.norm(rec,axis=1))))+2; rng = np.arange(-gm,gm+1)
m = np.array(np.meshgrid(rng,rng,rng,indexing="ij")).reshape(3,-1).T.astype(float)
G = np.linalg.norm(m@rec,axis=1); G = G[(G>1e-12)&(G<gmax)]
return np.sum(erfc(eta*R)/R) + (4*np.pi/V)*np.sum(np.exp(-G**2/(4*eta**2))/G**2) - 2*eta/np.sqrt(np.pi) - np.pi/(eta**2*V)
XMIN = (1/(4*np.pi**2*4608))**(1/6) # the balance's minimum, L_min = 0.665: below it there is no root
LMIN = 8*np.pi*XMIN**2 + XMIN**-4/(4608*np.pi)
def bal(L):
if L <= LMIN: return float('nan')
return brentq(lambda x: 8*np.pi*x**2 + x**-4/(4608*np.pi) - L, XMIN, 3.0, xtol=1e-15)
def Q_of_box(a, b, c):
s = (a*b*c)**(-1/3); a, b, c = a*s, b*s, c*s # unit volume per site
prim = np.diag([a, b, c]); phi = ewald_bravais(prim, 2.0); phi2 = ewald_bravais(prim, 1.4)
B = (2*np.pi/3)*(a*a+b*b+c*c)/12; L = -(phi+B); x = bal(L); Q = CQ*alpha*x**9
return phi, B, L, x, Q, abs(phi-phi2)
print("Tetragonal lattices (a, a, c), gamma = c/a; Aspden's balance with I1-I4, I7; Q = E0/(hbar Omega)")
print(f"targets: tau pair Q = {Tpair:.3f}; one tau Q = {Tone:.3f}; simple cubic Q = {Q_of_box(1,1,1)[4]:.2f}; the balance needs L > {LMIN:.4f} (x > {XMIN:.4f})")
print(f"{'gamma':>7s} {'phi_site':>11s} {'Madelung':>9s} {'B':>8s} {'L':>8s} {'x':>8s} {'Q':>9s} {'E0,2 GeV':>9s} {'144 pi x':>9s}")
for g in (0.25, 0.33, 0.5, 0.7, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0, 6.0, 8.0):
phi, B, L, x, Q, spr = Q_of_box(1, 1, g)
print(f"{g:7.2f} {phi:11.6f} {phi/2*aws:9.4f} {B:8.4f} {L:8.4f} {x:8.5f} {Q:9.2f} {Q*mmu/1e3:9.3f} {144*np.pi*x:9.2f} (eta spread {spr:.0e})")
# solve for the gamma that gives each target, on each side of 1
for T, lab in ((Tpair, "tau pair"), (Tone, "one tau")):
for lo, hi in ((1.05, 12.0), (0.05, 0.95)):
f = lambda g: Q_of_box(1, 1, g)[4] - T
try:
g = brentq(f, lo, hi, xtol=1e-6); phi, B, L, x, Q, _ = Q_of_box(1, 1, g)
print(f" {lab}: Q = {T:.3f} at gamma = c/a = {g:.4f}: Madelung {phi/2*aws:.4f} e^2/a_ws, B = {B:.4f}, L = {L:.4f}, x = {x:.5f}, 144 pi x = {144*np.pi*x:.1f}")
except ValueError as e:
print(f" {lab}: no root in gamma in ({lo}, {hi})")
print("\nOrthorhombic (1, b, c), a few shapes")
for b, c in ((1.5, 2.0), (2.0, 2.0), (1.0, 3.0), (0.5, 2.0), (2.0, 4.0)):
phi, B, L, x, Q, _ = Q_of_box(1, b, c)
print(f" (1, {b}, {c}): Madelung {phi/2*aws:.4f}, B = {B:.4f}, L = {L:.4f}, x = {x:.5f}, Q = {Q:.2f}, E0,2 = {Q*mmu/1e3:.3f} GeV")
print("\nRoots: the c/a at which a tetragonal layer's Q equals each target (brackets free of the no-root region)")
for T, lab in ((Tpair, "tau pair"), (Tone, "one tau")):
for lo, hi in ((1.8, 2.5), (0.34, 0.9)): # Q(2.5) = 6.1 < target < Q(1.8); beyond c/a = 2.9 the balance has no root
f = lambda g: Q_of_box(1, 1, g)[4] - T
try:
g = brentq(f, lo, hi, xtol=1e-7); phi, B, L, x, Q, _ = Q_of_box(1, 1, g)
print(f" {lab}: Q = {T:.3f} at c/a = {g:.4f}: Madelung {phi/2*aws:.4f} e^2/a_ws, B = {B:.4f}, L = {L:.4f}, x = {x:.5f}, Q = {Q:.3f}, E0,2 = {Q*mmu/1e3:.3f} GeV, I5 would give 1/alpha = {144*np.pi*x:.1f} ({(144*np.pi*x*alpha-1)*100:+.0f}%)")
except ValueError:
print(f" {lab}: no root in ({lo}, {hi})")
print("\nVerification of the anisotropic Ewald sum: tetragonal c/a = 2 as a Bravais lattice vs as a (1,1,4) supercell with two sites")
def ewald_basis(prim, basis, eta, rmax=10.0, gmax=22.0):
nb = len(basis); V = abs(np.linalg.det(prim)); rec = 2*np.pi*np.linalg.inv(prim).T
nm = int(np.ceil(rmax/min(np.linalg.norm(prim,axis=1))))+2; rng = np.arange(-nm,nm+1)
n = np.array(np.meshgrid(rng,rng,rng,indexing="ij")).reshape(3,-1).T.astype(float); R = n@prim
real = 0.0
for b in basis:
dv = R + (b-basis[0]); r = np.linalg.norm(dv,axis=1); r = r[(r>1e-12)&(r<rmax)]; real += np.sum(erfc(eta*r)/r)
gm = int(np.ceil(gmax/min(np.linalg.norm(rec,axis=1))))+2; rng = np.arange(-gm,gm+1)
m = np.array(np.meshgrid(rng,rng,rng,indexing="ij")).reshape(3,-1).T.astype(float); G = m@rec; g = np.linalg.norm(G,axis=1)
sel = (g>1e-12)&(g<gmax); G = G[sel]; g = g[sel]; S = np.zeros(len(g), complex)
for b in basis: S += np.exp(1j*G@(basis[0]-b))
return real + (4*np.pi/V)*np.sum(np.exp(-g**2/(4*eta**2))/g**2*S.real) - 2*eta/np.sqrt(np.pi) - np.pi*nb/(eta**2*V)
s = 2**(-1/3) # unit volume per site: a = s, c = 2s
v_brav = ewald_bravais(np.diag([s, s, 2*s]), 2.0)
v_super = ewald_basis(np.diag([s, s, 4*s]), np.array([[0,0,0],[0,0,2*s]]), 2.0)
print(f" Bravais {v_brav:.10f}; supercell {v_super:.10f}; difference {abs(v_brav-v_super):.1e}")
print("\nThe stretched layer in detail, and the same for a flattened one (post hoc, the eighteenth reviewer): Q by tuning the shape only")
for g in (2.1, 2.2, 2.3, 0.40, 0.425, 0.45):
phi, B, L, x, Q, _ = Q_of_box(1, 1, g)
print(f" c/a = {g:.3f}: Madelung {phi/2*aws:.4f}, B = {B:.4f}, L = {L:.4f}, x = {x:.5f}, Q = {Q:.2f}, E0,2 = {Q*mmu/1e3:.3f} GeV = {Q/Tpair:.2f} tau pairs")