Vortex-p: a Helmholtz-Hodge and Reynolds decomposition algorithm for particle-based simulations
arXiv:2407.02562 · doi:10.1016/j.cpc.2024.109305
Abstract
Astrophysical turbulent flows display an intrinsically multi-scale nature, making their numerical simulation and the subsequent analyses of simulated data a complex problem. In particular, two fundamental steps in the study of turbulent velocity fields are the Helmholtz-Hodge decomposition (compressive+solenoidal; HHD) and the Reynolds decomposition (bulk+turbulent; RD). These problems are relatively simple to perform numerically for uniformly-sampled data, such as the one emerging from Eulerian, fix-grid simulations; but their computation is remarkably more complex in the case of non-uniformly sampled data, such as the one stemming from particle-based or meshless simulations. In this paper, we describe, implement and test vortex-p, a publicly available tool evolved from the vortex code, to perform both these decompositions upon the velocity fields of particle-based simulations, either from smoothed particle hydrodynamics (SPH), moving-mesh or meshless codes. The algorithm relies on the creation of an ad-hoc adaptive mesh refinement (AMR) set of grids, on which the input velocity field is represented. HHD is then addressed by means of elliptic solvers, while for the RD we adapt an iterative, multi-scale filter. We perform a series of idealised tests to assess the accuracy, convergence and scaling of the code. Finally, we present some applications of the code to various SPH and meshless finite-mass (MFM) simulations of galaxy clusters performed with OpenGadget3, with different resolutions and physics, to showcase the capabilities of the code.
arXiv commentAccepted for publication in Computer Physics Communications. 20 pages, 13 figures + appendices. The code is available in https://github.com/dvallesp/vortex-p and the documentation can be accessed in https://vortex-particles.github.io
References in corpus (51)
- Improving convergence in smoothed particle hydrodynamics simulations without pairing instability
- The Statistics of Supersonic Isothermal Turbulence
- Phantom: A smoothed particle hydrodynamics and magnetohydrodynamics code for astrophysics
- On the Star Formation Efficiency of Turbulent Magnetized Clouds
- Modelling discontinuities and Kelvin-Helmholtz instabilities in SPH
- Turbulent gas motions in galaxy cluster simulations: The role of SPH viscosity
- On the universality of supersonic turbulence
- Properties of Cosmic Shock Waves in Large Scale Structure Formation
- Evolving turbulence and magnetic fields in galaxy clusters
- Cluster mergers and non-thermal phenomena: expectations from a statistical magneto-turbulent model
- Non-hydrostatic gas in the core of the relaxed galaxy cluster A1795
- On the nature of hydrostatic equilibrium in galaxy clusters
- The Fractal Density Structure in Supersonic Isothermal Turbulence: Solenoidal versus Compressive Energy Injection
- Turbulent Motions and Shocks Waves in Galaxy Clusters simulated with AMR
- Bubbles, feedback and the intra-cluster medium: three-dimensional hydrodynamic simulations
- Accurate, Meshless Methods for Magneto-Hydrodynamics
- Massive and Refined. II. The statistical properties of turbulent motions in massive galaxy clusters with high spatial resolution
- Resolved magnetic dynamo action in the simulated intracluster medium
- Nonthermal Emissions from Particles Accelerated by Turbulence in Clusters of Galaxies
- Comparing Numerical Methods for Isothermal Magnetized Supersonic Turbulence
- A non-ideal MHD Gadget: Simulating massive galaxy clusters
- Turbulence and Vorticity in Galaxy Clusters Generated by Structure Formation
- Turbulence in the ICM from mergers, cool-core sloshing and jets: results from a new multi-scale filtering approach
- Hydrodynamical adaptive mesh refinement simulations of turbulent flows - II. Cosmological simulations of galaxy clusters
- Vorticity, Shocks and Magnetic Fields in Subsonic, ICM-like Turbulence
- The Matryoshka Run (II): Time Dependent Turbulence Statistics, Stochastic Particle Acceleration and Microphysics Impact in a Massive Galaxy Cluster
- Astrophysical turbulence modeling
- Turbulence production and turbulent pressure support in the intergalactic medium
- Physical viscosity in smoothed particle hydrodynamics simulations of galaxy clusters
- Turbulent pressure support and hydrostatic mass-bias in the intracluster medium
- The Matryoshka Run: Eulerian Refinement Strategy to Study Statistics of Turbulence in Virialized Cosmic Structures
- Dynamical evolution of magnetic fields in the intracluster medium
- Massive and refined: a sample of large galaxy clusters simulated at high resolution. I:Thermal gas and shock waves properties
- The turbulent pressure support in galaxy clusters revisited
- Turbulent Amplification and Structure of the Intracluster Magnetic Field
- Cosmological MHD simulations of cluster formation with anisotropic thermal conduction
- Shaping the X-ray spectrum of galaxy clusters with AGN feedback and turbulence
- A new multidimensional AMR Hydro+Gravity Cosmological code
- The impact of numerical viscosity in SPH simulations of galaxy clusters
- Hydrodynamical adaptive mesh refinement simulations of turbulent flows - I. Substructure in a wind
- The Cosmological Simulation Code OpenGadget3 -- Implementation of Meshless Finite Mass
- Adaptive mesh refinement simulations of a galaxy cluster merger - I. Resolving and modelling the turbulent flow in the cluster outskirts
- On the small scale turbulent dynamo in the intracluster medium: A comparison to dynamo theory
- Cosmological shock waves: clues to the formation history of haloes
- A multifiltering study of turbulence in a large sample of simulated galaxy clusters
- Troubled cosmic flows: turbulence, enstrophy and helicity from the assembly history of the intracluster medium
- A disturbing FABLE of mergers, feedback, turbulence, and mass biases in simulated galaxy clusters
- Geometrical on-the-fly shock detection in SPH
- The role of turbulence, magnetic fields and feedback for star formation
- The role of physical and numerical viscosity in hydrodynamical instabilities
- Unravelling cosmic velocity flows: a Helmholtz-Hodge decomposition algorithm for cosmological simulations
Cited by in corpus (7)
- Turbulent Pressure Support in Galaxy Clusters -- Impact of the Hydrodynamical Solver
- Jet interaction with galaxy cluster mergers
- Density Fluctuations in the Intracluster Medium: An Attempt to Constrain Viscosity with Cosmological Simulations
- Turbulence in Simulated Local Cluster Analogs: One-to-one comparisons between SLOW and XRISM/Hitomi
- Magnetic Fields in the Shapley Supercluster Core with POSSUM: Challenging Model Predictions
- cosmokdtree: a flexible OpenMP-parallelized k-d tree for computational astrophysics applications
- Cosmological simulation of a radio synchrotron bridge between pre-merging galaxy clusters