OGRePy: An Object-Oriented General Relativity Package for Python
OGRePy is a modern, open-source Python package designed to perform symbolic tensor calculations, with a particular focus on applications in general relativity. Built on an object-oriented architecture, OGRePy encapsulates tensors, metrics, and coordinate systems as self-contained objects, automatica...
Saved in:
| Main Author: | |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
Ubiquity Press
2025-07-01
|
| Series: | Journal of Open Research Software |
| Subjects: | |
| Online Access: | https://account.openresearchsoftware.metajnl.com/index.php/up-j-jors/article/view/558 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Summary: | OGRePy is a modern, open-source Python package designed to perform symbolic tensor calculations, with a particular focus on applications in general relativity. Built on an object-oriented architecture, OGRePy encapsulates tensors, metrics, and coordinate systems as self-contained objects, automatically handling raising and lowering of indices, coordinate transformations, contractions, partial or covariant derivatives, and all tensor operations. By leveraging the capabilities of SymPy and Jupyter Notebook, OGRePy provides a robust, user-friendly environment that facilitates both research and teaching in general relativity and differential geometry. This Python package reproduces the functionality of the popular Mathematica package OGRe, while greatly improving upon it by making use of Python’s native object-oriented syntax. In this paper, we describe OGRePy’s design and implementation, and discuss its potential for reuse across research and education in mathematics and physics. |
|---|---|
| ISSN: | 2049-9647 |