Computational relativity solves approximations to Einstein's equations when analytic solutions are unavailable, for example in binary compact-object mergers. The output is not a generic “spacetime image.” It is a numerical solution tied to initial data, a coordinate or gauge choice, a mesh, boundary conditions, an evolution formulation, and evidence that the equations' constraints remain controlled.
Einstein's field equation is
\[G_{\mu\nu}+\Lambda g_{\mu\nu}=\frac{8\pi G}{c^4}T_{\mu\nu}\]The equation is compact, but a numerical initial-value formulation separates it into evolution equations plus constraints. One schematic constraint residual might be logged as
\[R_{\mathrm{constraint}}=\lVert\mathcal C(\text{numerical state})\rVert\]The exact form depends on the formulation; the engineering rule does not. A low residual is evidence about the discretized equations, not a proof that an astrophysical model is complete. Record its norm, where it was measured, and how it changes when the mesh spacing h is refined.
type RelativityRun = {
initialData: InitialData;
gauge: GaugeConfiguration;
mesh: { spacing: number; refinementLevels: number; outerRadius: number };
diagnostics: { constraintL2: number[]; extractionRadius: number };
};
If a second-order scheme is operating in its asymptotic regime, an error estimate often scales roughly as
\[\epsilon(h)\approx C h^p\]with order p inferred from comparisons, not assumed from the method name. Compare at least three resolutions over the same physical setup; check that phase, amplitude, constraints, and extracted observables converge consistently. Also move the outer boundary and extraction surface: an apparently converged central grid can still be contaminated by boundary reflections or gauge effects.
Prediction: A smaller constraint residual alone cannot establish a reliable gravitational-wave prediction if phase changes substantially with resolution or extraction radius.
Imagine three mesh spacings and a waveform phase at a fixed reference frequency. List the four run fields you would compare before reporting a result, then explain which are coordinate choices and which are intended physical outputs.Computational relativity is constrained numerical modeling with unusually high provenance requirements. Keep gauge and discretization choices explicit, monitor constraints, demonstrate refinement and boundary robustness, and distinguish coordinate-dependent implementation state from the physical quantities you intend to report.
Treat the lesson as a small function before treating it as a fact to memorize. Give every value a unit, keep only the state needed for the next step, and make the output easy to inspect.
\[\text{observable output} = f(\text{inputs},\,\text{state})\]For Computational Relativity, write down the quantities you can control, the values your program must retain, and the result a reader could inspect. In Relativity, the useful program is not the drawing: it is the smallest explicit model that makes a prediction you can test.
Prediction: changing one declared input while holding the others fixed should change only the outputs that the model connects to that input. Choose one input, predict the direction of change, then check a limiting case such as zero, a symmetric arrangement, or a familiar low-speed or small-change approximation.
This lesson is a teaching model, not a complete simulator. Before using it outside the stated question, check which interactions, scales, uncertainties, boundary conditions, and measurement limits it leaves out.
Treat Computational Relativity as a contract: named inputs and units enter a rule, the rule produces an observable result, and a known limit or invariant checks whether the implementation deserves trust.
Publish coordinate choices, constraints, solver settings, and refinement evidence with relativity simulations.