# 横の境目が速度の緩和率 c の -1/2 乗によるか（ぶれなし、I/B=64、v=1.5、c=3 は lateral_edge_v_1109.jsonl の 2.836）
import json, xsec
xsec.ZLO=1.0
for c in (1.5,6.0):
    xsec.CRELAX=c
    r=xsec.run(64.0,X0=48,hold=True,level=True,N=3000,zhi=2.0,k=8.0,seg=True,W=48.0,noise=0.0,speed=1.5)
    edge=sum(0.25*x for a,n,x in r['prof'] if x is not None)
    print(json.dumps(dict(IB=64,c=c,edge_over_rs=round(edge,3),pred=round(2.836*(c/3)**-0.5,3))),flush=True)
