The global structure of magnetic fields and gas in simulated Milky Way-analogue galaxies
Abstract
We simulate an isolated, magnetised Milky Way-like disc galaxy using a self-consistent model of unresolved star formation and feedback, evolving the system until it reaches statistical steady state. We show that the quasi-steady-state structure is distinctly layered in galactocentric height , with an innermost region having comparable gas and magnetic pressures (plasma beta ), an outermost region having dominant gas pressures (), and an intermediate region between pc kpc that is dynamically dominated by magnetic fields (). We find field strengths, gas surface densities, and star formation rates that agree well with those observed both in the Galactic centre and in the Solar neighbourhood. The most significant dynamical effect of magnetic fields on the global properties of the disc is a reduction of the star formation rate by a factor of 1.5–2 with respect to an unmagnetised control simulation. At fixed star formation rate, there is no significant difference in the mass outflow rates or profiles between the magnetised and non-magnetised simulations. Our results for the global structure of the magnetic field have significant implications for models of cosmic ray-driven winds and cosmic-ray propagation in the Galaxy, and can be tested against observations with the forthcoming Square Kilometre Array and other facilities. Finally, we report the discovery of a physical error in the implementation of neutral gas heating and cooling in the popular gizmo code, which may lead to qualitatively incorrect phase structures if not corrected.
keywords:
ISM: magnetic fields – MHD – Galaxy: general1 Introduction
The role of magnetic fields in the Galaxy has been long debated. The discovery of polarised starlight by Hiltner (1949) and Hall & Mikesell (1949) led to the hypothesis that the observed polarisation was caused by dust grains aligned with the magnetic field in the interstellar medium, with the immediate implication from the observed polarisation direction that Galactic magnetic fields are aligned parallel to the Galactic plane, i.e. are toroidal (Davis & Greenstein, 1949, 1951). At nearly the same time, Fermi (1949) theorised that fluctuating magnetic fields in the interstellar medium were the origin of cosmic rays (via ‘second-order Fermi acceleration’). Soon afterward, the Galactic radio emission first observed by Jansky and Reber was proposed to be due to the radiation produced by the gyration of cosmic rays around magnetic fields (Kiepenheuer, 1950). These theoretical advances were followed by radio observations of polarised Galactic emission and Faraday rotation in the interstellar medium in the 1950s and 1960s (see Wielebinski 2012 for a detailed historical review of polarised radio observations).
In parallel with this observational progress, theorists began to consider the possible dynamical role of magnetic fields. This topic was first considered by Alfvén (1942), who argued that magnetic fields may be dynamically important on the surface of the sun through their wave interactions with partially-ionised gas, and Fermi (1949), who recognized that the same considerations applied to the interstellar medium, further proposed that the energy of the Galactic magnetic field should be of order the energy of the turbulent motions of the gas, implying a magnetic field strength of order G. However, the topology of the field, and in particular its structure as one moves away from the Galactic plane, remain uncertain. One possible picture is provided by Parker (1966), who discovered a magnetohydrodynamic instability of toroidal fields that leads to the magnetic field buckling into loops above the plane. However, Parker’s instability was suppressed in the magnetohydrostatic model of Boulares & Cox (1990), which proposed a significant vertical (i.e., poloidal) component of the magnetic field at kpc heights above the Galactic plane and allowed for the diffusion of cosmic rays within a region of tangled (but mean-toroidal) magnetic fields near the plane, yielding a solution with approximate energy equipartition between turbulent motions, cosmic rays, and magnetic fields, and an extended distribution of H ii gas at heights kpc (the so-called ‘Reynolds layer’; Reynolds 1989). This basic picture of the magnetohydrostatic steady-state structure of the gas, cosmic rays, and magnetic fields of the Galaxy has survived to the present.
The uncertainty in the field topology is only one of several outstanding questions about the origin and dynamical role of the magnetic field. One major area of uncertainty is the origin of the field, and whether it is governed by a mean field dynamo process (e.g., Gent et al., 2021). A second is how magnetic fields interact with galactic winds driven by either supernova breakout (e.g., Tomisaka, 1998) or by cosmic rays (e.g., Breitschwerdt et al., 1991; Everett et al., 2008; Mao & Ostriker, 2018; Quataert et al., 2021). There have been some attempts to address these questions in magnetohydrodynamic (MHD) cosmological simulations (e.g., Pakmor & Springel 2013; Pakmor et al. 2017, 2018; Hopkins et al. 2020; we note that Pakmor & Springel 2013 carried out isolated simulations but with comparable resolution and physics to cosmological simulations), but these efforts have been somewhat limited by resolution. Non-zoom-in cosmological simulations, such as the highest-resolution Illustris-TNG simulations (Pillepich et al., 2019; Nelson et al., 2019), have a resolution of pc at the mean density of the Milky Way’s interstellar medium ( cm-3), meaning the gas scale height of the Milky Way ( pc) is resolved with less than one gas particle in the diffuse interstellar medium. Zoom-in cosmological simulations do only slightly better, reaching pc at cm-3, thereby resolving the scale height with gas particles (e.g., Pakmor et al., 2017; Hopkins et al., 2020). This is clearly insufficient to capture the topology of the field and its changes in and out of the plane.
On the other end of the resolution spectrum lie MHD simulations of local patches of the Milky Way, such as those of Kim et al. (2016); Kim et al. (2019); Kim et al. (2020), Kim & Ostriker (2017, 2018), and Rathjen et al. (2021). These simulations benefit from uniform parsec-scale resolution of all of the phases of the interstellar medium, but they cannot resolve the global structure of the disc in radius and height, which means that cannot address questions of the field topology. Additionally, as emphasised by Martizzi et al. (2016), any local simulation does not allow streamlines to diverge in outflows that would otherwise be spherical, thus preventing the outflow from crossing the sonic point of a classical hot superwind (Chevalier & Clegg, 1985). This limits their ability to study the interaction of magnetic fields with outflows.
These limitations in previous work motivate us to consider an intermediate resolution regime. We present a new dynamical model of the Galaxy, evolved for Gyr until it has reached a quasi-steady-state. We reach roughly an order of magnitude higher mass resolution than even zoom-in cosmological simulations of Milky Way-like galaxies, and, though our resolution is still substantially smaller than that in local patch simulations, we retain the full geometry of the problem, so that we can study field topology and outflows. Relatively few simulations of this type have been published, and those have largely been concerned with studying the magnetisation of the neutral medium (e.g., Wang & Abel, 2009) or attempting to explain and interpret the observed Faraday rotation sky (e.g., Kulpa-Dybeł et al., 2015; Butsky et al., 2017). There have been no previous efforts to use simulations of this type to map out the vertical structure and topology of the magnetic field, or to study how fields interact with galactic winds. These questions are the focus of our study.
This paper is organised as follows: Section 2 details the numerical methods used in our simulations, including the ‘subgrid models’ used for star formation and feedback; Section 3 describes the initial conditions and evolution of our simulations as they relax into a quasi-steady-state; Section 4 summarises the zonal structure of the simulations in steady state, the dependence of outflow rate on star formation rate, and the observations to which our simulations may be compared. We conclude in Section 5 with a summary of our results and possible future directions for research.
2 Methods
We solve the equations of ideal magnetohydrodynamics (MHD) using the GIZMO code (Hopkins, 2015), which implements the method of Hopkins (2016) and Hopkins & Raives (2016). This method significantly improves upon the divergence-cleaning approach of Dedner et al. (2002) by the addition of a local approximate Hodge projection that further suppresses numerical magnetic monopoles in the discrete magnetic field. Note that we use the MHD solver even when running simulations with zero magnetic field, in order to ensure that our results are not biased by the use of a different solver in different simulations.
In addition to MHD, we solve a time-dependent chemistry network for the abundance of H i, H ii, He i, He ii, He iii, and free electrons that we use to compute the atomic cooling rates for hydrogen and helium. Additionally, we interpolate from a table of metal line cooling rates as a function of density and temperature (assuming ionization equilibrium and solar metallicity) that was computed using Cloudy (Ferland et al., 1998) following the method of Smith et al. (2008), as implemented in the Grackle chemistry and cooling library (Smith et al., 2017).111This split treatment of the ionization state is a reasonable approximation because almost all free electrons in the ISM come from the ionization of hydrogen and helium. Ionization equilibrium cannot be assumed to hold in general because the warm neutral medium has a hydrogen ionization timescale that is significantly longer than its cooling timescale (e.g., Wolfire et al. 2003). We assume an optically-thin, spatially-uniform photoionising background radiation field based on the redshift tabulation from Haardt & Madau (2012) when computing the ionization state and cooling rates for both primordial species and metals. For gas at temperatures K, we also assume a photoelectric (volumetric) heating rate
(1) |
where is the sum of H i and H ii number densities, which is the default setting for photoelectric heating in Grackle and agrees at order of magnitude with the solar neighbourhood value of photoelectric heating calculated by Wolfire et al. (2003) (their Eq. 19).
The Grackle cooling implementation results in a three-phase neutral ISM, with a warm phase (WNM), a cool phase (CNM), and an unstable phase at intermediate temperatures. We use Grackle rather than the default cooling implementation in GIZMO, as used in, e.g., the FIRE-2 simulations (Hopkins et al., 2018b), because the default GIZMO cooling implementation contains an error that prevents it from producing an unstable phase of the neutral ISM, as shown in Appendix A.
Using the implementation in GIZMO (originally based on that of Springel 2005), we form stars by stochastically converting gas particles into star particles (e.g., Katz et al. 1996) such that the expectation value of the instantanous star formation rate density satisfies
(2) |
where is the probability of star formation, is the gas density, is the star formation efficiency parameter, and
(3) |
is the gas free-fall timescale. We choose the critical gas density , where this density is approximately the Jeans density for K gas at our gas particle mass resolution, and we set the star formation efficiency parameter to match the observed star formation efficiency per free-fall time in dense molecular clouds (see, e.g., Figure 10 of Krumholz et al. 2019 and references therein). For densities times that of the critical density , we increase the star formation efficiency parameter to unity in order to avoid runaway collapse in Jeans-mass-unresolved dense regions with infinitesimal timesteps.222When using MFM/MFV methods, and unlike in SPH, this problem cannot be solved by setting a nonzero gas particle kernel smoothing length, since the effective volume of the gas particles in these methods is determined by the nearest-neighbor distance, not the smoothing length (see Hopkins 2015). Setting a nonzero minimum gas smoothing length that is greater than the nearest-neighbor distance between particles when using MFM/MFV methods causes an explosive (and catastrophic) numerical instability. We note that this star formation criterion implies that over a timestep, the star formation probability for a given gas particle takes the form
(4) |
since we must integrate equation 2, which gives a probability rate, over a timestep in order to obtain a probability (Katz et al., 1996).
We implement photoionisation feedback following the method of Armillotta et al. (2019), which re-implements the Stromgren volume method described by Hopkins et al. (2018b). However, because our resolution is lower than that of Armillotta et al. (2019), for this paper we do not use stochastic sampling from the IMF for each star particle. Instead, for simplicity, we assume that the stellar initial mass function is fully sampled, and we adopt a constant ionising luminosity of ionising photons per second per 100 M⊙ of stellar mass from birth to 5 Myr after formation, and zero thereafter. We note that in our implementation, while a gas particle is identified as being within an H ii region, the cooling and heating source terms are turned off for that particle.
For supernova feedback, we use the method of Hopkins et al. (2018a) as implemented in GIZMO. In simplified form, this method couples the momentum from the unresolved Sedov-Taylor phase to the faces of the neighbouring fluid elements. Then, after subtracting the resulting kinetic energy from a fiducial explosion energy of ergs, the remaining energy is coupled to the neighbouring gas particles as a thermal energy source term, with a minimum thermal energy injection of one-half of the initial explosion energy. This method is very similar to the algorithm of Kimm & Cen (2014), except that the GIZMO algorithm also adds the momentum of the pre-shock ejecta and has minor differences in the treatment of the difference between the simulation frame and the explosion frame. The fiducial normalisation of the maximum injected momentum from the unresolved Sedov-Taylor phase used by GIZMO is 333The normalisation as implemented in the public source code of GIZMO is greater than the published normalisation value (Hopkins et al., 2018a) by a factor of . Additionally, GIZMO prior to October 2020 did not correctly normalize the momentum injected according to Eq. 18 of Hopkins et al. (2018a), which meant that the total momentum injected was dependent on the particle configuration surrounding a given star particle. In per cent of cases, this may lead to an unphysically-large injection of momentum.
(5) |
where
(6) |
and
(7) |
This normalisation is somewhat larger than the commonly-used normalisation of M⊙ km s-1 (Thornton et al., 1998), but is fully consistent with the increase in momentum expected due to stellar clustering (Gentry et al., 2017, 2019; Gentry et al., 2020). Following the default used in GIZMO, we assume a constant supernova rate of SNe M⊙-1 Myr-1 for star particles with ages Myr. Each event is assumed to have an explosion energy of ergs. We neglect type Ia supernova explosions in our model.
3 Simulations
3.1 Initial conditions
We carry out two simulations: one with hydrodynamics only, and one with MHD. The initial conditions of the gas and collisionless components in both simulations are identical to those used by the AGORA isolated disc galaxy comparison project in their ‘high-resolution’ case (Kim et al., 2016). These include a dark matter halo component of mass M⊙ (defined as the mass enclosed within a mean density of 200 times the critical density) with a concentration parameter , a stellar disc of mass M⊙, a bulge of mass M⊙, and a gas disc of mass M⊙. This implies a gas fraction of per cent by mass in the initial conditions. The stellar disc has a scale height of approximately pc and thus represents the observed stellar ‘thin disc’ in the Galaxy. The gas disc has a scale height of kpc and scale length kpc, with the gas disc initialized with the density profile
(8) |
The gas temperature and circular velocity are initially computed via solution of the Jeans equations to be in hydrostatic and centrifugal equilibrium using the method described by Springel et al. (2005). However, we override the hydrostatic temperature values with a uniform gas temperature of K within the disc in order to allow the disc to rapidly cool and collapse to form stars. After stars form, the disc is then partially re-inflated by the injection of momentum and energy from supernovae. Our simulations use gas particles with mass 859.3 M⊙, dark matter particles with mass M⊙, and stellar disc and bulge particles with mass M⊙. (Star particles formed during the simulation have the mass of the gas particle from which they were stochastically converted.)
In the MHD simulation, the initial magnetic field is:
(9) | ||||
(10) | ||||
(11) |
where G. This field is analytically divergence-free. However, when discretised onto the gas particles in the initial conditions it is not, but the residual numerical divergence is rapidly transported outside the domain via divergence-cleaning and local approximate Hodge projection (Hopkins, 2016). This field geometry (purely toroidal) and strength are chosen to be in rough approximate agreement with the observed ‘ordered’ (or ‘regular’) magnetic field of the Galaxy, with the expectation that the turbulent component of the field (as well as any non-toroidal component) would be generated by the gravitational collapse and stellar feedback in the simulation.
3.2 MHD simulation

