# Questions tagged [n-body-simulations]

Questions regarding simulations for an n-body problem.

84 questions
Filter by
Sorted by
Tagged with
97 views

### How to speed up REBOUND python simulations on a Jupyter notebook?

I'm running Python based computational astrophysics simulations on a Jupyter notebook, with the help of a library called REBOUND (also using REBOUNDx), to create a simulation containing the solar ...
110 views

### How well are planetary formation models (e.g., determining $\mathrm{\dot{M}_{planet}}$) understood in 2024?

I know that planets can form through accretion, bulging up from $0$ to their final mass $\mathrm{M_{planet}}$ at $\mathrm{M}(t_f)$. I know that when studying Planetary formation and migration theories,...
• 771
125 views

### Corkscrew-like stable two-body system

I recently created a celestial body simulation in python for one of my classes. While playing around with different values I obtained a weird two-body stable system.. For context, these bodies are ...
1 vote
345 views

### Three Body Problem using Python

I need help with an assignment. I'm doing a little project for a subject on my university and as the title says, its to find a solution to the three body problem restricted to a circular motion. The ...
33 views

### How to plot different curves in the same polar cordinates in matplotlib?

I tried to plot the paths of particle of different sizes in the same polar coordinate using the code given below using matplotlib. somewhat like this: Instead I got this plot: while the path for ...
114 views

### How do various astrophysical models deal with so many orders of magnitude in scale? Are there completely different models for different scales?

If we just model our solar system's dynamics, one could use a straightforward numerical integrator with all n(n-1)/2 gravitational interactions along with some torques and non-gravitational forces. ...
• 30.3k
60 views

### Help with simulating long-term orbital dynamics of exoplanetary systems using Rebound

I am a junior in high school working on an independent research project and I need help because I've reached the limits of my knowledge. My goal is to simulate the long-term orbital dynamics of ...
99 views

### Difficulty simulating trajectory of moon and sun for Apollo 11 mission

As an engineering student, I am doing a project about Kalman filtering and the mission Apollo 11. Now I tried to simulate the trajectory of the moon and sun for 3 days (the duration in which the ...
• 55
73 views

### Most accurate way of measuing the radius of a rubble-pile comet in an N-body simulation?

I have written an N-body simulation (close to finished) in C++ which focuses on the tidal disruption of comets. I allow comets to be constructed in 2 ways: Via my HCP (hexagonal-closest-packing) ...
686 views

### How to find zero velocity contours for circular restricted 3-body problem in x-y plane?

(I am having physics background; I am not an astronomer/astrophysicist.) How to solve a single nonlinear algebraic equation in two variables, $x$ and $y$? (I know that - if there are two variables, ...
• 169
3k views

### Would it be possible for a planet to orbit around a trinary star system in a figure 8 orbit?

I know that it is possible for a 3-body system to be "stable" in a figure-8 pattern. It's only stable if it is set up perfectly with no outside forces, but that's fine with me. If there were ...
• 79
203 views

### Different techniques for calculation of celestial bodies dynamics with different time-scales

Differential equations describing the dynamics of celestial bodies (rotation, nutation, precession and other effects) can be solved numerically, which makes it possible to study their general non-...
• 873
960 views

### Does the barycenter of an n-body system remain constant during collisions?

I am developing an n-body simulation software which simulates collisions. Most of these have a stationary frame of reference, meaning that orbiting objects may eventually move off the screen. To ...
• 6,684
196 views

### How to get JPL Ephemeris data to work in n-body simulation or why is Mercury flying to Jupiter

I wanted to make a n-body simulation for an art project. I used this n-body algorithm, which includes a stable system for the Sun + gas giants, but no inner planets. I wanted to simulate inner planets ...
• 131
59 views

### RAMSES fine multigrid Poisson solver fails to converge?

I am working on setting up N-body simulations of galaxy mergers. The initial conditions are generated from the DICE code, and looking at them, they seem very realistic. Unfortunately, when I let ...
389 views

### Initial state for a 3-body problem to create Figure 8 [ restricted to 2D ]

I've made an n-body simulation solution using the naive algorithm of O(n^2) in my library ChelseaaJS. I was trying to make some pleasing 3 Body simulations. I wanna do the 8 figure thing. I know it's ...
2k views

### What is Gravitational softening length?

I was reading the Aquarius simulation preprint (Springel et al. 2008) The Aquarius Project: the subhalos of galactic halos as a reference for my internship. I came across the term Gravitational ...
479 views

• 451
406 views

### If an orbit is shifting due to orbital precession, is it still a Keplerian orbit?

I was thinking about orbits a few days ago, and realized that orbits shift/precess naturally. Given that a two-body problem with a star and a planet, if the planet has an eccentric orbit that ...
• 6,684
745 views

### 'Little h' usage in cosmological simulations

I am running a cosmological simulation and am having some trouble putting things into code units. The physical distance units in my simulation are in terms of $\text{Mpc/h}$, where $h$ is the ...
• 141
267 views

### What kind of triangle is formed by three unequal masses in a circular restricted three body orbit?

This answer to Are the orbits of all triple star systems at least technically unstable? mentions: There are known solutions to the gravitational three body problem that can be shown to be stable. ...
• 30.3k
1 vote
215 views

### Code/Package for multiple planet simulation

I want to do a quick study and some tests on the planet-star dynamics ( including the movement of the star). I'm looking for a code that simulates some planets orbiting a star. I've tried searching ...
• 381
213 views

### Peculiar Amplitude of Earth's Orbit in Z Axis

I'm currently building an N-body simulator for my masters project and I'm using JPL's Horizons system to compare against. I started with just a couple orbits and everything seemed to be working ...
• 143
1 vote