OGRePy:一个面向对象的广义相对论Python包
OGRePy: An Object-Oriented General Relativity Package for Python
AI总结:
OGRePy是一个基于Python的面向对象广义相对论工具包,通过改进的面向对象语法提升功能,适用于研究与教学
摘要:
OGRePy是一个现代的开源Python包,旨在进行符号张量计算,特别专注于广义相对论的应用。基于面向对象架构,OGRePy将张量、度规和坐标系统作为独立的对象封装,自动处理指标的提升和降低、坐标变换、收缩、偏导数或协变导数以及所有张量运算。通过利用SymPy和Jupyter Notebook的能力,OGRePy提供了一个稳健且用户友好的环境,促进了广义相对论和微分几何的研究与教学。该Python包复现了流行的Mathematica包OGRe的功能,同时通过使用Python原生的面向对象语法大大改进了其性能。在本文中,我们描述了OGRePy的设计和实现,并讨论了其在数学和物理研究与教育中的潜在应用。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。