We run the MHD simulation for a time Myr.444This is a result of the fact that our dimensionless time units are derived from length units of kpc, velocity units of km s-1, and mass units of M⊙. The face-on projected density, the face-on projected star formation rate, and the face-on, in-plane magnetic field of the final output of the simulation are shown in the left column of Figure 1. We see morphology typical of an S0 galaxy, with relatively weak spiral arms and no visible bar. The lack of a bar or a grand design spiral pattern may be due to a lack of close-in orbiting satellites, such as the Large Magellanic Cloud, which are absent in our simulation. The surface density normalisation is roughly consistent with observations of the Milky Way, with values in the range M⊙pc-2.
The magnetic field strength generally ranges from G, which is also consistent with observations when compared with the total magnetic field strength, not just the so-called ‘ordered’ field. We have used a line integral convolution of the in-plane (vector) magnetic field applied on top of the magnetic field strength in order to illustrate the sense of the magnetic field direction (although the visualization is degenerate up to a global reversal of the direction). There do not appear to be any magnetic field reversals in the azimuthal direction (i.e., along a circular orbit), which is in tension with the common interpretation of the Galactic Faraday rotation measurements that suggest a reversal of the azimuthal magnetic field direction between spiral arms (Beck, 2015). However, since our initial conditions do not have any magnetic field reversals (the initial field is everywhere aligned in the direction), nor any gas accretion from halo gas or cosmological sources, the lack of field reversals may not be unexpected. The mechanism for generating field reversals is unknown, although they are seen in some cosmological simulations of magnetic fields (Pakmor et al., 2018), and are suggested to form as a result of a mean-field dynamo process (Beck, 2015).




