SearcharxivSearch

arXiv subjects

Troels Haugbolle

Publications and source records attributed to Troels Haugbolle.

3 recordsLinked to original sources

RAMSES-GPU: Cell-by-Cell Adaptive Mesh Refinement with Magneto-Hydrodynamics and Self-Gravity on Graphics Processing Units

We present the implementation and optimization of the cosmological simulation code RAMSES on Graphics Processing Units (GPUs) using CUDA Fortran. This accelerated version ports the main computational routines, including hydrodynamics, particle dynamics, and self-gravity, to multi-GPU architectures. We detail our strategy for managing cell-by-cell Adaptive Mesh Refinement (AMR) on the GPU, utilizing bucket sort with prefix sums for AMR level sorting, radix sort via the CUB library for Hilbert key ordering, and an fnv64 hash table with linear probing for fast spatial indexing. Portability across diverse hardware architectures is achieved via a dispatcher and C-Fortran wrappers, calling CUDA, HIP, and Metal kernels directly translated from the CUDA Fortran framework. Hydrodynamics updates are executed via a Godunov MUSCL-Hancock HLLC Riemann solver managed through a three-tier shared-memory kernel architecture (named rock, paper, and scissor). Particle mass deposition uses Cloud-in-Cell (CIC) interpolation optimized with atomic additions or prefix sums, combined with a kick-drift-kick time integration pusher. Self-gravity is handled via a Multigrid (MG) Poisson solver performing hierarchical V-cycles on individual levels. Performance benchmarks conducted on NVIDIA A100 and H200 GPUs demonstrate substantial accelerations compared to multi-core CPUs, yielding 10x up to a 100x speedup for standard test problems such as the Sedov blast wave, molecular core collapse, and cosmological simulations. Finally, we briefly discuss additional accelerated physics modules, including equilibrium cooling, polytropic equations of state, ideal and non-ideal magneto-hydrodynamics (MHD), and stellar feedback.

astro-ph.IM

Supernova Driving. II. Compressive Ratio in Molecular-Cloud Turbulence

The compressibility of molecular cloud (MC) turbulence plays a crucial role in star formation models, because it controls the amplitude and distribution of density fluctuations. The relation between the compressive ratio (the ratio of powers in compressive and solenoidal motions) and the statistics of turbulence has been previously studied systematically only in idealized simulations with random external forces. In this work, we analyze a simulation of large-scale turbulence (250 pc) driven by supernova (SN) explosions that has been shown to yield realistic MC properties. We demonstrate that SN driving results in MC turbulence with a broad lognormal distribution of the compressive ratio, with a mean value $\approx 0.3$, lower than the equilibrium value of $\approx 0.5$ found in the inertial range of isothermal simulations with random solenoidal driving. We also find that the compressibility of the turbulence is not noticeably affected by gravity, nor are the mean cloud radial (expansion or contraction) and solid-body rotation velocities. Furthermore, the clouds follow a general relation between the rms density and the rms Mach number similar to that of supersonic isothermal turbulence, though with a large scatter, and their average gas density PDF is described well by a lognormal distribution, with the addition of a high-density power-law tail when self-gravity is included.

astro-ph.GA

Residual Hubble-bubble effects on supernova cosmology

Even in a universe that is homogeneous on large scales, local density fluctuations can imprint a systematic signature on the cosmological inferences we make from distant sources. One example is the effect of a local under-density on supernova cosmology. Also known as a Hubble-bubble, it has been suggested that a large enough under-density could account for the supernova magnitude- redshift relation without the need for dark energy or acceleration. Although the size and depth of under-density required for such an extreme result is extremely unlikely to be a random fluctuation in an on-average homogeneous universe, even a small under-density can leave residual effects on our cosmological inferences. In this paper we show that there remain systematic shifts in our cosmological parameter measure- ments, even after excluding local supernovae that are likely to be within any small Hubble-bubble. We study theoretically the low-redshift cutoff typically imposed by supernova cosmology analyses, and show that a low-redshift cut of z0 \sim 0.02 may be too low based on the observed inhomogeneity in our local universe. Neglecting to impose any low-redshift cutoff can have a significant effect on the cosmological pa- rameters derived from supernova data. A slight local under-density, just 30% under-dense with scale 70h^{-1} Mpc, causes an error in the inferred cosmological constant density ΩΛ of \sim 4%. Imposing a low-redshift cutoff reduces this systematic error but does not remove it entirely. A residual systematic shift of 0.99% remains in the inferred value ΩΛ even when neglecting all data within the currently pre- ferred low-redshift cutoff of 0.02. Given current measurement uncertainties this shift is not negligible, and will need to be accounted for when future measurements yield higher precision.

astro-ph.CO