pycauset.spacetime.Schwarzschild
Inherits from: Spacetime
Schwarzschild black hole, geometry-only, exterior region r > 2M in Schwarzschild coordinates.
Parameters
- dimension (int): Spacetime dimension. Only
2(1+1, radial) is implemented. - mass (float): The mass
M(horizon atr = 2M). - r_max (float): The outer radial cutoff.
- time_extent (float): The time range.
Notes (honest caveats)
is_causalis the exact 1+1 radial null condition via the tortoise coordinater* = r + 2M ln(r/2M − 1):Δt ≥ |Δr*|. Higher dimensions (the angular null geodesic) are a research task and raiseNotImplementedError.- The sampler is uniform in
(t, r)over the exterior patch (a documented parametrization). scalar_coeffsraisesNotImplementedError, coefficients are manual(a, b).- Reissner–Nordström / Kerr / Kerr–Newman are parked (see the R2 roadmap).
Methods
is_causal
True iff v is in the future of u under the radial null condition Δt ≥ |Δr*|.
Example
import pycauset as pc
from pycauset import spacetime
c = pc.causet(n=200, spacetime=spacetime.Schwarzschild(mass=1.0), seed=1)