In the top left panel of Figure 2, we show the star formation rate as a function of elapsed simulated time. We see that it initially spikes at a value of around M⊙ yr-1, as a the disc cools and there is insignificant turbulence (or any other feedback processes) to slow the collapse of gas and subsequent formation of stars. The star formation rate then slowly declines as collapse and feedback processes come into a quasi-equilibrium toward the end of the simulation, plateauing at a rate of M⊙ yr-1. As star formation proceeds, the gas is necessarily consumed. In the top right panel of Figure 2, we show the gas fraction of the disc (computed as the mass of gas particles relative to the total non-dark-matter mass). From the initial gas fraction of , we see a slow decline over Gyr to a value of gas fraction. The decline in star formation rate is somewhat more rapid than the decline in star formation rate, so the total depletion time (bottom left panel of Figure 2), defined as the ratio of the gas mass to the star formation rate, very gradually increases as the simulation runs, reaching Gyr at the final time. This is roughly consistent with the depletion times observed in nearby spiral galaxies, where molecular gas depletion times average Gyr (e.g., Leroy et al., 2013), but molecular gas constitutes only of the total gas mass (with the balance as H i; Saintonge et al. 2011), so the total gas depletion time is a Gyr.
Finally, the lower right panel of Figure 2 shows the gas mass-weighted mean magnetic field of the MHD simulation. The initialisation of the magnetic field according to equation 11 implies a mass-weighted mean field of G. The field is subsequently strongly amplified by the initial burst of star formation described previously, and then relaxes into a quasi-steady-state value of G.
In Figure 3, we show the mass-weighted distribution of temperature and gas density in the MHD simulation (left panel) and the mass-weighted distribution of thermal pressure and gas density in the MHD simulation (right panel). For comparison, we also overplot as solid lines the equilibrium temperature and thermal pressure as a function of density for our adopted radiative heating and cooling physics (using Grackle version 2.2; Smith et al. 2017). We see that the gas in the simulation quite closely tracks the equilibrium curves, except at low densities, where the gas is far out of thermal equilibrium due to shock heating from supernova feedback, and in dense clouds that are heated to K due to photoionisation from stars Myr old, in good agreement with similar simulations of the Milky Way ISM (e.g., Goldbaum et al. 2016; Kim & Ostriker 2017). There is also a small systematic offset from thermal equilibrium in the warm neutral medium due to the ionisation equilibrium timescale generally exceeding the cooling time in this phase, an effect anticipated from theory (Wolfire et al., 2003). Some recent simulations (e.g., Hopkins et al. 2018b; Gurvich et al. 2020) show large deviations of cold neutral gas from its thermal equilibrium state. Such behaviour is almost certainly incorrect given the extremely short cooling times of cold neutral gas (e.g. Wolfire et al. 2003) and is more likely due to the error affecting the heating and cooling rates of dense gas in these simulations that we identify in Appendix A.

