Skip to main content

All Questions

1 vote
1 answer
113 views

Accounting for expansion in $N$-Body gravitational simulations

I have an $N$-Body simulation for the evolution of the universe. It uses a hybrid Tree Particle-Mesh scheme to compute the forces. The tree code used Newtons law of gravity: $$\textbf{F}_i = -G \sum_{...
James's user avatar
  • 13
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 ...
Jesse's user avatar
  • 111