universal-physics-tensor 0.4.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dimensional/connection-validators.d.ts +59 -1
- package/dist/dimensional/connection-validators.d.ts.map +1 -1
- package/dist/dimensional/connection-validators.js +75 -1
- package/dist/dimensional/connection-validators.js.map +1 -1
- package/dist/dimensional/curvature.d.ts +336 -0
- package/dist/dimensional/curvature.d.ts.map +1 -0
- package/dist/dimensional/curvature.js +291 -0
- package/dist/dimensional/curvature.js.map +1 -0
- package/dist/dimensional/validator.d.ts +5 -3
- package/dist/dimensional/validator.d.ts.map +1 -1
- package/dist/dimensional/validator.js +58 -1
- package/dist/dimensional/validator.js.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/numerical/be37-covariant-eikonal.d.ts +96 -39
- package/dist/numerical/be37-covariant-eikonal.d.ts.map +1 -1
- package/dist/numerical/be37-covariant-eikonal.js +202 -40
- package/dist/numerical/be37-covariant-eikonal.js.map +1 -1
- package/dist/numerical/curvature-lowering-helpers.d.ts +162 -0
- package/dist/numerical/curvature-lowering-helpers.d.ts.map +1 -0
- package/dist/numerical/curvature-lowering-helpers.js +378 -0
- package/dist/numerical/curvature-lowering-helpers.js.map +1 -0
- package/dist/numerical/errors.d.ts +16 -0
- package/dist/numerical/errors.d.ts.map +1 -1
- package/dist/numerical/errors.js +20 -0
- package/dist/numerical/errors.js.map +1 -1
- package/dist/numerical/gl4-integrator.d.ts +167 -0
- package/dist/numerical/gl4-integrator.d.ts.map +1 -0
- package/dist/numerical/gl4-integrator.js +276 -0
- package/dist/numerical/gl4-integrator.js.map +1 -0
- package/dist/numerical/index.d.ts +8 -0
- package/dist/numerical/index.d.ts.map +1 -1
- package/dist/numerical/index.js +4 -0
- package/dist/numerical/index.js.map +1 -1
- package/dist/numerical/lowering.d.ts.map +1 -1
- package/dist/numerical/lowering.js +170 -0
- package/dist/numerical/lowering.js.map +1 -1
- package/dist/numerical/perihelion-finder.d.ts +84 -0
- package/dist/numerical/perihelion-finder.d.ts.map +1 -0
- package/dist/numerical/perihelion-finder.js +261 -0
- package/dist/numerical/perihelion-finder.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,41 +1,69 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* v0.
|
|
2
|
+
* v0.5.0 BE-37 covariant-eikonal numerical evaluator.
|
|
3
3
|
*
|
|
4
4
|
* Provides `evaluateBE37CovariantEikonalNumerical`, which encodes the
|
|
5
5
|
* covariant-eikonal equation
|
|
6
6
|
*
|
|
7
7
|
* g^μν ∇_μ ∇_ν S = 0
|
|
8
8
|
*
|
|
9
|
-
* via the connection layer
|
|
10
|
-
*
|
|
9
|
+
* via the connection layer (Tasks 2-3 + 12-14 of v0.4.0). The eikonal
|
|
10
|
+
* residual is **0 by construction**: the null wave-covector
|
|
11
11
|
*
|
|
12
12
|
* k_μ = ∂_μ S = (E, E, 0, 0) (energy + radial component only)
|
|
13
13
|
*
|
|
14
14
|
* satisfies g^μν k_μ k_ν = 0 identically for the +,−,−,− Schwarzschild
|
|
15
|
-
* metric.
|
|
15
|
+
* metric. No numerical integration is performed for this quantity.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
17
|
+
* `shapiroDelaySec` is computed by **GL4-driven null-geodesic integration**
|
|
18
|
+
* on the canonical (x, p) state in the Schwarzschild spacetime (v0.5.0 Task
|
|
19
|
+
* 12, Phase 2c). The photon propagates from `r = R_far_m` down to
|
|
20
|
+
* `r = R_near_m`; coordinate time at the endpoint minus the flat-space
|
|
21
|
+
* straight-line transit time is returned as the Shapiro delay.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* For the default radial geometry (impact parameter `b_m = 0`) the
|
|
24
|
+
* integrator reproduces the closed-form `(2GM/c³) · ln(R_far/R_near)`
|
|
25
|
+
* (Task 11 cross-checks this to ±2×10⁻³).
|
|
26
|
+
*
|
|
27
|
+
* @see tests/numerical/be37-covariant-eikonal-real.test.ts (Task 12 [U])
|
|
28
|
+
* @see tests/dimensional/covariant-derivative-preview.test.ts (Task 17 [U]/Task 11 [U])
|
|
29
|
+
* @see docs/planning/v0.5.0-Implementation-Plan.md Task 12
|
|
25
30
|
* @module numerical/be37-covariant-eikonal
|
|
26
31
|
* @public
|
|
27
32
|
*/
|
|
28
33
|
/**
|
|
29
|
-
* Input parameters for the BE-37 covariant-eikonal
|
|
34
|
+
* Input parameters for the BE-37 covariant-eikonal evaluator.
|
|
30
35
|
* @public
|
|
31
36
|
*/
|
|
32
37
|
export interface BE37CovariantEikonalInputs {
|
|
33
38
|
/** Gravitational source mass in kilograms (must be > 0). */
|
|
34
39
|
readonly M_kg: number;
|
|
35
|
-
/** Far-point radius in metres, i.e. the signal origin
|
|
40
|
+
/** Far-point radius in metres, i.e. the signal origin (must be > 0). */
|
|
36
41
|
readonly R_far_m: number;
|
|
37
|
-
/** Near-point radius in metres, i.e.
|
|
42
|
+
/** Near-point radius in metres, i.e. the signal destination
|
|
43
|
+
* (must be > 0, ≤ R_far_m, and outside the Schwarzschild horizon). */
|
|
38
44
|
readonly R_near_m: number;
|
|
45
|
+
/**
|
|
46
|
+
* Optional impact parameter `b` in metres for the null geodesic. The
|
|
47
|
+
* photon's angular momentum is set such that the minimum r (closest
|
|
48
|
+
* approach) is `b` in the flat-space limit; `p_φ = b · c` in the
|
|
49
|
+
* affine-parameter normalization used here (`p_t = −c²`).
|
|
50
|
+
*
|
|
51
|
+
* Default `0` — purely radial null geodesic, which reproduces the
|
|
52
|
+
* closed-form `(2GM/c³) · ln(R_far/R_near)` Shapiro delay. Non-zero
|
|
53
|
+
* `b` modifies the geometry and the closed-form comparator changes
|
|
54
|
+
* to `(2GM/c³) · ln((R_far + √(R_far²−b²)) / (R_near + √(R_near²−b²)))`
|
|
55
|
+
* for the single-leg path (closest-approach not crossed).
|
|
56
|
+
*
|
|
57
|
+
* Must satisfy `b ≤ R_near` if non-zero (otherwise the photon cannot
|
|
58
|
+
* reach `R_near` without crossing closest approach).
|
|
59
|
+
*/
|
|
60
|
+
readonly b_m?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Optional GL4 step count override. Default `2048` — sufficient for
|
|
63
|
+
* the default radial geometry to reach ≤1e-6 relative agreement with
|
|
64
|
+
* `evaluateShapiroDelay` on Earth/Mars/Sun scales (Task 11).
|
|
65
|
+
*/
|
|
66
|
+
readonly steps?: number;
|
|
39
67
|
}
|
|
40
68
|
/**
|
|
41
69
|
* Result of `evaluateBE37CovariantEikonalNumerical`.
|
|
@@ -46,45 +74,74 @@ export interface BE37CovariantEikonalResult {
|
|
|
46
74
|
* Numerical residual of the covariant-eikonal equation
|
|
47
75
|
* g^μν ∇_μ ∇_ν S = 0 evaluated at the null wave-covector.
|
|
48
76
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
77
|
+
* Returns exactly 0 by construction — the null wave-covector
|
|
78
|
+
* k_μ = ∂_μ S = (E, E, 0, 0) satisfies g^μν k_μ k_ν = 0
|
|
79
|
+
* identically for the Schwarzschild +,−,−,− metric. No numerical
|
|
80
|
+
* integration is required to establish this; the result is a
|
|
81
|
+
* structural consequence of the null-ray construction.
|
|
54
82
|
*/
|
|
55
83
|
readonly eikonalResidual: number;
|
|
56
84
|
/**
|
|
57
|
-
* Shapiro time delay in seconds via
|
|
85
|
+
* Shapiro coordinate-time delay in seconds, computed via GL4
|
|
86
|
+
* null-geodesic integration on the canonical (x, p) state.
|
|
58
87
|
*
|
|
59
|
-
* **v0.
|
|
60
|
-
*
|
|
61
|
-
* the
|
|
62
|
-
*
|
|
88
|
+
* **v0.5.0 Task 12:** real value (was a documented stub returning 0 in
|
|
89
|
+
* v0.4.0). For the default radial geometry (`b_m = 0`) this agrees with
|
|
90
|
+
* the closed-form `(2GM/c³) · ln(R_far/R_near)` to ≤1e-6 relative at
|
|
91
|
+
* the default step count (Task 11 [U]).
|
|
63
92
|
*/
|
|
64
93
|
readonly shapiroDelaySec: number;
|
|
65
94
|
/**
|
|
66
|
-
* Optional closed-form cross-check value (seconds).
|
|
67
|
-
*
|
|
68
|
-
*
|
|
95
|
+
* Optional closed-form cross-check value (seconds). Not populated by
|
|
96
|
+
* this evaluator — callers cross-check externally against
|
|
97
|
+
* `evaluateShapiroDelay`.
|
|
69
98
|
*/
|
|
70
99
|
readonly closedFormDelaySec?: number;
|
|
71
100
|
}
|
|
72
101
|
/**
|
|
73
|
-
* v0.
|
|
74
|
-
*
|
|
102
|
+
* v0.5.0 BE-37 covariant-eikonal numerical evaluator.
|
|
103
|
+
*
|
|
104
|
+
* Returns:
|
|
105
|
+
* - `eikonalResidual = 0` by construction (null wave-covector identity).
|
|
106
|
+
* - `shapiroDelaySec`: GL4-integrated coordinate-time delay relative to
|
|
107
|
+
* the flat-space straight-line transit, in seconds.
|
|
108
|
+
*
|
|
109
|
+
* **Algorithm — null geodesic in Schwarzschild via GL4.**
|
|
110
|
+
*
|
|
111
|
+
* 1. Schwarzschild radius `r_s = 2GM/c²`. Domain guard `R_near_m > r_s`
|
|
112
|
+
* (else the photon path crosses the event horizon).
|
|
113
|
+
* 2. Set initial state at `(t=0, r=R_far_m, θ=π/2, φ=0)`. Affine-parameter
|
|
114
|
+
* normalization `p_t = −c²` → `dt/dτ = 1/(1−r_s/r) ≈ 1` far from the
|
|
115
|
+
* horizon (τ ≈ coord time). Set `p_θ = 0` (motion confined to equatorial
|
|
116
|
+
* plane), `p_φ = b_m · c` (Killing-vector angular momentum
|
|
117
|
+
* corresponding to flat-limit impact parameter `b_m`).
|
|
118
|
+
* 3. Solve `p_r` from the null condition `g^μν p_μ p_ν = 0` at the
|
|
119
|
+
* initial point, take the negative root (inward motion: `dr/dτ < 0`
|
|
120
|
+
* since `dr/dτ = g^rr p_r = (1−r_s/r) p_r`).
|
|
121
|
+
* 4. Integrate via `integrateGeodesicGL4` for `tauMax` chosen to overshoot
|
|
122
|
+
* `r = R_near_m` (safety factor 1.5 on the flat-space transit time).
|
|
123
|
+
* 5. Walk snapshots; find the first index where `r ≤ R_near_m`. Linearly
|
|
124
|
+
* interpolate `t` between the bracketing snapshots to land exactly on
|
|
125
|
+
* `r = R_near_m`. Take that `t` as the geodesic coord-time transit.
|
|
126
|
+
* 6. Flat-space reference: for a straight-line null ray with impact
|
|
127
|
+
* parameter `b`, time to go from `r_far` to `r_near` (single leg, no
|
|
128
|
+
* closest-approach crossing) is `(√(r_far²−b²) − √(r_near²−b²))/c`.
|
|
129
|
+
* For `b = 0` (default) this reduces to `(R_far − R_near)/c`.
|
|
130
|
+
* 7. `shapiroDelaySec = t_geodesic − t_flat`.
|
|
75
131
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* enforced for API consistency with evaluateShapiroDelay; the constants 0
|
|
80
|
-
* do not depend on the inputs.
|
|
132
|
+
* **Sign convention.** Shapiro delay is positive (light slowed by the
|
|
133
|
+
* gravitational potential). A negative result indicates an integration
|
|
134
|
+
* or reference-frame bug.
|
|
81
135
|
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
136
|
+
* **Impact parameter `b_m`.** Default `0` (radial). The default geometry
|
|
137
|
+
* reproduces the closed-form `evaluateShapiroDelay` to ≤1e-6 relative at
|
|
138
|
+
* 2048 steps for solar-scale Earth/Mars distances (Task 11 cross-check).
|
|
139
|
+
* Non-zero `b_m` requires `b_m ≤ R_near_m` (closest approach `r_min ≈ b`
|
|
140
|
+
* must not lie between R_far and R_near).
|
|
85
141
|
*
|
|
86
|
-
* @param inputs - Source mass + far/near radii (
|
|
87
|
-
* @returns `{eikonalResidual: 0, shapiroDelaySec:
|
|
142
|
+
* @param inputs - Source mass + far/near radii (+ optional `b_m`, `steps`).
|
|
143
|
+
* @returns `{eikonalResidual: 0, shapiroDelaySec: <real, positive>}`.
|
|
144
|
+
* @throws RangeError on out-of-domain inputs.
|
|
88
145
|
* @public
|
|
89
146
|
*/
|
|
90
147
|
export declare function evaluateBE37CovariantEikonalNumerical(inputs: BE37CovariantEikonalInputs): Promise<BE37CovariantEikonalResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"be37-covariant-eikonal.d.ts","sourceRoot":"","sources":["../../src/numerical/be37-covariant-eikonal.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"be37-covariant-eikonal.d.ts","sourceRoot":"","sources":["../../src/numerical/be37-covariant-eikonal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AASH;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;2EACuE;IACvE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;;;;;;OASG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC;;;;;;;;OAQG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACtC;AAgFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAsB,qCAAqC,CACzD,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC,CAqHrC"}
|
|
@@ -1,51 +1,158 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* v0.
|
|
2
|
+
* v0.5.0 BE-37 covariant-eikonal numerical evaluator.
|
|
3
3
|
*
|
|
4
4
|
* Provides `evaluateBE37CovariantEikonalNumerical`, which encodes the
|
|
5
5
|
* covariant-eikonal equation
|
|
6
6
|
*
|
|
7
7
|
* g^μν ∇_μ ∇_ν S = 0
|
|
8
8
|
*
|
|
9
|
-
* via the connection layer
|
|
10
|
-
*
|
|
9
|
+
* via the connection layer (Tasks 2-3 + 12-14 of v0.4.0). The eikonal
|
|
10
|
+
* residual is **0 by construction**: the null wave-covector
|
|
11
11
|
*
|
|
12
12
|
* k_μ = ∂_μ S = (E, E, 0, 0) (energy + radial component only)
|
|
13
13
|
*
|
|
14
14
|
* satisfies g^μν k_μ k_ν = 0 identically for the +,−,−,− Schwarzschild
|
|
15
|
-
* metric.
|
|
15
|
+
* metric. No numerical integration is performed for this quantity.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
17
|
+
* `shapiroDelaySec` is computed by **GL4-driven null-geodesic integration**
|
|
18
|
+
* on the canonical (x, p) state in the Schwarzschild spacetime (v0.5.0 Task
|
|
19
|
+
* 12, Phase 2c). The photon propagates from `r = R_far_m` down to
|
|
20
|
+
* `r = R_near_m`; coordinate time at the endpoint minus the flat-space
|
|
21
|
+
* straight-line transit time is returned as the Shapiro delay.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* For the default radial geometry (impact parameter `b_m = 0`) the
|
|
24
|
+
* integrator reproduces the closed-form `(2GM/c³) · ln(R_far/R_near)`
|
|
25
|
+
* (Task 11 cross-checks this to ±2×10⁻³).
|
|
26
|
+
*
|
|
27
|
+
* @see tests/numerical/be37-covariant-eikonal-real.test.ts (Task 12 [U])
|
|
28
|
+
* @see tests/dimensional/covariant-derivative-preview.test.ts (Task 17 [U]/Task 11 [U])
|
|
29
|
+
* @see docs/planning/v0.5.0-Implementation-Plan.md Task 12
|
|
25
30
|
* @module numerical/be37-covariant-eikonal
|
|
26
31
|
* @public
|
|
27
32
|
*/
|
|
33
|
+
import { integrateGeodesicGL4 } from './gl4-integrator.js';
|
|
34
|
+
// ─── Physical constants (CODATA 2018 + SI definitions) ────────────────────
|
|
35
|
+
const G_SI = 6.6743e-11; // m³ kg⁻¹ s⁻² (matches tests/fixtures/schwarzschild.ts)
|
|
36
|
+
const c_SI = 2.998e8; // m s⁻¹ (matches tests/fixtures/schwarzschild.ts)
|
|
37
|
+
const c2_SI = c_SI * c_SI;
|
|
28
38
|
/**
|
|
29
|
-
*
|
|
30
|
-
* construction for a null ray) and a stub Shapiro delay (0 in v0.4.0).
|
|
39
|
+
* Schwarzschild radius `r_s = 2GM/c²`.
|
|
31
40
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* domain guards (M_kg > 0, R_far_m > 0, R_near_m ∈ (0, R_far_m]) are
|
|
35
|
-
* enforced for API consistency with evaluateShapiroDelay; the constants 0
|
|
36
|
-
* do not depend on the inputs.
|
|
41
|
+
* Mirrors `tests/fixtures/schwarzschild.ts` (kept private here to avoid
|
|
42
|
+
* a src→tests dependency).
|
|
37
43
|
*
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
function schwarzschildRs(M_kg) {
|
|
47
|
+
return (2 * G_SI * M_kg) / c2_SI;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns the contravariant Schwarzschild metric closure g^{μν}(x).
|
|
41
51
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
52
|
+
* SI convention with c² on `g_{tt}` — mirrors the test fixture so the
|
|
53
|
+
* coordinate time `t = x^0` carries seconds and `p_t = −c²` produces
|
|
54
|
+
* `dt/dτ ≈ 1` (τ ≈ coord time far from horizon).
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
function buildGInverseFn(M_kg) {
|
|
59
|
+
const r_s = schwarzschildRs(M_kg);
|
|
60
|
+
return function gInverse(x) {
|
|
61
|
+
const r = x[1];
|
|
62
|
+
const theta = x[2];
|
|
63
|
+
const f = 1 - r_s / r;
|
|
64
|
+
const sinT = Math.sin(theta);
|
|
65
|
+
const gInv = [
|
|
66
|
+
[0, 0, 0, 0],
|
|
67
|
+
[0, 0, 0, 0],
|
|
68
|
+
[0, 0, 0, 0],
|
|
69
|
+
[0, 0, 0, 0],
|
|
70
|
+
];
|
|
71
|
+
gInv[0][0] = -1 / (f * c2_SI);
|
|
72
|
+
gInv[1][1] = f;
|
|
73
|
+
gInv[2][2] = 1 / (r * r);
|
|
74
|
+
gInv[3][3] = 1 / (r * r * sinT * sinT);
|
|
75
|
+
return gInv;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns ∂_λ g^{μν}(x) with index order `dg[λ][μ][ν]`.
|
|
80
|
+
*
|
|
81
|
+
* Only ∂_r and ∂_θ entries are non-zero (static, axisymmetric metric).
|
|
82
|
+
* Sign of `dg[1][0][0] = ∂_r g^{tt} = +r_s/(r²(1−r_s/r)²c²)` matches the
|
|
83
|
+
* Task 0 fixture fix (positive — incorrectly negative in the v0.5.0
|
|
84
|
+
* pre-Task-3 fixture; reversal would push the photon outward).
|
|
85
|
+
*
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
function buildDgInverseFn(M_kg) {
|
|
89
|
+
const r_s = schwarzschildRs(M_kg);
|
|
90
|
+
return function dgInverse(x) {
|
|
91
|
+
const r = x[1];
|
|
92
|
+
const theta = x[2];
|
|
93
|
+
const sinT = Math.sin(theta);
|
|
94
|
+
const cosT = Math.cos(theta);
|
|
95
|
+
const f = 1 - r_s / r;
|
|
96
|
+
const dg = Array.from({ length: 4 }, () => Array.from({ length: 4 }, () => [0, 0, 0, 0]));
|
|
97
|
+
// ∂_r entries (axis 1)
|
|
98
|
+
dg[1][0][0] = r_s / (r * r * f * f * c2_SI);
|
|
99
|
+
dg[1][1][1] = r_s / (r * r);
|
|
100
|
+
dg[1][2][2] = -2 / (r * r * r);
|
|
101
|
+
dg[1][3][3] = -2 / (r * r * r * sinT * sinT);
|
|
102
|
+
// ∂_θ entry (axis 2)
|
|
103
|
+
dg[2][3][3] = (-2 * cosT) / (r * r * sinT * sinT * sinT);
|
|
104
|
+
return dg;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* v0.5.0 BE-37 covariant-eikonal numerical evaluator.
|
|
109
|
+
*
|
|
110
|
+
* Returns:
|
|
111
|
+
* - `eikonalResidual = 0` by construction (null wave-covector identity).
|
|
112
|
+
* - `shapiroDelaySec`: GL4-integrated coordinate-time delay relative to
|
|
113
|
+
* the flat-space straight-line transit, in seconds.
|
|
114
|
+
*
|
|
115
|
+
* **Algorithm — null geodesic in Schwarzschild via GL4.**
|
|
116
|
+
*
|
|
117
|
+
* 1. Schwarzschild radius `r_s = 2GM/c²`. Domain guard `R_near_m > r_s`
|
|
118
|
+
* (else the photon path crosses the event horizon).
|
|
119
|
+
* 2. Set initial state at `(t=0, r=R_far_m, θ=π/2, φ=0)`. Affine-parameter
|
|
120
|
+
* normalization `p_t = −c²` → `dt/dτ = 1/(1−r_s/r) ≈ 1` far from the
|
|
121
|
+
* horizon (τ ≈ coord time). Set `p_θ = 0` (motion confined to equatorial
|
|
122
|
+
* plane), `p_φ = b_m · c` (Killing-vector angular momentum
|
|
123
|
+
* corresponding to flat-limit impact parameter `b_m`).
|
|
124
|
+
* 3. Solve `p_r` from the null condition `g^μν p_μ p_ν = 0` at the
|
|
125
|
+
* initial point, take the negative root (inward motion: `dr/dτ < 0`
|
|
126
|
+
* since `dr/dτ = g^rr p_r = (1−r_s/r) p_r`).
|
|
127
|
+
* 4. Integrate via `integrateGeodesicGL4` for `tauMax` chosen to overshoot
|
|
128
|
+
* `r = R_near_m` (safety factor 1.5 on the flat-space transit time).
|
|
129
|
+
* 5. Walk snapshots; find the first index where `r ≤ R_near_m`. Linearly
|
|
130
|
+
* interpolate `t` between the bracketing snapshots to land exactly on
|
|
131
|
+
* `r = R_near_m`. Take that `t` as the geodesic coord-time transit.
|
|
132
|
+
* 6. Flat-space reference: for a straight-line null ray with impact
|
|
133
|
+
* parameter `b`, time to go from `r_far` to `r_near` (single leg, no
|
|
134
|
+
* closest-approach crossing) is `(√(r_far²−b²) − √(r_near²−b²))/c`.
|
|
135
|
+
* For `b = 0` (default) this reduces to `(R_far − R_near)/c`.
|
|
136
|
+
* 7. `shapiroDelaySec = t_geodesic − t_flat`.
|
|
137
|
+
*
|
|
138
|
+
* **Sign convention.** Shapiro delay is positive (light slowed by the
|
|
139
|
+
* gravitational potential). A negative result indicates an integration
|
|
140
|
+
* or reference-frame bug.
|
|
141
|
+
*
|
|
142
|
+
* **Impact parameter `b_m`.** Default `0` (radial). The default geometry
|
|
143
|
+
* reproduces the closed-form `evaluateShapiroDelay` to ≤1e-6 relative at
|
|
144
|
+
* 2048 steps for solar-scale Earth/Mars distances (Task 11 cross-check).
|
|
145
|
+
* Non-zero `b_m` requires `b_m ≤ R_near_m` (closest approach `r_min ≈ b`
|
|
146
|
+
* must not lie between R_far and R_near).
|
|
147
|
+
*
|
|
148
|
+
* @param inputs - Source mass + far/near radii (+ optional `b_m`, `steps`).
|
|
149
|
+
* @returns `{eikonalResidual: 0, shapiroDelaySec: <real, positive>}`.
|
|
150
|
+
* @throws RangeError on out-of-domain inputs.
|
|
44
151
|
* @public
|
|
45
152
|
*/
|
|
46
153
|
export async function evaluateBE37CovariantEikonalNumerical(inputs) {
|
|
47
|
-
const { M_kg, R_far_m, R_near_m } = inputs;
|
|
48
|
-
// Domain guards
|
|
154
|
+
const { M_kg, R_far_m, R_near_m, b_m = 0, steps = 2048 } = inputs;
|
|
155
|
+
// ─── Domain guards ──────────────────────────────────────────────────────
|
|
49
156
|
if (!Number.isFinite(M_kg) || M_kg <= 0) {
|
|
50
157
|
throw new RangeError(`evaluateBE37CovariantEikonalNumerical: M_kg must be a finite positive number, got ${M_kg}`);
|
|
51
158
|
}
|
|
@@ -58,23 +165,78 @@ export async function evaluateBE37CovariantEikonalNumerical(inputs) {
|
|
|
58
165
|
if (R_near_m > R_far_m) {
|
|
59
166
|
throw new RangeError(`evaluateBE37CovariantEikonalNumerical: R_near_m (${R_near_m}) must be ≤ R_far_m (${R_far_m})`);
|
|
60
167
|
}
|
|
168
|
+
if (!Number.isFinite(b_m) || b_m < 0) {
|
|
169
|
+
throw new RangeError(`evaluateBE37CovariantEikonalNumerical: b_m must be a finite non-negative number, got ${b_m}`);
|
|
170
|
+
}
|
|
171
|
+
if (b_m > R_near_m) {
|
|
172
|
+
throw new RangeError(`evaluateBE37CovariantEikonalNumerical: b_m (${b_m}) must be ≤ R_near_m (${R_near_m}); closest-approach geometry not supported`);
|
|
173
|
+
}
|
|
174
|
+
const r_s = schwarzschildRs(M_kg);
|
|
175
|
+
if (R_near_m <= r_s * 1.01) {
|
|
176
|
+
throw new RangeError(`evaluateBE37CovariantEikonalNumerical: R_near_m (${R_near_m}) must be safely outside the Schwarzschild horizon r_s=${r_s}`);
|
|
177
|
+
}
|
|
61
178
|
// ─── Eikonal residual ────────────────────────────────────────────────────
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
// the null wave-covector k_μ = ∂_μ S = (E, E, 0, 0) in Schwarzschild
|
|
65
|
-
// coordinates. For a null ray, by definition:
|
|
66
|
-
//
|
|
67
|
-
// g^μν k_μ k_ν = 0
|
|
68
|
-
//
|
|
69
|
-
// This is a structural consequence of the null-ray construction — it does
|
|
70
|
-
// not depend on M_kg, R_far_m, or R_near_m. The residual is exactly 0.
|
|
179
|
+
// g^μν k_μ k_ν = 0 by construction for the null wave-covector
|
|
180
|
+
// k_μ = (E, E, 0, 0). Structural — independent of M_kg, R_far, R_near.
|
|
71
181
|
const eikonalResidual = 0;
|
|
72
|
-
// ─── Shapiro delay
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
|
|
182
|
+
// ─── Shapiro delay via GL4 null-geodesic integration ────────────────────
|
|
183
|
+
const gInverseFn = buildGInverseFn(M_kg);
|
|
184
|
+
const dgInverseFn = buildDgInverseFn(M_kg);
|
|
185
|
+
// Initial state at (t=0, r=R_far, θ=π/2, φ=0). Equatorial plane (p_θ=0).
|
|
186
|
+
// Affine-parameter normalization: p_t = -c² makes dt/dτ ≈ 1 far from
|
|
187
|
+
// horizon, so τ ≈ coord time t and tauMax can be set in units of seconds.
|
|
188
|
+
const x0 = [0, R_far_m, Math.PI / 2, 0];
|
|
189
|
+
const p_t = -c2_SI;
|
|
190
|
+
const p_phi = b_m * c_SI; // Killing-vector conservation: classical b = p_φ/(|p_t|/c²·c) = p_φ/c.
|
|
191
|
+
const p_theta = 0;
|
|
192
|
+
// Solve null condition g^μν p_μ p_ν = 0 for p_r at the initial point:
|
|
193
|
+
// g^tt p_t² + g^rr p_r² + g^φφ p_φ² = 0 (θ=π/2)
|
|
194
|
+
// ⇒ p_r² = (−g^tt p_t² − g^φφ p_φ²) / g^rr
|
|
195
|
+
const gInv0 = gInverseFn(x0);
|
|
196
|
+
const numerator = -gInv0[0][0] * p_t * p_t - gInv0[3][3] * p_phi * p_phi;
|
|
197
|
+
if (numerator < 0) {
|
|
198
|
+
throw new RangeError(`evaluateBE37CovariantEikonalNumerical: null condition has no real p_r at R_far=${R_far_m} (impact parameter b=${b_m} too large for this geometry; numerator=${numerator})`);
|
|
199
|
+
}
|
|
200
|
+
const p_r_magnitude = Math.sqrt(numerator / gInv0[1][1]);
|
|
201
|
+
// Inward motion: dr/dτ = g^rr p_r = (1-r_s/r) p_r < 0 ⇒ p_r < 0.
|
|
202
|
+
const p_r = -p_r_magnitude;
|
|
203
|
+
const initialState = {
|
|
204
|
+
x: x0,
|
|
205
|
+
p: [p_t, p_r, p_theta, p_phi],
|
|
206
|
+
};
|
|
207
|
+
// Choose tauMax to overshoot R_near with safety margin. With p_t = -c²
|
|
208
|
+
// and far from horizon, dr/dτ ≈ -c for b=0 (radial); slightly slower for
|
|
209
|
+
// non-zero b. Flat-space single-leg time = (√(R_far² − b²) − √(R_near² − b²))/c.
|
|
210
|
+
const flatLegFar = Math.sqrt(R_far_m * R_far_m - b_m * b_m);
|
|
211
|
+
const flatLegNear = Math.sqrt(R_near_m * R_near_m - b_m * b_m);
|
|
212
|
+
const t_flat = (flatLegFar - flatLegNear) / c_SI;
|
|
213
|
+
const tauMax = t_flat * 1.5;
|
|
214
|
+
const snapshots = integrateGeodesicGL4(initialState, {
|
|
215
|
+
steps,
|
|
216
|
+
tauMax,
|
|
217
|
+
gInverseFn,
|
|
218
|
+
dgInverseFn,
|
|
219
|
+
domainMinRadius: r_s * 1.01,
|
|
220
|
+
});
|
|
221
|
+
// Find the first snapshot with r ≤ R_near_m and linearly interpolate t.
|
|
222
|
+
let t_geodesic;
|
|
223
|
+
for (let i = 1; i < snapshots.length; i++) {
|
|
224
|
+
const rPrev = snapshots[i - 1].x[1];
|
|
225
|
+
const rCurr = snapshots[i].x[1];
|
|
226
|
+
if (rPrev > R_near_m && rCurr <= R_near_m) {
|
|
227
|
+
const tPrev = snapshots[i - 1].x[0];
|
|
228
|
+
const tCurr = snapshots[i].x[0];
|
|
229
|
+
// Linear interpolation: alpha = (R_near - rPrev) / (rCurr - rPrev), in [0, 1].
|
|
230
|
+
const alpha = (R_near_m - rPrev) / (rCurr - rPrev);
|
|
231
|
+
t_geodesic = tPrev + alpha * (tCurr - tPrev);
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (t_geodesic === undefined) {
|
|
236
|
+
const rFinal = snapshots[snapshots.length - 1].x[1];
|
|
237
|
+
throw new Error(`evaluateBE37CovariantEikonalNumerical: photon did not reach R_near=${R_near_m} within tauMax=${tauMax} s; final r=${rFinal}. Try increasing steps or tauMax.`);
|
|
238
|
+
}
|
|
239
|
+
const shapiroDelaySec = t_geodesic - t_flat;
|
|
78
240
|
return { eikonalResidual, shapiroDelaySec };
|
|
79
241
|
}
|
|
80
242
|
//# sourceMappingURL=be37-covariant-eikonal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"be37-covariant-eikonal.js","sourceRoot":"","sources":["../../src/numerical/be37-covariant-eikonal.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"be37-covariant-eikonal.js","sourceRoot":"","sources":["../../src/numerical/be37-covariant-eikonal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,6EAA6E;AAC7E,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,yDAAyD;AAClF,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,2DAA2D;AACjF,MAAM,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;AA0E1B;;;;;;;GAOG;AACH,SAAS,eAAe,CAAC,IAAY;IACnC,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC;AACnC,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,eAAe,CACtB,IAAY;IAEZ,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAClC,OAAO,SAAS,QAAQ,CAAC,CAAwB;QAC/C,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACf,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACnB,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC7B,MAAM,IAAI,GAAe;YACvB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,C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