3.3 Hydrodynamics-only simulation
We run an additional simulation without magnetic fields as a control in order to examine the differences between the magnetic and non-magnetic simulations. For this simulation, we simply set the initial magnetic field to zero everywhere, and leave all other properties of the initial conditions as they are in the previous simulation. We use the same code settings, including using the MHD solver, in order to ensure that the differences between the two simulations are entirely due to the presence (or absence) of magnetic fields, not the numerical properties of the hydrodynamic vs. MHD solver.
Examining the bulk properties shown in Figure 2, we see that the non-magnetized simulation has a greater initial burst of star formation, peaking just above 12 M⊙yr-1 (upper left panel). This burst is reflected in a steeper initial decline of the gas fraction (upper right panel). In contrast to the magnetized simulation, following the initial burst, the star formation rate rapidly declines, undergoes a second burst at a time Myr, and then slowly declines over the next several hundreds of Myr to a star formation rate of M⊙yr-1. The larger initial burst but slower decline means that the gas fraction of the hydro simulation is very similar to the MHD simulation after both simulations are stopped after Gyr (upper right panel). As a result of the slightly higher quasi-steady-state star formation rate compared to the magnetized simulation, the gas depletion timescale has a quasi-steady-state value of Gyr when the simulation is stopped, which is 1.5–2 times lower than the value for the magnetized disc.
4 Discussion
4.1 Global magnetic structure

One of the primary goals of our study is to determine the global structure of the magnetic fields in and around Milky Way-like disc galaxies, and the relationship of the field structure to other physical quantities. To begin this investigation, in Figure 4 we show the azimuthally-averaged (i.e., in the -direction) structure of the disc in a number of quantities; all quantities shown are mass-weighted means except for the mass flux, which is an intrinsically volumetric quantity. These projections in the radius-vertical height plane illustrate the distinct ‘atmospheric’ components present in the disc. This separation is visible in virtually all components (except the density), including the magnetic field, the vertical mass flux, and the fraction of toroidal magnetic field. It is clear that there are three distinct zones – a very thin disc pc in size near the midplane, a thicker, kpc-wide zone around that, and then a distinct third zone at larger heights. This structure is reminiscent of a multi-layered cake. Henceforth, we will refer to this stratification as the ‘layer-cake structure’ of the disc.
In the upper left panel of Figure 4, we see that the gas density is approximately exponentially distributed in the vertical direction, as expected. There is some substructure within the disc, as well as a few kiloparsec-scale plumes of gas above the disc as a result of supernova-driven hot outflows. The scale height of the gas density increases with galactocentric radius, indicating a ‘flaring’ disc structure.
In the upper right panel, we see the magnetic field strength, with the direction of the field indicated via a line integral convolution (Cabral & Leedom, 1993). The magnetic field strength in the galactic centre is of order G, consistent with observations (Beck, 2015). The field strength falls off with height and radius less steeply than the gas density, a phenomenon observed in other simulations and suggested by observations. However, unlike the gas density, the magnetic field does not vary smoothly with height. Instead, it is significantly tangled at heights of within kpc, consistent with the schematic field geometry of Boulares & Cox (1990) that was suggested by observations at the time. At large heights ( kpc), the field becomes coherent on kiloparsec scales, with the projected field lines stretching nearly vertically out of the galaxy near zero galactocentric radius, whereas the projected field lines further away in radius ( kpc) curve toward the disc and may form toroidal flux tubes at heights of several kiloparsecs above the disc, as seen at kpc and kpc in the image.
The middle left panel shows the temperature. We see a cold gas disc ( K) in the inner pc region. The cold disc is surrounded by a region of significant spatial extent, ranging from pc to kpc, with gas at temperatures between several thousand Kelvins and K. The outer part of this region can be identified with the so-called Reynolds layer (Reynolds, 1989) of diffuse ionised gas surrounding the Galaxy. Further out in height ( kpc), the gas temperature is typically around K, originating from the hot outflows driven by supernovae, intermixed with ‘plumes’ of rapidly-cooling intermediate temperature ( K) gas.
The middle right panel of Figure 4 shows the vertical mass flux, which we define as , i.e., positive values indicate mass flow away from the midplane, while negative values indicate flow towards it. We use a diverging logarithmic colour scale, so that colour indicates flow direction – outflows are purple, inflows are orange. The strength of outflows/inflows is largest at the mid-plane () of the galaxy, with a sharp drop-off in magnitude with height, and the direction of inflow or outflow shows many local reversals. This is suggestive of a fountain-type of outflow. At large heights ( kpc), by contrast, we see mostly coherent outflow, with only small patches of inflow, suggesting that this region is not primarily a fountain, but instead represents a true wind of mass leaving the galaxy.
The dimensionless plasma beta () is plotted in the lower left panel. We see the same basic ‘layer-cake’ structure in plasma beta as a function of galactocentric height, but with a more pronounced intermediate region. The innermost cold gas disc is approximately equally balanced between the thermal pressure of the gas and the magnetic pressure, with the bubble-like substructure likely a result of individual H ii regions and supernova remnants. Above this, there is a ‘corona’ of magnetically-dominated gas extending to kpc, with stronger magnetic dominance toward the galactic centre. Above this corona is a gas-pressure-dominated region that is the product of hot outflows.
Finally, the lower right panel shows the ratio of the toroidal component () to the total magnetic field strength. Again, we see a zonally-stratified structure near the plane. First focus on the outer disc, kpc. In this radial region, near the plane at pc, the mean toroidal fraction is (indicated by white on the plot), with a great deal of substructure corresponding to the positions of individual supernova remnants. Above this, at kpc, is a zone where the field is toroidal, while at even larger height, kpc, the field becomes much less toroidal. The same layering is evident closer to the galactic centre, at kpc, except that each of these zones is thinner, so the transitions between them happen at smaller . At the very centre of the galaxy, pc, the field is almost purely poloidal at all heights.
4.2 Magnetic effects on supernova-driven winds





