-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVnV-TODO.ndson
More file actions
1 lines (1 loc) · 870 Bytes
/
VnV-TODO.ndson
File metadata and controls
1 lines (1 loc) · 870 Bytes
1
{"task":"Stress–energy localization at bubble wall","priority":"High","depends_on":"C:\\Users\\%USERNAME%\\Code\\asciimath\\energy\\VnV-TODO.ndjson","source_file":"C:\\Users\\echo_\\Code\\asciimath\\energy\\src\\compute_stress_energy_tensor.py","source_file_lines":"30:40","source_snippet":"def compute_T00(grid_metric: np.ndarray) -> np.ndarray:\n \"\"\"Compute the T_{00} component from g_{μν}.\"\"\"","python_snippet":"import numpy as np\nfrom energy.src.compute_stress_energy_tensor import compute_T00\n# assume metric built for radius R=0.028575\ng = np.load('test_metric.npy')\nt00 = compute_T00(g)\n# negative only near wall: r≈R±δ (δ≈0.002)\nr = np.linspace(0,0.1,100)\nmask_wall = np.abs(r-0.028575)<0.002\nassert np.all(t00[mask_wall]<0), \"T00 not negative on wall\"\nassert np.all(t00[~mask_wall]>=0), \"Unexpected negative T00 outside wall\""}