High-Fidelity Simulations of Objects in Accretion Disks by Coupling REBOUND to a Hydrodynamics Code
Year: 2024
Type: article
Abstract: Motivation Motivation• Our group is interested in dynamical systems embedded in hydrodynamical environments.• For complex N-body systems, simple numerical integrators can have adverse effects on the solution.• We want to study arbitrarily complicated N-body systems embedded in gaseous objects and not have to worry about our integrator. Planets in Protoplanetary Disks Black holes in AGN Disks Motivation• Our group is interested in dynamical systems embedded in hydrodynamical environments.• For complex N-body systems, simple numerical integrators can have adverse effects on the solution.• We want to study arbitrarily complicated N-body systems embedded in gaseous objects and not have to worry about our integrator. Planets in Protoplanetary Disks Black holes in AGN DisksHow do you couple REBOND to a hydro code? Coupling REBOUND to a Hydrodynamics Code• Our group has coupled REBOUND to 3 hydro codes of varying complexity:• Lessons we've learned for CMake build environments:• Very straightforward to include librebound.so and rebound.hwith minor modifications for C++ code.• We do not need any modifications to REBOUND source code.• For C++ host codes, redefine restrict to __restrict__ before including rebound.h.• Linking can be tricky on a Mac, but ChatGPT knows the way.• We often copy the rebound simulation (either direct copies or reading from restart files). This can cause screen spew of warnings about resetting function pointers. At the moment, we have to redirect stdout to avoid this.• Implementation details (Artemis specific):• Build N-Body system through the input file in an object orientated way -specify particles and their properties and the tie particles to other particles (binary systems, triple systems, planetary systems, etc.).• Global reductions keep running totals of forces on each particle, total mass accreted, collisions, etc.• Includes PN corrections to particle-particle forces via a generic "extra forces" interface.• Each particle accretes mass and can trigger mesh refinement around itself.
Institution: Los Alamos National Laboratory
Language: English
Subfield: Astronomy and Astrophysics
Field: Physics and Astronomy
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W4400599345