We next compare the vertical outflows of gas between the MHD and non-MHD versions of our simulations. In Figure 5 (left panel), we show the vertical mass flux going away from the disk as a function of height, comparing the hydro simulation at Gyr with the MHD simulation at the same simulated time and also with the MHD simulation at the same star formation rate (at an earlier simulated time). When comparing the two versions at the same simulated time, we find a substantially lower mass outflow rate at all heights in the MHD simulation (suppressed by 1-2 orders of magnitude). However, when the MHD and non-MHD simulations are matched at the same star formation rate (approximately M⊙yr-1), there is no appreciable difference between the mass outflow rates as a function of height. (The large bump at kpc in the hydro outflow rate is due to a transient star formation event and has propagated outward as a traveling wave, an effect apparent in the time-dependent version of this figure.)
In Figure 5 (right panel), we examine the vertical energy flux as a function of height above the galactic disc for both the magnetic and non-magnetic simulations. We compute the total kinetic and thermal energy in the outflow, neglecting the magnetic energy for a consistent comparison between the magnetised and non-magnetised simulations. The results are qualitatively identical to the mass outflow results, with the MHD simulation having a suppressed energy outflow rate with respect to the non-magnetised outflow rate when the two are compared at the same time, but with this effect disappearing after controlling for the star formation rate.
We further examine the mass outflow rate by decomposing it into thermal phases, including the three phases of the neutral ISM (cold neutral, unstable, and warm neutral; e.g. Wolfire et al. 2003), the warm ionised medium (WIM), the warm-hot ionised medium (WHIM), and a hot phase comprised of material at all higher temperatures, as shown in Figure 6. The boundary between cold, unstable, and warm phases is determined by finding the zero-crossings of the derivative of the equilibrium thermal pressure with respect to gas density , as explained in Appendix A. The boundary between warm neutral and WIM is determined by finding the temperature at which the number of free electrons is one-half the number of hydrogen nucleons in thermal equilibrium. For our cooling function, we find this occurs at a temperature of 7105 K.555A somewhat higher threshold of 0.9 free electrons per hydrogen yields an ionisation temperature of K and does not change our conclusions regarding the thermal structure of our simulations. We set a somewhat arbitrary temperature threshold between the WIM and WHIM at K, and set the boundary between the WHIM and the ‘hot’ phase at K. These choices are designed to allow the WHIM to encompass the material near the peak of the radiative cooling rate of interstellar gas in collisional ionisation equilibrium at K (e.g. Figure 8 of Sutherland & Dopita 1993).
We find that the phase structure of the outflow is not qualitatively different between the magnetised and non-magnetised simulations, and that all phases decline rapidly with height in both simulations, suggesting a fountain type of outflow. Neutral phases dominate in the fountain region kpc, while ionised gas dominates at larger heights. The localised peaks and troughs apparent in the profiles are of the same order of magnitude as the temporal variability in the profiles on Myr timescales and we caution against over-interpreting differences between the MHD and non-MHD simulations.
In Figure 7, we show the (dimensionless) mass loading factor , defined as
(12) |
as a function of star formation rate. The mass outflow rate is the instantaneous value, while the star formation rate is averaged over the previous 10 Myr. Each point represents the galaxy-averaged value a simulation output, and we compute points for each simulation snapshot (output at Myr intervals) after Myr. The color of the points indicates at what galactocentric heights we computed the mass outflow. We observe a linear trend, i.e. the mass loading factor is roughly proportional to the star formation rate. This trend is the same regardless of whether magnetic fields are present in the simulation (solid boxes correspond to the MHD simulation, dotted boxes correspond to the hydro simulation). This implies that there is an approximately quadratic dependence of mass outflow rate on star formation rate, regardless of the height at which the outflow is measured. Consistent with the picture of a fountain outflow, the mean trendline for each set of measurements for various galactocentric heights shows that net mass outflow rate declines with height. This sharply disagrees with the scaling found by Muratov et al. (2015), who found a linear relationship between mass outflow rate and star formation rate (implying a constant mass loading factor with SFR; their Figure B1), although they measured the mass outflow rate at kpc (comoving) and found a mass outflow rate of M⊙yr-1 at a star formation rate of M⊙yr-1 at redshifts for progenitors of Milky Way-mass galaxies. The significance of this disagreement is difficult to interpret, since our simulations are both non-cosmological and much higher resolution than those of Muratov et al. (2015), but it is possible that the scaling properties of galactic outflows may strongly differ when measured near the galaxy versus near the virial radius, or may be a strong function of redshift (or gas fraction).
The qualitative trends of our fountain outflows broadly agree with those found in the simulations of Kim & Ostriker (2018) and Kim et al. (2020). However, we find that the structure of our outflows is significantly more extended in the vertical direction, and that at kpc scales, all phases contribute a net mass outflow on average, whereas the simulations of Kim & Ostriker (2018) find that only the ‘ionized’ and ‘hot’ phases contribute to the net outflow at scales kpc. At a fixed height of kpc and a comparable star formation rate, we also find a mass loading factor that is approximately an order of magnitude greater than found by Kim & Ostriker (2018) and Kim et al. (2020). This is a significant discrepancy and more work is needed in order to determine its cause. One possible explanation is that our simulations include a model for ‘pre-supernova’ feedback in the form of photoionisation, while Kim & Ostriker (2018) and Kim et al. (2020) include supernovae as their only form of spatially-localised feedback. A number of authors have found that including pre-supernovae feedback can significantly alter the properties of galactic winds, by transforming the environment into which supernova energy and momentum are deposited (e.g., Agertz et al. 2013, Kannan et al. 2020, Jeffreson et al. 2021, submitted). Another possible explanation is that the local box geometry of Kim et al. (2020) does not allow streamlines to open up, which prevents the outflow from reaching the sonic point in the classical superwind solution of Chevalier & Clegg (1985), as emphasized by Martizzi et al. (2016).
Kim et al. (2020) additionally find a negative trend of mass loading factor with star formation rate, although this relationship was obtained by fitting models with significantly varying initial gas surface densities, and the same negative trend is obtained by fitting the mass loading factors and the initial gas surface densities of their models (their Figure C1). At fixed gas surface density, they likewise find a positive power-law relationship between mass loading factor and star formation rate for most of their models, with the strength of this relationship varying with initial gas surface density (their Figure 8). We leave a more detailed exploration of the outflow properties and scalings with galaxy parameters to future work.
4.3 Implications for cosmic rays and radio observations
Our simulated Galactic magnetic field structure has implications for the transport of cosmic rays within and out of the Galaxy. In many analytic models of cosmic rays in the Galaxy, there is a distinction between an inner region of ‘tangled’ field lines and an outer region several kiloparsecs above the Galactic midplane with large-scale coherent magnetic fields (e.g. in the hydrostatic model of Boulares & Cox 1990, the wind model of Breitschwerdt et al. 1991; the ‘base radius’ of cosmic-ray-driven winds in Quataert et al. 2021). Our results in Section 4.1 indicate that this transition occurs at kpc. Due to the theoretical uncertainties in the cosmic ray diffusion coefficient as used in these models, the resulting predictions for mass outflow and gamma-ray luminosity (e.g., Lacki et al. 2011) cannot be used to directly test the magnetic field structure of our simulations, but our results provide a justification for a kpc value of the launching radius in a cosmic-ray-driven wind model of the Galaxy.
Our results about the vertical structure of the magnetic field may be more directly tested via spatially-resolved synchrotron emission, which is primarily sensitive to the magnetic field strength. Radio synchrotron observations typically find disk galaxies (of all inclinations) to have a scale length of kpc (see Beck 2015 and references therein).
Another probe of the magnetic field are the polarized dust emission maps observed with the Planck satellite (Planck Collaboration et al., 2015). Assuming the standard radiative torque alignment model (Davis & Greenstein, 1951; Lazarian & Hoang, 2007) and uniform dust properties across the Galaxy, these maps probe the plane-of-sky magnetic field orientation integrated along the line of sight. MHD simulations of local volumes of the ISM have been compared to the Planck maps (e.g., Planck Collaboration et al. 2015, Kim et al. 2019) but comparisons with MHD simulations with star formation, supernova feedback, and a global disk geometry are currently lacking. As a test of the realism of our simulations, however, such comparisons are somewhat limited by uncertain dust physics.
Undoubtedly the best observational comparison to our results will be the dense forest of quasar and pulsar Faraday rotation measures observable with the forthcoming Square Kilometre Array (SKA) to be completed in Western Australia (Haverkorn et al., 2015). These measurements of the line-of-sight Galactic magnetic field will enable direct tests of MHD simulations of the Galaxy via comparison with Faraday rotation maps (Jung et al., in prep) and, in the plane of the Galaxy, tomographic mapping of the line-of-sight magnetic field.
5 Conclusions
Our first main result is the ‘layer-cake’ vertical structure of the magnetic field, evident in the magnetic field itself, the toroidal-to-total field ratio, the vertical gas mass flux, and most prominently, in the plasma beta as a function of Galactocentric height (Figure 4). This structure decomposes into three approximate zones: a very thin disc pc in size near the midplane, a thicker, kpc-wide zone around that, and then a distinct third zone at larger heights. We emphasize the dynamical importance of this structure: in the innermost zone, the plasma beta is of order unity (magnetic and thermal gas pressure are comparable), in the intermediate zone, the plasma beta is much less than unity (magnetic pressure dominates), and in the outer zone, the plasma beta is much greater than unity (thermal gas pressure dominates). A similar zonal structure has been noted in the Galactic synchrotron emissivity, usually with a two-component structure of characteristic heights pc and kpc (e.g. Boulares & Cox 1990). Our simulation provides a theoretical picture consistent with these observations and, more importantly, suggests that the role of magnetic fields may be dynamically dominant in the intermediate zone between pc kpc.
Our second main result is the order unity effect of magnetic fields on the star formation rate (Figure 2). We observe that the star formation rate is suppressed by a factor of when magnetic fields of strength comparable to those observed in the Galaxy are present. However, when controlling for star formation rate, the mass outflow rate (both total and decomposed by phase) is indistinguishable between the magnetized and non-magnetized simulations (Figure 5 and Figure 6). The mass outflow decomposed by phase is highly stochastic and is difficult to compare with precision between the simulations. Future studies are needed in order to quantify the residual differences at better than order-of-magnitude between outflows of magnetized and non-magnetized Galactic discs.
Lastly, we obtain a positive linear correlation between mass loading factor and star formation rate in our simulations when measuring the mass outflow on kiloparsec scales above the disk (Figure 7). Previous work using a similar supernova feedback model found no correlation between these two quantities for gas-rich disks when measuring the mass outflow at significantly larger scales (Muratov et al., 2015). The apparent discrepancy should be examined by future work. In searching for a theory of this enhanced mass loading, it may be productive to examine the full distribution of gas densities in which supernova explode as a function of star formation rate, since this enters as an explicit factor in our adopted feedback model (equation 5) as a result of the density dependence of the radiative cooling of supernova remnants (Thornton et al., 1998).
Acknowledgements
We thank L. Armillotta for providing the code to compute the HII regions in our simulations and thank N. McClure-Griffiths for useful discussions.
This research was supported by the Australian Research Council through its Discovery Projects and Future Fellowship Funding Schemes, awards DP190101258 and FT180100375. This research was undertaken with the assistance of resources and services from the National Computational Infrastructure (NCI), which is supported by the Australian Government.
The simulations in this work were run at a datacentre using 100 per cent renewable electricity sources.666For details, see https://www.environment.act.gov.au/energy/cleaner-energy/renewable-energy-target-legislation-reporting.
Software: matplotlib (Hunter, 2007), scipy (Virtanen et al., 2020), pandas (pandas development team, 2020; McKinney, 2010), numpy (Harris et al., 2020), h5py (Collette, 2014), Snakemake (Mölder et al., 2021), lic (Brinkmann, 2020), Meshoid (Grudić, 2019), GIZMO (Hopkins, 2015), Grackle (Smith et al., 2017).
Data Availability
Due to the large volume of data products produced (approximately terabytes), a limited subset of the raw simulation outputs (and their associated processed data products) are permanently archived as an open-access Zenodo dataset (Wibking & Krumholz, 2021). Two simulation snapshots at different simulated times ( Myr and Myr) are included from the magnetohydrodynamic (MHD) simulation and one simulation snapshot from the hydrodynamic simulation ( Myr) is included in Gadget-2/GIZMO HDF5 format, along with processed data products from each of the simulation snapshots in NPZ (NumPy array archive) format and visualizations of the processed data products as images in PNG format. Contingent on the ongoing availability of storage resources, additional simulation snapshots are available upon reasonable request to the authors.
References
- Agertz et al. (2013) Agertz O., Kravtsov A. V., Leitner S. N., Gnedin N. Y., 2013, ApJ, 770, 25
- Alfvén (1942) Alfvén H., 1942, Nature, 150, 405
- Armillotta et al. (2019) Armillotta L., Krumholz M. R., Di Teodoro E. M., McClure-Griffiths N. M., 2019, MNRAS, 490, 4401
- Beck (2015) Beck R., 2015, A&ARv, 24, 4
- Boulares & Cox (1990) Boulares A., Cox D. P., 1990, ApJ, 365, 544
- Breitschwerdt et al. (1991) Breitschwerdt D., McKenzie J. F., Voelk H. J., 1991, A&A, 245, 79
- Brinkmann (2020) Brinkmann S., 2020, lic, https://gitlab.com/szs/lic
- Butsky et al. (2017) Butsky I., Zrake J., Kim J.-h., Yang H.-I., Abel T., 2017, ApJ, 843, 113
- Cabral & Leedom (1993) Cabral B., Leedom L. C., 1993, in Proceedings of the 20th Annual Conference on Computer Graphics and Interactive Techniques. pp 263–270
- Chevalier & Clegg (1985) Chevalier R. A., Clegg A. W., 1985, Nature, 317, 44
- Collette (2014) Collette A., 2014, h5py, http://www.h5py.org/
- Davis & Greenstein (1949) Davis L., Greenstein J. L., 1949, Physical Review, 75, 1605
- Davis & Greenstein (1951) Davis Leverett J., Greenstein J. L., 1951, ApJ, 114, 206
- Dedner et al. (2002) Dedner A., Kemm F., Kröner D., Munz C. D., Schnitzer T., Wesenberg M., 2002, Journal of Computational Physics, 175, 645
- Everett et al. (2008) Everett J. E., Zweibel E. G., Benjamin R. A., McCammon D., Rocks L., Gallagher John S. I., 2008, ApJ, 674, 258
- Ferland et al. (1998) Ferland G. J., Korista K. T., Verner D. A., Ferguson J. W., Kingdon J. B., Verner E. M., 1998, PASP, 110, 761
- Fermi (1949) Fermi E., 1949, Physical Review, 75, 1169
- Gent et al. (2021) Gent F. A., Mac Low M.-M., Käpylä M. J., Singh N. K., 2021, ApJ, 910, L15
- Gentry et al. (2017) Gentry E. S., Krumholz M. R., Dekel A., Madau P., 2017, MNRAS, 465, 2471
- Gentry et al. (2019) Gentry E. S., Krumholz M. R., Madau P., Lupi A., 2019, MNRAS, 483, 3647
- Gentry et al. (2020) Gentry E. S., Madau P., Krumholz M. R., 2020, MNRAS, 492, 1243
- Goldbaum et al. (2016) Goldbaum N. J., Krumholz M. R., Forbes J. C., 2016, ApJ, 827, 28
- Grudić (2019) Grudić M., 2019, MESHOID: MESHless Operations such as Integrals and Derivatives, https://github.com/mikegrudic/meshoid
- Gurvich et al. (2020) Gurvich A. B., et al., 2020, MNRAS, 498, 3664
- Haardt & Madau (2012) Haardt F., Madau P., 2012, ApJ, 746, 125
- Hall & Mikesell (1949) Hall J. S., Mikesell A. H., 1949, AJ, 54, 187
- Harris et al. (2020) Harris C. R., et al., 2020, Nature, 585, 357
- Haverkorn et al. (2015) Haverkorn M., et al., 2015, in Proceedings of Advancing Astrophysics with the Square Kilometre Array — PoS(AASKA14). p. 096, doi:10.22323/1.215.0096
- Hiltner (1949) Hiltner W. A., 1949, Science, 109, 165
- Hopkins (2015) Hopkins P. F., 2015, MNRAS, 450, 53
- Hopkins (2016) Hopkins P. F., 2016, MNRAS, 462, 576
- Hopkins & Raives (2016) Hopkins P. F., Raives M. J., 2016, MNRAS, 455, 51
- Hopkins et al. (2018a) Hopkins P. F., et al., 2018a, MNRAS, 477, 1578
- Hopkins et al. (2018b) Hopkins P. F., et al., 2018b, MNRAS, 480, 800
- Hopkins et al. (2020) Hopkins P. F., et al., 2020, MNRAS, 492, 3465
- Hunter (2007) Hunter J. D., 2007, Computing in Science & Engineering, 9, 90
- Jenkins (2013) Jenkins E. B., 2013, ApJ, 764, 25
- Kannan et al. (2020) Kannan R., Marinacci F., Simpson C. M., Glover S. C. O., Hernquist L., 2020, MNRAS, 491, 2088
- Katz et al. (1996) Katz N., Weinberg D. H., Hernquist L., 1996, ApJS, 105, 19
- Kiepenheuer (1950) Kiepenheuer K. O., 1950, Physical Review, 79, 738
- Kim & Ostriker (2017) Kim C.-G., Ostriker E. C., 2017, ApJ, 846, 133
- Kim & Ostriker (2018) Kim C.-G., Ostriker E. C., 2018, ApJ, 853, 173
- Kim et al. (2016) Kim J.-h., et al., 2016, ApJ, 833, 202
- Kim et al. (2019) Kim C.-G., Choi S. K., Flauger R., 2019, ApJ, 880, 106
- Kim et al. (2020) Kim C.-G., et al., 2020, ApJ, 900, 61
- Kimm & Cen (2014) Kimm T., Cen R., 2014, ApJ, 788, 121
- Krumholz et al. (2019) Krumholz M. R., McKee C. F., Bland-Hawthorn J., 2019, ARA&A, 57, 227
- Kulpa-Dybeł et al. (2015) Kulpa-Dybeł K., Nowak N., Otmianowska-Mazur K., Hanasz M., Siejkowski H., Kulesza-Żydzik B., 2015, A&A, 575, A93
- Lacki et al. (2011) Lacki B. C., Thompson T. A., Quataert E., Loeb A., Waxman E., 2011, ApJ, 734, 107
- Lazarian & Hoang (2007) Lazarian A., Hoang T., 2007, MNRAS, 378, 910
- Leroy et al. (2013) Leroy A. K., et al., 2013, AJ, 146, 19
- Mao & Ostriker (2018) Mao S. A., Ostriker E. C., 2018, ApJ, 854, 89
- Martizzi et al. (2016) Martizzi D., Fielding D., Faucher-Giguère C.-A., Quataert E., 2016, MNRAS, 459, 2311
- McKinney (2010) McKinney W., 2010, in Stéfan van der Walt Jarrod Millman eds, Proceedings of the 9th Python in Science Conference. pp 56 – 61, doi:10.25080/Majora-92bf1922-00a
- Muratov et al. (2015) Muratov A. L., Kereš D., Faucher-Giguère C.-A., Hopkins P. F., Quataert E., Murray N., 2015, MNRAS, 454, 2691
- Mölder et al. (2021) Mölder F., et al., 2021, F1000Research, 10
- Nelson et al. (2019) Nelson D., et al., 2019, MNRAS, 490, 3234
- Pakmor & Springel (2013) Pakmor R., Springel V., 2013, MNRAS, 432, 176
- Pakmor et al. (2017) Pakmor R., et al., 2017, MNRAS, 469, 3185
- Pakmor et al. (2018) Pakmor R., Guillet T., Pfrommer C., Gómez F. A., Grand R. J. J., Marinacci F., Simpson C. M., Springel V., 2018, MNRAS, 481, 4410
- Pandya et al. (2021) Pandya V., et al., 2021, arXiv e-prints, p. arXiv:2103.06891
- Parker (1966) Parker E. N., 1966, ApJ, 145, 811
- Pillepich et al. (2019) Pillepich A., et al., 2019, MNRAS, 490, 3196
- Planck Collaboration et al. (2015) Planck Collaboration et al., 2015, A&A, 576, A105
- Quataert et al. (2021) Quataert E., Thompson T. A., Jiang Y.-F., 2021, arXiv e-prints, p. arXiv:2102.05696
- Rahmati et al. (2013) Rahmati A., Schaye J., Pawlik A. H., Raičević M., 2013, MNRAS, 431, 2261
- Rathjen et al. (2021) Rathjen T.-E., et al., 2021, MNRAS, 504, 1039
- Reynolds (1989) Reynolds R. J., 1989, ApJ, 345, 811
- Saintonge et al. (2011) Saintonge A., et al., 2011, MNRAS, 415, 32
- Slavin et al. (2000) Slavin J. D., McKee C. F., Hollenbach D. J., 2000, ApJ, 541, 218
- Smith et al. (2008) Smith B., Sigurdsson S., Abel T., 2008, MNRAS, 385, 1443
- Smith et al. (2017) Smith B. D., et al., 2017, MNRAS, 466, 2217
- Springel (2005) Springel V., 2005, MNRAS, 364, 1105
- Springel et al. (2005) Springel V., Di Matteo T., Hernquist L., 2005, MNRAS, 361, 776
- Sutherland & Dopita (1993) Sutherland R. S., Dopita M. A., 1993, ApJS, 88, 253
- Thornton et al. (1998) Thornton K., Gaudlitz M., Janka H. T., Steinmetz M., 1998, ApJ, 500, 95
- Tomisaka (1998) Tomisaka K., 1998, MNRAS, 298, 797
- Virtanen et al. (2020) Virtanen P., et al., 2020, Nature Methods, 17, 261
- Wang & Abel (2009) Wang P., Abel T., 2009, ApJ, 696, 96
- Wibking & Krumholz (2021) Wibking B. D., Krumholz M. R., 2021, Simulation data products for "The global structure of magnetic fields and gas in simulated Milky Way galaxies", doi:10.5281/zenodo.4744917, https://doi.org/10.5281/zenodo.4744917
- Wielebinski (2012) Wielebinski R., 2012, Journal of Astronomical History and Heritage, 15, 76
- Wolfire et al. (2003) Wolfire M. G., McKee C. F., Hollenbach D., Tielens A. G. G. M., 2003, ApJ, 587, 278
- pandas development team (2020) pandas development team T., 2020, pandas-dev/pandas: Pandas, doi:10.5281/zenodo.3509134, https://doi.org/10.5281/zenodo.3509134
Appendix A Cooling curve comparison


