Skip to main content
QUICK REVIEW

[Paper Review] Mercury-Ar$χ$es: a high-performance n-body code for planet formation studies

D. Turrini, S. Fonte|arXiv (Cornell University)|Jan 23, 2026
Astro and Planetary SciencePhysics and Astronomy0 citations
TL;DR

Mercury-Arχes is a high-performance, OpenMP-parallelized n-body code built on Mercury+ to simulate planet formation with growing planets, disk gas interactions, and planetesimal dynamics.

ABSTRACT

Forming planetary systems are populated by large numbers of gravitationally interacting planetary bodies, spanning from massive giant planets to small planetesimals akin to present-day asteroids and comets. All these planetary bodies are embedded in the gaseous embrace of their native protoplanetary disks, and their interactions with the disk gas play a central role in shaping their dynamical evolution and the outcomes of planet formation. These factors make realistic planet formation simulations extremely computationally demanding, which in turn means that accurately modeling the formation of planetary systems requires the use of high-performance methods. The planet formation code Mercury-Ar$χ$es was developed to address these challenges and, since its first implementation, has been used in multiple exoplanetary and Solar System studies. Mercury-Ar$χ$es is a parallel n-body code that builds on the widely used Mercury code and is capable of modeling the growth and migration of forming planets, the interactions between planetary bodies and the disk gas, as well as the evolving impact flux of planetesimals on forming planets across the different stages of their formation process. In this work we provide the up-to-date overview of its physical modeling capabilities and the first detailed description of its high-performance implementation based on the OpenMP directive-based parallelism for shared memory environments, to harness the multi-thread and vectorization features of modern processor architectures.

Motivation & Objective

  • Provide a self-contained description of Mercury-Arχes modeling capabilities and its high-performance OpenMP implementation.
  • Describe how Mercury+ forms the n-body engine and the parallelization strategy for shared-memory architectures.
  • Detail the Arχes multi-physics library for disk gas interactions, planet growth, migration, and planetesimal disk modeling.
  • Demonstrate performance and scalability of Mercury-Arχes on realistic workloads using different hardware environments.

Proposed method

  • Present Mercury+ as a high-performance hybrid symplectic n-body engine with an OpenMP vectorized implementation and a WHFAST interface for Keplerian drift.
  • Describe the Arχes library components (arxes_common.f90, arxes_disk.f90, arxes_growth.f90, arxes_migration.f90, arxes.for) and their roles in disk gas interactions, planet growth, and migration.
  • Explain the gas-disk modeling including surface density and temperature profiles, gas drag (C_D as a function of Re and Ma), disk gravity, and gas damping effects on planetesimals.
  • Detail the two-phase planetary growth model (solid accretion followed by gas accretion) with equations for mass and radius evolution (Eqs. 13-16).
  • Outline the two-phase migration model (linear and power-law regimes) with drift rates (Eqs. 17-18) and their coupling to growth phases.
  • Describe planetesimal disk treatment as dynamical tracers with inertial mass and density assignments based on position relative to the snowline.

Experimental results

Research questions

  • RQ1How does the Mercury-Arχes framework model the coupled evolution of forming planets and their natal disk, including growth, migration, and disk-gas interactions?
  • RQ2What performance gains and scalability characteristics are achievable with OpenMP parallelization and vectorization on modern architectures for high-resolution planet formation simulations?
  • RQ3How do disk gravity, gas drag, and planetary perturbations collectively influence the dynamical evolution and outcomes of planet formation in this framework?

Key findings

  • Mercury+ provides a high-performance, hybrid symplectic engine with a parallel OpenMP implementation and a WHFAST interface for accurate, efficient Keplerian drift.
  • Mercury-Arχes supports comprehensive multi-physics modeling, including disk gas interactions, planet growth, and migration, enabling self-consistent studies of early planet formation stages.
  • The gas-disk interactions can dominate computational load in certain architectures, justifying parallelization and vectorization of gas-related kernels.
  • The code uses careful design choices to preserve reproducibility between serial and parallel runs, including header conventions and guarded parallel regions.
  • Planetesimal disks are modeled as massless tracers with inertial mass, enabling damping and transport calculations without mutual gravitational forces.

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.