OGRe: An Object-Oriented General Relativity Package for Mathematica

Barak Shoshany
9/6/2021
cs.MScs.SCgr-qc

Official code: bshoshany/OGRe (148 stars, Wolfram Language, MIT, last commit 2026-05-02).

Abstract

We present OGRe, a modern Mathematica package for tensor calculus, designed to be both powerful and user-friendly. The package can be used in a variety of contexts where tensor calculations are needed, in both mathematics and physics, but it is especially suitable for general relativity.

Show full abstract

By implementing an object-oriented design paradigm, OGRe allows calculating arbitrarily complicated tensor formulas easily, and automatically transforms between index configurations and coordinate systems behind the scenes as needed, eliminating user errors by making it impossible for the user to combine tensors in inconsistent ways. Other features include displaying tensors in various forms, automatic calculation of curvature tensors and geodesic equations, easy importing and exporting of tensors between sessions, optimized algorithms and parallelization for improved performance, and more.

View on arXivView PDF

Code Implementations(1)

bshoshany/OGReOfficial100%
MIT

An object-oriented general relativity package for Mathematica.

14822Wolfram LanguageFeb 10, 20217 months agoMIT
differential-geometrygeneral-relativityscientific-computingtensortensors

Similar Papers

Cite this paper

@article{shoshany2021ogre,
  title  = {OGRe: An Object-Oriented General Relativity Package for Mathematica},
  author = {Barak Shoshany},
  year   = {2021},
  eprint = {2109.04193},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04193}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.04193.svg)](https://codeofpaper.com/paper/2109.04193)

Discussion