In Figure 8, we show the equilibrium temperature and pressure as a function of density produced by the Grackle cooling code (version 2.2; Smith et al. 2017), as used in this work, and the GIZMO cooling module as used in, e.g., the FIRE-2 simulations (Hopkins et al., 2018b), respectively.777The complete source code needed to reproduce these figures is publicly available in a GitHub repository: https://github.com/BenWibking/cooling-curve-comparison. The unstable neutral medium is the phase for which , i.e., where the slope is negative in the right panel of Figure 8; the stable warm and cold atomic phases correspond the regions with on the low- and high-density sides of this region, respectively. We see from the figure that the Grackle cooling curve features an unstable neutral phase between 943 K and 4276 K, corresponding to a gas density of 0.25 and 0.40 H cm-3 and pressures of 306 K cm-3 and 876 K cm-3. The FIRE-2 cooling curve features an unstable neutral phase between 1092 K and 8980 K, between densities of 0.02 and 0.06 H cm-3 and pressures of 47 and 168 K cm-3 for solar neighbourhood FUV irradiation.
Based on Wolfire et al. (2003), we expect an unstable phase at pressures between 1960 K cm-3 and 4810 K cm-3 between densities of and H cm-3 and temperatures of 258 K and 5040 K for solar neighbourhood ISM conditions. Clearly, neither cooling curve agrees quantitatively with expectations. However, while for Grackle the unstable pressure range is a factor of below that computed by Wolfire et al. (2003), for FIRE-2 the discrepancy is a factor of . Indeed, with the FIRE-2 cooling code, the diffuse interstellar medium (largely shielded from ionisation due to young stellar populations) of galactic discs will be entirely composed of cold neutral medium, with no stable warm phase at all — with the FIRE-2 cooling, such a phase exists only for pressures K cm-3, which is far below those pressures found in galactic discs and instead is more typical of the circumgalactic medium.

