Skip to main content
QUICK REVIEW

[Paper Review] Studying Tidal Effects In Planetary Systems With Posidonius. A N-Body Simulator Written In Rust.

Blanco-Cuaresma, Sergi, Bolmont, Emeline|arXiv (Cornell University)|Oct 15, 2017
Stellar, planetary, and galactic studiesPhysics and Astronomy8 citations
TL;DR

Posidonius is a high-performance, memory-safe N-body simulator written in Rust that models tidal effects in planetary systems, including spin evolution and stellar dissipation. It outperforms Mercury-T by over six times in speed, conserves angular momentum and spin evolution orders of magnitude better, and enables reproducible, reliable simulations of systems like TRAPPIST-1 with advanced tidal prescriptions.

ABSTRACT

Planetary systems with several planets in compact orbital configurations such as TRAPPIST-1 are surely affected by tidal effects. Its study provides us with important insight about its evolution. We developed a second generation of a N-body code based on the tidal model used in Mercury-T, re-implementing and improving its functionalities using Rust as programming language (including a Python interface for easy use) and the WHFAST integrator. The new open source code ensures memory safety, reproducibility of numerical N-body experiments, it improves the spin integration compared to Mercury-T and allows to take into account a new prescription for the dissipation of tidal inertial waves in the convective envelope of stars. Posidonius is also suitable for binary system simulations with evolving stars.

Motivation & Objective

  • To develop a modern, reliable N-body simulator for studying tidal interactions in compact planetary systems such as TRAPPIST-1.
  • To overcome memory safety and reproducibility issues inherent in legacy Fortran-based codes like Mercury-T.
  • To improve numerical accuracy in spin evolution and angular momentum conservation compared to existing tools.
  • To enable efficient, user-friendly simulation setup via a Python interface while maintaining high computational performance.
  • To incorporate updated tidal dissipation models for convective stellar envelopes and evolving stars.

Proposed method

  • Rewrote the Mercury-T tidal N-body code in Rust to ensure memory safety and eliminate common memory bugs.
  • Integrated the WHFAST symplectic integrator for stable long-term orbital dynamics.
  • Implemented a new prescription for tidal inertial wave dissipation in convective stellar envelopes based on recent theoretical models.
  • Provided a Python-based scripting interface for defining initial conditions and managing simulation workflows.
  • Enabled automatic recovery snapshots to allow stopping and resuming simulations without data loss.
  • Ensured full reproducibility by storing initial conditions, JSON configuration, and binary snapshots.

Experimental results

Research questions

  • RQ1Can a modern systems programming language like Rust significantly improve the reliability and performance of N-body simulations in astrophysics?
  • RQ2How does Posidonius compare to Mercury-T in conserving angular momentum and spin evolution over long-term simulations?
  • RQ3To what extent does the new tidal dissipation model for convective envelopes affect planetary system evolution in compact systems?
  • RQ4Can a high-performance, memory-safe N-body code be made both user-friendly and suitable for complex astrophysical simulations?
  • RQ5How well does Posidonius reproduce known benchmark simulations from Mercury-T?

Key findings

  • Posidonius is more than six times faster than Mercury-T on average, despite using a different design pattern.
  • It conserves the total angular momentum of the system one order of magnitude better than Mercury-T.
  • It improves the conservation of spin evolution by five orders of magnitude compared to Mercury-T.
  • The code successfully reproduces key simulations from Mercury-T, including those with resonant configurations and tidal evolution.
  • The simulation of TRAPPIST-1 with full tidal, relativistic, and rotational flattening effects shows stable 3:2 and 4:3 mean-motion resonances over 10 million years.
  • Recovery snapshots allow simulations to be paused and resumed without loss of data or accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.