All Questions

26 questions
38 views

How can I determine a planet's mass based only off of information about its orbit and its parent star?

I'm coding a video game with procedurally generated planetary systems and I want some and I want to make sure I'm at least somewhat scientifically correct. I've reached the part in my code where I ...
43 views

Solar System Position and Velocity data

I'm trying to create an nbody simulator and to test it I'd like some real world data. A good test would be the solar system. I've come across the JPL Horizons software but if cant seem to figure out ...
79 views

Good sources to get velocity/position vectors for all planets and moons in the Solar System for building an orbital simulator?

I’m building an $N$-body simulator, and I have everything ready to begin simulating. But my issue is is that I have no idea how to get all the starting positions and velocities for the celestial ...
415 views

Computerised Solar System Simulation [closed]

In school I am doing a project where using python I simulate the solar system The physics I know so far is newtons laws and Kepler’s laws and I have done a lot of research but there appears to be ...
528 views

Einstein field equations (EFE) $N$-body simulator

I made a $N$-body simulator and it works well, but it uses Newton's gravitational equation, which is nice, but I want it to simulate Einstein field equations. Speed of gravity should be simple enough, ...
145 views

Stable disk for $N$-body simulation

I want to simulate a Galaxy of $N$ particles which I have to generate first. What I have done so fare does not lead to the result I want to see. I probably did an error and don't see it. Here comes ...
154 views

Gravity assist, Coordinate system transformation

I am currently learning about the physics and the mathmatics behind gravity assist. I have a question regarding the coordinate transformation between the planet frame and the sun frame. I want to ...
532 views

Which timestep should I use for a $N$-body simulation of the Solar system?

I am trying to implement a $N$-body simulation of the Solar system and I am stuck on the issue of the simulation timestep size. At first I would like to use a simple Euler stepping scheme. Knowing ...
52 views

How would I find the velocity of an object after it doesn't fully enter the gravitational pull of a planet and is kind sling shot out of its gravity?

Obviously that question doesn't have a lot of jargon having to do with math and physics. I am not a physicist, I'm not a mathematician, I'm trying to make a game and simulate some physics found in ...
85 views

Methods for handling close approaches in $N$-body simulations

In direct gravitational $N$-body simulations, what are the preferred methods for handling close approaches between bodies in order to preserve the accuracy of the evolution of the system?
104 views

Can a planet's orbit around a star be simulated? [closed]

Say I know all parameters like density, size, rotational velocity of a planet, could I predict its orbit around a star where I also know parameters of it? I want to design a simple model of the solar ...
100 views

Testing the accuracy of a solar system simulation

I've written a java program to model the solar system, and I need to test its accuracy. What would be some good ways to do that? I've checked for conservation of energy and angular momentum. I'm using ...
346 views

Maths of elliptical orbits

I have a simulation of the solar system that currently gives me circular orbits. I'm not 100% sure where I've limited my simulation to this, but probably it starts when I use $$v=\frac{2 \pi r}{T}$$ ...
247 views

Units in gravitational N-body simulations

I use a code in Python to simulate a binary system interacting through gravity. You can find it here; The code works fine. I am however having problems with the units of length and velocity. I ...
5k views

What happens if you slow down a moon?

Let's say you'd put a whooping big rocket engine on the surface of the moon, and slow down its orbital velocity. Not to a complete stop, mind you. Just a bit slower than it was going before (a couple ...
437 views

My relevant knowledge: This question works in two dimensions, with a two-body problem (see bottom for context). To my understanding, a two-dimensional orbit has the following orbital elements (3D ...
939 views

Determing Velocity of Moons

I have a question that I believe is relatively easy to answer, I am working on an $N$-body simulation of a fictional star system and am having trouble finding the velocity of moons so that they will ...
2k views

Finding the initial velocity vector of an orbiting body

I'm writing a program that simulates Newton's law of universal gravitation by simply calculating the force and applying it on the objects. The simulation works very well, but now I want to simulate ...
726 views

Is there any free open source planetary orbit simulator software?

I need a free open source planetary orbit simulator software that should be able to calculate orbit stability for a couple simple planetary systems. Basically, I need to calculate orbit durations for ...
106 views

Create a star system fit to conic equation

For simulation purposes, I'm trying to create a binary star system. If I have a conic equation such as $ax^2 + by^2 = c$, and the masses of two stars, how would I find the $x$- and $y$- velocity ...
1k views

My python trajectory calculator for a small mass in a gravitational field - why is energy conservation violated?

I wrote this thing to calculate the next position of a small mass, given its current position and velocity, and a vector field determines acceleration. It sort of works - except I can never get the ...
897 views

Unexpected eccentricity in moon orbit simulation

I've used Mathematica's NDSolve function to calculate the orbit of the Moon around the Earth. I used the following initial positions (perigee): \$\vec{r}_{Earth}=\begin{pmatrix}-\frac{m_{Moon}}{m_{...
207 views

My orbiting body is orbiting about the wrong focus of it's elliptical orbit… why?

I am coding in c++ and am computing the position of an orbiting body as a function of time. Everything is almost working. I have a nice elliptical orbit. Except, my orbiting body speeds up as it ...
237 views

Initial conditions at Lagrange Points

I'm simulating the restricted three body problem. But I don't know how to found the initial conditions of the object located at the Lagrange points analytically or computationally. I mean my problem ...