schwarzschild | time WebGL visualization of a Schwarzschild Black Hole | Code Inspection library
kandi X-RAY | schwarzschild Summary
kandi X-RAY | schwarzschild Summary
A real-time WebGL visualization of a Schwarzschild Black Hole.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of schwarzschild
schwarzschild Key Features
schwarzschild Examples and Code Snippets
Community Discussions
Trending Discussions on schwarzschild
QUESTION
I am trying to solve a system of geodesics orbital equations using python. They are coupled ordinary equations. I've tried different approaches, but they all yielded me a wrong shape (the shape should be some periodic function when plotting r and phi). Any idea on how to do this? Here are my constants
...ANSWER
Answered 2020-Mar-26 at 05:32It seems like you are looking at the spacial coordinates in an invariant plane of the geodesic equations of an object moving in Schwarzschild gravity.
One can use many different methods, which preserve as much of the underlying geometric structure of the model as possible, like symplectic geometric integrators or perturbation theory. However, I suspect that the default method for solve_ivp() is 4th order Runge-Kutta, which is a fairly good, direct and simple method.
Warnng: your initial condition for Y
equals Schwarzschild's radius, so these equations may fail or require special treatment (especially the time component of the equations, which you have not included here!) It may be that you have to switch to different coordinates, that remove the singularity at the even horizon. Moreover, the solutions may not be periodic curves, but quasi-periodic, so they may not close up nicely.
For a quick and dirty treatment, but possibly a fairly accurate one, I would differentiate the first equation
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install schwarzschild
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page