All Questions
14
questions
1
vote
2
answers
125
views
Approximate change in position and velocity over timestep with varying acceleration due to gravitational interactions of many bodies
I'm writing a program that models the gravitational interactions of a number of objects. After the number of bodies exceeds two, the motion can no longer be solved analytically, so the behavior of the ...
0
votes
1
answer
451
views
Calculating orbital path of a planet around a fixed body in a deterministic way given starting conditions
I am making a simulation of the solar system in the unity game engine.
A planet is orbiting a stationary star for now using Newton's law of gravitation where $F = Gm_1m_2/r^2$ for the orbit (force is ...
1
vote
2
answers
115
views
Orbit of Celestial Bodies
To give some insight, I'm creating a simulation, with gravity, planets, forces... And I would like to increase performance, by not doing unnecessary calculations. I could know what calculations, to ...
1
vote
2
answers
196
views
How to know when a body completes an orbit?
I'm simulating a solar system, and I would like to know when a body, has completed an orbit around another. Is there any specific formula for it?
As shown in the picture, the orbit is elliptical, ...
0
votes
2
answers
364
views
Creating a Gravitational 2-body simulation
I am trying to create a simulation for a gravitational 2 body problem.
But I am kind of having trouble to define the equations that can be solve numerically. From an inertial frame I defined the ...
2
votes
1
answer
147
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 ...
3
votes
1
answer
295
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 ...
2
votes
2
answers
1k
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 ...
4
votes
2
answers
84
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 ...
2
votes
1
answer
112
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 ...
1
vote
2
answers
714
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}$$ ...
1
vote
1
answer
475
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 ...
1
vote
1
answer
132
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 ...
0
votes
2
answers
65
views
Why turning velocity of star towards point "A" makes it's satelites, change their apoapsis to side opposite of velocity vector?
Why turning velocity of star towards point "A" makes it's satelites, change their apoapsis to side opposite of velocity vector?
Sentence above turned a bit crazy or not understandable (possible ...