Search arXiv⌕ Search

arXiv subjects

James Watt

Publications and source records attributed to James Watt.

3 recordsLinked to original sources

JAFF: Bridging astrochemical network formats, live photochemistry and multi\-language code generation

Chemistry plays an important role in shaping the observable properties of the interstellar and circumgalactic media, as well as protostellar and protoplanetary disks. Chemical processes in these environments are often out of equilibrium, so numerical simulations with detailed chemistry are necessary both for accurate physical predictions and for the validation of simulations against observations. However, current numerical infrastructure for incorporating on-the-fly chemistry into numerical simulations is limited by two factors: lack of cross-compatibility of chemical reaction representation formats across multiple codebases, which forces slow and error-prone re-implementation of chemical networks across every hydrodynamics code that wishes to make use of them, and a lack of support for self-consistent photochemistry, where chemical processes are coupled with radiative transfer as well as hydrodynamics. To address these shortcomings we present \jaff, a cross-platform framework capable of parsing multiple chemical network formats, generating implementations of these networks in multiple languages and in a format suitable for including into any large hydrodynamics code, and with support for self-consistent treatments of photochemistry that couple chemistry and multi-frequency radiative transfer, in addition to the simple effective-extinction approximations frequently adopted in earlier work. We present a test suite demonstrating the use of \jaff-generated code to add both pure chemistry and photochemistry networks to multiple large hydrodynamics codes. The \jaff framework is available at \href{https://github.com/jaff-chemistry/jaff}{https://github.com/jaff-chemistry/jaff} and detailed documentation is available at \href{https://jaff-chemistry.github.io/jaff/}{https://jaff-chemistry.github.io/jaff/}.

astro-ph.GA↗

The driving mode of turbulence in disc galaxy simulations with adaptive mesh refinement

Turbulence is a key ingredient in controlling the structure of the interstellar medium (ISM) and star formation, yet we still lack a detailed understanding of its drivers in galaxies. Previous idealised simulations of turbulence employ a stochastic forcing field to drive turbulence. The geometry of this forcing field - whether it is predominantly solenoidal or compressive - is a key parameter governing how turbulence shapes the ISM density distribution and regulates the star formation rate. The turbulence driving parameter ($b$) quantifies the relative contribution of compressive versus solenoidal driving.. Therefore, accurate knowledge of the driving parameter is essential for understanding and predicting star formation, and for sub-grid modelling of ISM physics and the star formation rate. In this work, we introduce an algorithm to measure the turbulence driving parameter in adaptive mesh refinement (AMR) simulations of galaxies. We focus our analysis on a synthetic Large Magellanic Cloud (LMC), present-day analogue with a total mass $M \approx 10^{11}\,\mathrm{M}_\odot$. We find that turbulence is driven primarily solenoidally ($b<0.4$) within the inner $\sim4\,\mathrm{kpc}$ of the galaxy, and becomes increasingly compressive with $b>0.4$ towards the outskirts, $R\gtrsim4.5\,\mathrm{kpc}$. The volume-weighted median across the disc, $b\simeq0.4$, is consistent with the natural mixture of driving modes. We further find that $b$ is weakly correlated with the strength of shear, in that solenoidal driving tends to be associated with regions of higher shear, as expected for the more central parts of galaxies. These trends persist over $\sim\!2\,\mathrm{Gyr}$ of the galaxy's evolution.

astro-ph.GA↗

Mitigating numerical dissipation in simulations of subsonic turbulent flows

Magnetohydrodynamic (MHD) simulations of subsonic (Mach number~$<1$) turbulence are crucial to our understanding of several processes including oceanic and atmospheric flows, the amplification of magnetic fields in the early universe, accretion discs, and stratified flows in stars. In this work, we demonstrate that conventional numerical schemes are excessively dissipative in this low-Mach regime. We demonstrate that a new numerical scheme (termed `USM-BK' and implemented in the FLASH MHD code) reduces the dissipation of kinetic and magnetic energy, constrains the divergence of magnetic field to zero close to machine precision, and resolves smaller-scale structure than other, more conventional schemes, and hence, is the most accurate for simulations of low-Mach turbulent flows among the schemes compared in this work. We first compare several numerical schemes/solvers, including Split-Roe, Split-Bouchut, USM-Roe, USM-HLLC, USM-HLLD, and the new USM-BK, on a simple vortex problem. We then compare the schemes/solvers in simulations of the turbulent dynamo and show that the choice of scheme affects the growth rate, saturation level, and viscous and resistive dissipation scale of the dynamo. We also measure the numerical kinematic Reynolds number (Re) and magnetic Reynolds number (Rm) of our otherwise ideal MHD flows, and show that the new USM-BK scheme provides the highest Re and comparable Rm amongst all the schemes compared.

physics.flu-dyn↗