2
votes
2answers
100 views

Modeling a potential well

I attempted to simulate the interaction of a moving particle and a potential well in Mathematica. The particle should experience a force of -$1/r^2$, if the equation for the potential well is -$1/r$. ...
0
votes
3answers
139 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 ...
-3
votes
1answer
66 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 ...
4
votes
3answers
167 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
0answers
37 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 ...
0
votes
0answers
121 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 ...
0
votes
0answers
41 views

A Global Measure on a Gravitational System

I am a computer science engineer and I am trying to simulate the gravity on my computer; several objects with different masses randomly distributed in a Three-dimensional space. I would like to ...
3
votes
1answer
134 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 timestep ...
7
votes
1answer
147 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), ...
6
votes
2answers
247 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
0answers
59 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
1answer
371 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 ...
0
votes
1answer
251 views

Software to simulate dynamics of objects in a given gravitation field [closed]

I want to simulate and test set of 2D designs that basically have pulley/gear/chain-linked systems under Gravity (For e.g. to check how a pulley would rotate given particular weights, of course I'm ...
6
votes
1answer
300 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
1answer
165 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 ...
2
votes
1answer
797 views

Simulating Gravity in 3D Game?

Alright, I am writing a space simulator for a 3D game and I would like to implement gravity of objects into it. Is there a nice way to find a velocity vector which can be added to my engine output ...
5
votes
3answers
243 views

Simulate a physical impact of objects made of finite, small elements

I want to simulate an impact between two bodies according to gravity, and eventually considering other forces to stick matter together. I'd like to use python to do this, but I am open to ...