EBWeyl a code to invariantly characterize numerical spacetimes

Research output: Contribution to journalArticlepeer-review

4 Downloads (Pure)


Relativistic cosmology can be formulated covariantly, but in dealing with numerical relativity simulations a gauge choice is necessary. Although observables should be gauge-invariant, simulations do not necessarily focus on their computations, while it is useful to extract results invariantly. To this end, in order to invariantly characterize spacetimes resulting from cosmological simulations, we present two different methodologies to compute the electric and magnetic parts of the Weyl tensor, $E_{\alpha\beta}$ and $B_{\alpha\beta}$, from which we construct scalar invariants and the Weyl scalars. The first method is geometrical, computing these tensors in full from the metric, and the second uses the 3 + 1 slicing formulation. We developed a code for each method and tested them on five analytic metrics, for which we derived $E_{\alpha\beta}$ and $B_{\alpha\beta}$ and the various scalars constructed from them with computer algebra software. We find excellent agreement between the analytic and numerical results. The slicing code outperforms the geometrical code for computational convenience and accuracy; on this basis we make it publicly available in github with the name EBWeyl. We emphasize that this post-processing code is applicable to any numerical spacetime in any gauge.
Original languageEnglish
Article number135010
Number of pages38
JournalClassical and Quantum Gravity
Issue number13
Publication statusPublished - 7 Jun 2023


  • gr-qc
  • astro-ph.CO
  • Weyl tensor
  • , gravito-electromagnetism
  • Petrov classification
  • numerical relativity
  • code test
  • UKRI
  • STFC
  • ST/S000550/1
  • ST/S505651/1
  • ST/T506345/1

Cite this