The source of this discrepancy in the FIRE-2 cooling curve is the unphysically low grain photoelectric heating rate produced by the FIRE cooling module in the neutral atomic ISM. Specifically, the photoelectric heating efficiency [as defined by Eq. (20) of Wolfire et al. (2003)] is 3–4 orders of magnitude too low when computed by GIZMO. This is a result of the model used for attenuating the ionising flux from the extragalactic UV background, which sharply cuts off the flux above gas densities of cm-3, resulting in an unphysically-low free electron density of cm-3 in the warm neutral ISM. In the non-public FIRE-2 radiative transfer code, there are additional local photoionising sources from young stellar populations, which partially mitigates this effect on the free electron number (but overestimates the photoionising flux due to the optically-thin approximation used for radiative transfer). However, the dominant source of ionisation in the neutral atomic ISM of the Galaxy is not young stellar populations, but the combination of stellar EUV emission from old stellar populations (e.g., low-mass X-ray binaries) and the soft diffuse X-ray background produced primarily by X-ray line emission in supernova remnants (Slavin et al., 2000), with an additional contribution from C+ ionisation in regions of high FUV irradiation (Wolfire et al., 2003). These sources are not included in the FIRE-2 ionisation model. Including these photoionising sources in models (e.g., Wolfire et al. 2003) yields a free electron number density in the warm neutral interstellar medium consistent with the observationally-inferred free electron density in the solar neighbourhood of cm-3 (assuming a hydrogen nucleon density cm-3; section 8.1 of Jenkins 2013).
Grackle version 2.2 does not include a self-consistent attenuation model for UV background radiation, so we did not enable it in our simulations, and our Grackle cooling calculations are therefore in the optically-thin limit. As shown by the detailed radiative transfer calculations of Rahmati et al. (2013) (c.f. Figure 3), optically-thin extragalactic ionisation remains a good approximation for calculating the ionisation state of interstellar gas up to densities of at least cm-3, because the attenuation of the extragalactic background is very nearly compensated by an increase in ionising flux due to diffuse galactic ionising sources. The equilibrium number of free electrons per hydrogen nucleon as a function of gas density for both Grackle and FIRE is shown in Figure 9. We note that the Grackle equilibrium ionisation predictions are broadly consistent with observations, whereas the FIRE equilibrium ionisation model is not.
Since the photoelectric heating efficiency scales as the free electron number density to the 0.73 power (Eq. 20 of Wolfire et al. 2003), the ionisation state can therefore make a difference of many orders of magnitude in the photoelectric heating rate. Due to this effect, in the diffuse interstellar medium (which should be far from ionising radiation produced by young stellar populations), the FIRE-2 cooling model transitions between the warm and cold neutral phases at pressures and densities that are several orders of magnitude too low. In light of this qualitatively incorrect thermal structure, all conclusions regarding the thermal state of the interstellar medium in the FIRE-2 simulations (e.g., Gurvich et al. 2020; Pandya et al. 2021) should be critically re-examined.