Search arXivSearch

arXiv · 2511.19442

gr-Orbit-Toolkit: A Python-Based Software for Simulating and Visualizing Relativistic Orbits

Abstract

Creating software dedicated to simulation is essential for teaching and research in Science, Technology, Engineering, and Mathematics (STEM). Physics lecturing can be more effective when digital twins are used to accompany theory classes. Research in physics has greatly benefited from the advent of modern, high-level programming languages, which facilitate the implementation of user-friendly code. Here, we report our own Python-based software, the gr-orbit-toolkit, to simulate orbits in classical and general relativistic scenarios. First, we present the ordinary differential equations (ODEs) for classical and relativistic orbital accelerations. For the latter, we follow a post-Newtonian approach. Second, we describe our algorithm, which numerically integrates these ODEs to simulate the orbits of small-sized objects orbiting around massive bodies by using Euler and Runge-Kutta methods. Then, we study a set of sample two-body models with either the Sun or a black hole in the center. Our simulations confirm that the orbital motions predicted by classical and relativistic ODEs drastically differ for bodies near the Schwarzschild radius of the central massive body. Classical mechanics explains the orbital motion of objects far away from a central massive body, but general relativity is required to study objects moving at close proximity to a massive body, where the gravitational field is strong. Our study on objects with different eccentricities confirms that our code captures relativistic orbital precession. Our convergence analysis shows the toolkit is numerically robust. Our gr-orbit-toolkit aims at facilitating teaching and research in general relativity, so a comprehensive user and developer guide is provided in the public code repository.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Milagros Delgado, Wladimir E. Banda-Barragán. 2025-11-13. gr-Orbit-Toolkit: A Python-Based Software for Simulating and Visualizing Relativistic Orbits. https://doi.org/10.1007/978-3-032-08366-1_20

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Johann Bernoulli's analysis of elastic collisions (a teaching sequence to introduce the dynamic law thereby inspired)

In order to explain an elastic collision, Johann Bernoulli considered two bodies connected by a spring. Motion is defined as a succession of states of rest. Then, considering the spring to be a lever with a body at each extremity, the laws of equilibrium imply that `motion' is described by the time variation of the (common) quantity of motion of the bodies; the dynamic law is thus deduced. This inspires a teaching sequence to introduce the dynamic law (in one dimension) in introductory physics course; we call it ``bernoullian sequence''.

physics.ed-ph

Design and Initial Evaluation of a Photovoltaics-focused Course-based Undergraduate Research Experience in Physics

Traditional physics laboratory courses often focus on experiments with well-known results, limiting students' engagement in authentic scientific practices. Course-based undergraduate research experiences (CUREs), where students engage in real research with unknown outcomes, have been shown to support positive student outcomes, such as increased self-efficacy, persistence, and engagement in scientific practices. However, discipline-specific studies of CUREs in physics remain limited. We describe the development, structure, and initial implementation of a photovoltaics-focused CURE in a second-year undergraduate physics laboratory course at the University of Colorado Boulder. To examine how students experienced the course, we analyzed end-of-semester reflection assignments using the five CURE components (i.e., scientific practices, discovery, relevance, collaboration, and iteration), as well as established dimensions of research authenticity, as analytic frameworks. Students described experiences associated with all five CURE components, with collaboration, relevance, and scientific practices appearing most prominently in their reflections. Students also associated authentic research with meaningful scientific contribution, engagement in authentic scientific practices, and navigating the uncertainty and setbacks inherent in research, although fewer explicitly identified themselves as researchers or scientists. A subset of students additionally connected the course to their immediate thinking about future academic and professional pathways. This work contributes both a discipline-specific model for implementing CUREs in experimental physics laboratory courses and provides insight into how students interpret and experience authentic research within this course context.

physics.ed-ph

A Workshop Series for Effective Use of AI in Uncertain Times: Building a Physics Faculty Learning Community

Generative AI tools are being widely taken up by students in their physics courses and beyond, often before instructors and institutions can develop policies and effective approaches for the use of these tools. Building on a framework for change in the era of AI, we developed and implemented a faculty learning community to help a university physics department address these challenges collectively. Over six biweekly sessions, faculty worked through course policies, classroom conversations about AI, AI-integrated coursework tasks, and assessment. Each session shared a common structure: we presented local data and department-sourced materials, tested them in small groups, and discussed them together, emphasizing durable pedagogical approaches over specific tools and platforms, and leading with evidence of students' own AI use. The series produced a shared, evolving repository of resources for faculty to draw on. This workshop provides an adaptable, theoretically informed model for a faculty learning community that departments can build on.

physics.ed-ph