All Questions
Tagged with gravity simulations
33
questions
2
votes
1
answer
1k
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, ...
5
votes
1
answer
161
views
Identify binary stars in nbody simulation
I'm doing a nbody simulation, and I'm interested in the formation of binary systems in the temporal evolution. I can identify them by eye, but I don't know an algoritmic criteria that can say me if ...
4
votes
4
answers
942
views
How can I add dark matter to my $N$-body simulation?
I've written a simple non-scientific N-body simulation for fun:
http://magwo.github.io/fullofstars/
I expected to create something looking like spinning galaxies (there are two invisible very heavy ...
1
vote
3
answers
2k
views
Why does my gravity simulation do this? [closed]
For a school project i created a simple 2D gravity sim in Matlab using the simplest possible method. There are 2 nested loops so that the total force and acceleration of every object can be calculated....
-2
votes
1
answer
347
views
Finding the constant of gravity in a game [closed]
Minecraft is a game of mining where one digs and finds ore (to put it simply). the world is composed of "blocks" 3 dimensional cubes that have different "pictures" on them, that make them appear like ...
7
votes
3
answers
2k
views
Using 2D position, velocity, and mass to determine the parametric position equations for an orbiting body
I have a gravity-related question. I am programming an orbit simulator. I have everything up and running, but I would like to render the smaller body's orbital path (the larger body is fixed). To do ...
2
votes
0
answers
110
views
Calculating gravity with inclometer?
How would one calculate the gravity vector for [X,Y,Z] by using an inclinometer which gives Pitch, Yaw and Roll.
A little explanation of the goal: I have a accelerometer I was planning to use to map ...
1
vote
0
answers
388
views
Repulsive forces at large distances
I'm currently writing a 3D $n$-body simulator (similar to what you see here to simulate the evolution of a system of n particles under the force of gravity.
It works fine for "smaller" scale ...
5
votes
3
answers
837
views
How is relativistic $N$-body simulation possible without knowing the entire histories of each particle?
In $N$-body simulation you need to know the positions of the particles in order to calculate the force between them. The new velocity of each particle can then be calculated given a simulation ...
15
votes
3
answers
885
views
Are there models/simulations of antigravitational antimatter-galaxies?
In the comments to another question's answer, I started wondering:
Assuming antimatter possessed negative gravitational mass§ (which is not proven impossible to date, though deemed unlikely though ...
6
votes
2
answers
411
views
Physics and math behind flight through solar system: Where to start?
I wrote a first program that simulates a solar system. I was able to calculate the locations for every planet on its elliptical route for any given time.
In a second program i managed to simulate ...
3
votes
0
answers
90
views
Modeling the formation of a stellar system and matter accretion
I am trying to figure out what do I need to know to properly simulate the creation of a solar system from a particle cloud with random distribution of hydrogen atoms.
Being more of a programming ...
2
votes
1
answer
976
views
Simulations of Planetary Motions
I wrote a spreadsheet that simulates the trajectory of 3 planets in 2D space. The method is simple: for each moment in space, calculate the force felt and velocity of each planet, then for the next $\...
10
votes
1
answer
698
views
Why doesn't my particle simulation end in a flat disc?
I've made a 3d particle simulator where particles are attracted to each other by the inverse of the square radius. The purpose of my experiment is to see if this alone would create a flat disk (like ...
4
votes
1
answer
257
views
Simulating a black hole binary system
As part of a project for my degree I am writing code to simulate N-body gravitational interactions, however I have to then use this code to investigate something. Struggling to think of ideas I ...