Celestial Rhapsody ================== **Celestial Rhapsody** simulates a set of bodies moving under their mutual Newtonian gravity and turns the result into an animation. The whole system is described in a small input file, so no programming is needed. .. image:: _static/three_body.gif :width: 420 :alt: Three bodies on a periodic orbit All it takes is one command: .. code-block:: bash nbody run my_system.json which writes ``my_system.gif``. .. toctree:: :maxdepth: 2 :caption: User guide installation tutorial input_format cli .. toctree:: :maxdepth: 2 :caption: Reference api physics development What it does ------------ For each body :math:`i` the code computes the acceleration .. math:: \ddot{\mathbf r}_i = -G \sum_{k \neq i} m_k \frac{\mathbf r_i - \mathbf r_k}{|\mathbf r_i - \mathbf r_k|^3} and advances positions and velocities with a 4th-order Runge-Kutta scheme (Euler and RK2 are also available). See :doc:`physics` for details. Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`