OGRePy: An Object-Oriented General Relativity Package for Python

Barak Shoshany
{"title":"OGRePy: An Object-Oriented General Relativity Package for Python","authors":"Barak Shoshany","doi":"arxiv-2409.03803","DOIUrl":null,"url":null,"abstract":"We present OGRePy, the official Python port of the popular Mathematica tensor\ncalculus package OGRe (Object-Oriented General Relativity) - a powerful, yet\nuser-friendly, tool for advanced tensor calculations in mathematics and\nphysics, especially suitable for general relativity. The Python port uses the\nsame robust and performance-oriented algorithms as the original package, and\nretains its core design principles. However, its truly object-oriented\ninterface, enabled by Python, is more intuitive and flexible than the original\nMathematica implementation. It utilizes SymPy for symbolic computations and\nJupyter as a notebook interface. OGRePy allows calculating arbitrary tensor\nformulas using any combination of addition, multiplication by scalar, trace,\ncontraction, partial derivative, covariant derivative, and permutation of\nindices. Transformations of the tensor components between different index\nconfigurations and/or coordinate systems are performed seamlessly behind the\nscenes as needed, eliminating user error due to combining incompatible\nrepresentations, and guaranteeing consistent results. In addition, the package\nprovides facilities for easily calculating various curvature tensors and\ngeodesic equations in multiple representations. This paper presents the main\nfeatures of the package in great detail, including many examples of its use in\nthe context of general relativity research.","PeriodicalId":501113,"journal":{"name":"arXiv - MATH - Differential Geometry","volume":"30 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - MATH - Differential Geometry","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.03803","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We present OGRePy, the official Python port of the popular Mathematica tensor calculus package OGRe (Object-Oriented General Relativity) - a powerful, yet user-friendly, tool for advanced tensor calculations in mathematics and physics, especially suitable for general relativity. The Python port uses the same robust and performance-oriented algorithms as the original package, and retains its core design principles. However, its truly object-oriented interface, enabled by Python, is more intuitive and flexible than the original Mathematica implementation. It utilizes SymPy for symbolic computations and Jupyter as a notebook interface. OGRePy allows calculating arbitrary tensor formulas using any combination of addition, multiplication by scalar, trace, contraction, partial derivative, covariant derivative, and permutation of indices. Transformations of the tensor components between different index configurations and/or coordinate systems are performed seamlessly behind the scenes as needed, eliminating user error due to combining incompatible representations, and guaranteeing consistent results. In addition, the package provides facilities for easily calculating various curvature tensors and geodesic equations in multiple representations. This paper presents the main features of the package in great detail, including many examples of its use in the context of general relativity research.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
OGRePy:面向对象的 Python 广义相对论软件包
我们介绍 OGRePy,它是广受欢迎的 Mathematica 张量计算软件包 OGRe(面向对象广义相对论)的官方 Python 移植版。OGRe 是一款功能强大、用户友好的工具,适用于数学和物理学中的高级张量计算,尤其适用于广义相对论。Python 移植版使用了与原始软件包相同的强大和面向性能的算法,并保留了其核心设计原则。然而,与最初的 Mathematica 实现相比,Python 实现的真正面向对象的界面更加直观和灵活。它使用 SymPy 进行符号计算,使用 Jupyter 作为笔记本界面。OGRePy 允许使用加法、标量乘法、跟踪、收缩、偏导数、协变量导数和指数置换的任意组合计算任意张量公式。张量成分在不同索引配置和/或坐标系之间的变换可根据需要在幕后无缝执行,消除了用户因组合不兼容的表示而产生的错误,并保证了结果的一致性。此外,软件包还提供了在多种表示法中轻松计算各种曲率张量和大地方程的功能。本文详细介绍了该软件包的主要功能,包括在广义相对论研究中使用该软件包的许多实例。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Navigation problem; $λ-$Funk metric; Finsler metric The space of totally real flat minimal surfaces in the Quaternionic projective space HP^3 A Corrected Proof of the Graphical Representation of a Class of Curvature Varifolds by $C^{1,α}$ Multiple Valued Functions The versal deformation of Kurke-LeBrun manifolds Screen Generic Lightlike Submanifolds of a Locally Bronze Semi-Riemannian Manifold equipped with an (l,m)-type Connection
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1