Abstract

We use a suite of hydrodynamical cosmological simulations from the Evolution and Assembly of GaLaxies and their Environments (EAGLE) project to investigate the formation of hot hydrostatic haloes and their dependence on feedback mechanisms. We find that the appearance of a strong bimodality in the probability density function of the ratio of the radiative cooling and dynamical times for halo gas provides a clear signature of the formation of a hot corona. Haloes of total mass 1011.5–1012 M develop a hot corona independent of redshift, at least in the interval z = 0–4, where the simulation has sufficiently good statistics. We analyse the build-up of the hot gas mass in the halo, Mhot, as a function of halo mass and redshift and find that while more energetic galactic wind powered by SNe increases Mhot, active galactic nucleus feedback reduces it by ejecting gas from the halo. We also study the thermal properties of gas accreting on to haloes and measure the fraction of shock-heated gas as a function of redshift and halo mass. We develop analytic and semi-analytic approaches to estimate a ‘critical halo mass’, Mcrit, for hot halo formation. We find that the mass for which the heating rate produced by accretion shocks equals the radiative cooling rate reproduces the mass above which haloes develop a significant hot atmosphere. This yields a mass estimate of Mcrit ≈ 1011.7 M at z = 0, which agrees with the simulation results. The value of Mcrit depends more strongly on the cooling rate than on any of the feedback parameters.

1 INTRODUCTION

One of the major goals of modern galaxy formation theory is to understand the physical mechanisms that halt the star formation process, by removing, heating or preventing the infall of cold gas on to the galactic disc. X-ray observations suggest that for haloes hosting massive galaxies the majority of baryonic matter resides not only in the galaxies but also in the halo in the form of virialized hot gas (e.g. Lin, Mohr & Stanford 2003; Crain et al. 2010; Anderson & Bregman 2011). This work investigates the formation of the hot gaseous corona (also referred to as ‘hot halo’ or ‘hot atmosphere’) around galaxies, that may help reduce the rate of infall of gas on to galaxies, and has been suggested to explain the observed galaxy bimodality (Dekel & Birnboim 2006).

The hot gaseous corona is produced as a result of an important heating process, which was initially discussed by Rees & Ostriker (1977), Silk (1977), Binney (1977) and White & Rees (1978), and later in the context of the cold dark matter paradigm by White & Frenk (1991), in an attempt to explain the reduced efficiency of star formation within massive haloes. They proposed that while a dark matter halo relaxes to virial equilibrium, gas falling into it experiences a shock, and determined the cooling time of gas behind the shock. As long as the cooling time is shorter than the dynamical time, the infalling gas cools (inside the current ‘cooling radius’) and settles on to the galaxy. If, on the other hand, the cooling time exceeds the dynamical time, the gas is not able to radiate away the thermal energy that supports it. Therefore, it adjusts its density and temperature quasi-statically, forming a hot hydrostatic halo atmosphere, pressure supported against gravitational collapse. Over the past decade, the works of Birnboim & Dekel (2003) and Dekel & Birnboim (2006, hereafter DB06) investigated the stability of accretion shocks around galaxies, and concluded that a hot atmosphere forms when the compression time of shocked gas is larger than its cooling time, occurring when haloes reach a mass of about 1011.7 M.

Numerical simulations have shown, however, that cold gas accreting through filaments does not necessarily experience a shock when crossing the virial radius, even if the spherically averaged cooling radius is smaller than the virial radius. Many groups have concluded that there are two modes of gas accretion, named as hot and cold accretion, that are able to coexist in high-mass haloes at high redshift (e.g. Kereš et al. 2005; Dekel & Birnboim 2006; Ocvirk, Pichon & Teyssier 2008; Dekel et al. 2009; Faucher-Giguère, Kereš & Ma 2011; van de Voort et al. 2011; van de Voort & Schaye 2012; Nelson et al. 2013). The hot mode of accretion refers to the accreted gas that shock-heats to the halo virial temperature. The cold mode refers to gas that flows along dark matter filaments and is accreted on to the central galaxy without being shock-heated near the virial radius. It has been found that the cold streams end up being the dominant mode of accretion on to galaxies at high redshift (e.g. Dekel et al. 2009). However, it has also been found that most of the cold gas from filaments does experience significant heating when accreted by the galaxy at radii much smaller than the virial radius (Nelson et al. 2013).

Besides the rate of gas accretion, the hot halo can be influenced by feedback mechanisms and photoionization from local sources. Feedback mechanisms can suppress cooling from the hot halo, modify the distribution of hot gas in the halo (van de Voort & Schaye 2012) and (to a limited degree) reduce the accretion rates on to haloes (Faucher-Giguère et al. 2011; van de Voort et al. 2011; Nelson et al. 2015). In this work, we investigate the impact of feedback mechanisms on the hot halo in detail and analyse whether reasonable changes to the feedback implementation result in a change to the mass scale of hot halo formation. Increasing photoionizing flux (higher star formation rate or an active nucleus) from local sources can decrease the net cooling rate of gas in the proximity of the galaxy, potentially suppressing cold gas accretion in low-mass haloes (<5 × 1011 M) and decrease the mass scale for hot halo formation (Cantalupo 2010). However, the results are sensitive to the assumed escape fraction, and Vogelsberger et al. (2012) found only small effects when including local active galactic nucleus (AGN). For simplicity, we will assume the gas is only exposed to the metagalactic background radiation.

We use the suite of cosmological hydrodynamical simulations from the EAGLE project (Crain et al. 2015; Schaye et al. 2015) to investigate the physical properties of the hot gas in the halo, and their dependence on energy sources like stellar feedback and AGN feedback. Our main goal is to study the thermal properties of gas accreting on to haloes and the gas mass that remains hot in the halo (Mhot). In addition, we develop analytic and semi-analytic approaches to calculate the heating rates of gas in the halo and the mass scale of hot halo formation, which we apply in a companion work (Correa et al. in preparation, hereafter Paper II). In Paper II, we derive a physically motivated model for gas accretion on to galaxies that accounts for the hot/cold modes of accretion on to haloes and for the rate of gas cooling from the hot halo. With this model, we aim to provide some insight into the physical mechanisms that drive the gas inflow rates on to galaxies.

The outline of this paper is as follows. We describe the EAGLE simulations series used in this study and the analysis methodology in Section 2. We present our main results concerning the physical properties of hot and cold gas in the halo in Section 3 and on the modes of gas accretion in Section 4. In Section 5, we develop an analytic approach to calculate a ‘critical mass scale’, Mcrit, for hot halo formation, and compare it with our numerical results and previous works. Finally, in Section 6 we summarize our conclusions.

2 SIMULATIONS

To investigate the formation and evolution of hot haloes surrounding galaxies, we use cosmological, hydrodynamical simulations from the Evolution and Assembly of GaLaxies and their Environments (EAGLE) project (Crain et al. 2015; Schaye et al. 2015). The EAGLE simulations were run using a modified version of gadget 3 (Springel 2005), a N-Body Tree-PM smoothed particle hydrodynamic (SPH) code. The EAGLE version contains a new formulation of SPH, new time stepping and new subgrid physics. Below we present a summary of the EAGLE models. For a more complete description, see Schaye et al. (2015).

The EAGLE simulations assume a Λ cold dark matter (ΛCDM) cosmology with the parameters derived from Planck-1 data (Planck Collaboration et al. 2014), Ωm = 1 − ΩΛ = 0.307, Ωb = 0.04825, h = 0.6777, σ8 = 0.8288, ns = 0.9611. The primordial mass fractions of hydrogen and helium are X = 0.752 and Y = 0.248, respectively.

Table 1 lists the box sizes and resolutions of the simulations used in this work. We use the notation LxxxNyyyy, where xxx indicates box size (ranging from 25 to 100 comoving  Mpc) and yyyy indicates the cube root of the number of particles per species (ranging from 3763 to 15043, with the number of baryonic particles initially equal to the number of dark mater particles). The gravitational softening was kept fixed in comoving units down to z = 2.8 and in proper units thereafter. We will refer to simulations with the mass and spatial resolution of L025N0376 as intermediate-resolution runs and to simulations with the resolution of L025N0752 as high-resolution runs.

Table 1.

List of simulations used in this work. From left to right, the columns show simulation identifier; comoving box size; number of dark matter particles (initially there are equally many baryonic particles); initial baryonic particle mass; dark matter particle mass; comoving (Plummer-equivalent) gravitational softening; maximum physical softening.

SimulationLNmbmdmεcomεprop
(comoving Mpc)(M)(M)(comoving kpc)(proper kpc)
L025N03762537631.81 × 1069.70 × 1062.660.70
L025N07522575232.26 × 1051.21 × 1061.330.35
L050N07525075231.81 × 1069.70 × 1062.660.70
L100N1504100150431.81 × 1069.70 × 1062.660.70
SimulationLNmbmdmεcomεprop
(comoving Mpc)(M)(M)(comoving kpc)(proper kpc)
L025N03762537631.81 × 1069.70 × 1062.660.70
L025N07522575232.26 × 1051.21 × 1061.330.35
L050N07525075231.81 × 1069.70 × 1062.660.70
L100N1504100150431.81 × 1069.70 × 1062.660.70
Table 1.

List of simulations used in this work. From left to right, the columns show simulation identifier; comoving box size; number of dark matter particles (initially there are equally many baryonic particles); initial baryonic particle mass; dark matter particle mass; comoving (Plummer-equivalent) gravitational softening; maximum physical softening.

SimulationLNmbmdmεcomεprop
(comoving Mpc)(M)(M)(comoving kpc)(proper kpc)
L025N03762537631.81 × 1069.70 × 1062.660.70
L025N07522575232.26 × 1051.21 × 1061.330.35
L050N07525075231.81 × 1069.70 × 1062.660.70
L100N1504100150431.81 × 1069.70 × 1062.660.70
SimulationLNmbmdmεcomεprop
(comoving Mpc)(M)(M)(comoving kpc)(proper kpc)
L025N03762537631.81 × 1069.70 × 1062.660.70
L025N07522575232.26 × 1051.21 × 1061.330.35
L050N07525075231.81 × 1069.70 × 1062.660.70
L100N1504100150431.81 × 1069.70 × 1062.660.70

2.1 Baryonic physics

Radiative cooling and photoheating are included as in Wiersma, Schaye & Smith (2009). The element-by-element radiative rates are computed in the presence of the cosmic microwave background (CMB), and the Haardt & Madau (2001) model for UV and X-ray background radiation from quasars and galaxies.

Star formation is modelled following the recipe of Schaye & Dalla Vecchia (2008). Star formation is stochastic above a density threshold, nH,0, that depends on metallicity (in the model of Schaye 2004, nH,0 is the density of the warm, atomic phase just before it becomes multiphase with a cold, molecular component), with the probability of forming stars depending on the gas pressure. The implementation of stellar evolution and mass loss follows the work of Wiersma et al. (2009). Star particles are treated as simple stellar populations with a Chabrier (2003) initial mass function, spanning in the range of 0.1–100 M. Feedback from star formation and supernovae events follows the stochastic thermal feedback scheme of Dalla Vecchia & Schaye (2012). Rather than heating all neighbouring gas particles within the SPH kernel, they are selected stochastically based on the available energy, and then heated by a fixed temperature increment of ΔT = 107.5 K. The probability that a neighbouring SPH particle is heated is determined by the fraction of the energy budget that is available for feedback, fth. If ΔT is sufficiently high to ensure that radiative losses are initially small, the physical efficiency of feedback can be controlled by adjusting fth. The value fth = 1 corresponds to the expected value of energy injected by core collapse supernovae (ESN = 1.736 × 1049 erg |$\rm {M}_{{\odot }}^{-1}$| per solar mass of stars formed). EAGLE takes fth to be a function of the local physical conditions,
\begin{equation} f_{\rm {th}}=f_{\rm {th,min}}+\frac{f_{\rm {th,max}}-f_{\rm {th,min}}}{1+\left(\frac{Z}{0.1\, {\rm Z}_{{\odot }}}\right)^{n_{Z}}\left(\frac{n_{\rm {H,birth}}}{n_{\rm {H},0}}\right)^{-n_{n}}}, \end{equation}
(1)
which depends on maximum and minimum threshold values (fth,max and fth,min, respectively), on density (nH refers to hydrogen number density and nH,birth to the density inherited by the star particle) and metallicity (Z) of the gas particle. The reference simulations (hereafter Ref) use fth,max = 3, fth,min = 0.3 and nH, 0 = 0.67 cm− 3. These values were chosen to obtain good agreement with the observed present-day galaxy stellar mass function and disc galaxy sizes (as described by Crain et al. 2015).

Black hole seeds (of mass ≈1.4 × 105 M) are included in the gas particle with the highest density in haloes of mass greater than ≈1.4 × 1010 M that do not contain black holes (Springel, Di Matteo & Hernquist 2005). Black holes can grow through mergers and gas accretion. The accretion events follow a modified Bondi–Hoyle formula that accounts for the angular momentum of the accreting gas (Rosas-Guevara et al. 2015; Schaye et al. 2015), and a free parameter that is related to the disc viscosity. AGN feedback follows the accretion of mass on to the black hole, where a fraction (0.015) of the accreted rest mass energy is released as thermal energy into the surrounding gas, and is implemented stochastically, as per the stellar feedback scheme, with a fixed free parameter heating temperature, ΔTAGN, which is set to 108.5 K in the reference simulations.

When the resolution is increased, the parameters may need to be (re-)calibrated to retain the agreement with observations. The high-resolution simulation with recalibrated parameters is called Recal. In addition to Ref and Recal, we also use simulations with different feedback implementations to test the impact of feedback on the formation of the hot halo. Table 2 lists the values of the feedback parameters adopted in each simulation. In the table, the simulation identifier describes the differences in the feedback with respect to Ref. In the stellar feedback case, ‘Less/More Energetic FB’ means that in these simulations, the energy injected per mass of stars formed is lower/higher with respect to Ref. In the AGN case, ‘More Explosive AGN FB’ means that AGN feedback is more explosive and intermittent, but the energy injected per unit mass accreted by the BH does not change with respect to Ref. Additional information regarding the performance of the EAGLE simulations including an analysis of subgrid parameter variations, a study of the evolution of galaxy masses, star formation rates and sizes can be found in Crain et al. (2015), Furlong et al. (20152017) and Schaye et al. (2015).

Table 2.

List of feedback parameters that are varied in the simulations. From left to right, the columns show simulation identifier (prefix), asymptotic maximum and minimum values of the efficiency of star formation feedback (fth), density term denominator (nH,0) and exponents (nn and nZ) from equation (1), and temperature increment of stochastic AGN heating (ΔTAGN).

Simulationfth,(max,min)nH,0nn( = nZ)ΔTAGN
(cm−3)(cm−3)(K)
Ref3.0, 0.300.672/ln (10)108.5
Less energetic FB1.5, 0.150.672/ln (10)108.5
More energetic FB6.0, 0.600.672/ln (10)108.5
No AGN FB3.0, 0.300.672/ln (10)
More explosive AGN FB3.0, 0.300.672/ln (10)109.5
Recal3.0, 0.300.251/ln (10)109
Simulationfth,(max,min)nH,0nn( = nZ)ΔTAGN
(cm−3)(cm−3)(K)
Ref3.0, 0.300.672/ln (10)108.5
Less energetic FB1.5, 0.150.672/ln (10)108.5
More energetic FB6.0, 0.600.672/ln (10)108.5
No AGN FB3.0, 0.300.672/ln (10)
More explosive AGN FB3.0, 0.300.672/ln (10)109.5
Recal3.0, 0.300.251/ln (10)109
Table 2.

List of feedback parameters that are varied in the simulations. From left to right, the columns show simulation identifier (prefix), asymptotic maximum and minimum values of the efficiency of star formation feedback (fth), density term denominator (nH,0) and exponents (nn and nZ) from equation (1), and temperature increment of stochastic AGN heating (ΔTAGN).

Simulationfth,(max,min)nH,0nn( = nZ)ΔTAGN
(cm−3)(cm−3)(K)
Ref3.0, 0.300.672/ln (10)108.5
Less energetic FB1.5, 0.150.672/ln (10)108.5
More energetic FB6.0, 0.600.672/ln (10)108.5
No AGN FB3.0, 0.300.672/ln (10)
More explosive AGN FB3.0, 0.300.672/ln (10)109.5
Recal3.0, 0.300.251/ln (10)109
Simulationfth,(max,min)nH,0nn( = nZ)ΔTAGN
(cm−3)(cm−3)(K)
Ref3.0, 0.300.672/ln (10)108.5
Less energetic FB1.5, 0.150.672/ln (10)108.5
More energetic FB6.0, 0.600.672/ln (10)108.5
No AGN FB3.0, 0.300.672/ln (10)
More explosive AGN FB3.0, 0.300.672/ln (10)109.5
Recal3.0, 0.300.251/ln (10)109

2.2 Hydrodynamics

There has been much debate regarding the systematic differences between SPH, grid codes and moving mesh grid codes when modelling fluid mixing and gas heating and cooling (e.g. Agertz et al. 2007; Vogelsberger et al. 2012; Nelson et al. 2013). It has been shown by Hutchings & Thomas (2000) and Creasey et al. (2011) that SPH simulations may not adequately resolve shocks of accreted gas. Since shocks are generally spread over several SPH kernel lengths, the heating rate is smoothed over time, potentially making it easier for radiative cooling to become important. In addition, if radiative cooling is able to limit the maximum temperature reached by the gas particle, numerical radiative losses may be enhanced.

In contrast, numerical simulations using grids do not smooth out the shocks, and are thus better at identifying shock temperatures spikes. Numerical simulations using moving mesh codes can also capture shocks accurately. However, in common with grid codes, they may suffer from numerical mixing of hot and cold gas as the fluid moves across cells. Recently, Nelson et al. (2013) compared the moving mesh code arepo (Springel 2010) with the standard SPH version of gadget, and calculated the rates of cold mode of gas accretion on to haloes and galaxies. They found that while the rates of gas accreted cold on to haloes are in very good agreement between the simulations run with gadget and arepo, the rates of gas accreted cold on to galaxies differ significantly, with galaxies in arepo having a 20 per cent lower cold fraction in 1011 M haloes. Nelson et al. (2013) concluded that most of the cold gas from filaments experiences significant heating after crossing the virial radius, implying that the numerical deficiencies inherent in different simulation codes may modify the relative contributions of hot and cold modes of accretion on to galaxies.

Some differences in the contributions of hot and cold modes of accretion on to galaxies and haloes may, however, be due to the method employed to select shock-heated gas. Previous works (e.g. Kereš et al. 20052009; Faucher-Giguère et al. 2011; van de Voort et al. 2011; Nelson et al. 2013, amongst others) followed the thermal history of the gas and applied a fixed temperature cut to the distribution of the maximum past temperature (Tmax), to separate hot from cold mode accretion. However, Tmax is not suitable for identifying cold flows if the gas experiences a shock but cools immediately afterwards, as may happen for accretion on to galaxies. In this case, a filament that is mostly cold except at a point near the galaxy would be labelled as hot mode accretion by numerical studies using Tmax, but observers would identify it as a cold flow. This practical problem may not be important for SPH simulations that suffer from ‘in shock cooling’ because they do not resolve the accretion shocks on to the galaxy, or, as in the case of van de Voort et al. (2011) and EAGLE, that impose a temperature–density relation on to high-density gas, but it may affect the conclusions inferred from moving mesh codes using the Tmax statistic. To avoid this issue, we use an alternative method to identify shock-heated particles in Section 4, based on post-shock temperature values.

Hydrodynamic solvers may also produce differences in the hot/cold modes of accretion. The EAGLE version of gadget uses the hydrodynamic solver ‘Anarchy’, which greatly improves the performance on standard hydrodynamical tests, when compared to the original SPH implementation in gadget (Schaller et al. 2015, see Hu et al. 2014 for similar results). Anarchy makes use of the pressure-entropy formulation derived in Hopkins (2013), alleviating spurious jumps at contact discontinuities. It also uses an artificial viscosity switch advocated by Cullen & Dehnen (2010) that allows the viscosity limiter to be stronger when shocks and shear flows are present. In addition, Anarchy includes an artificial conduction switch (similar to that of Price 2008), the C2 Wendland (1995) kernel and the time step limiters of Durier & Dalla Vecchia (2012). These changes ensure that ambient particles do not remain inactive when a shock is approaching.

Recently, Sembolini et al. (2016) compared cosmological simulations of clusters using SPH as well as mesh-based codes. They found that the modern SPH schemes (such as Anarchy) that allow entropy mixing produce gas entropy profiles that are indistinguishable from those obtained with grid-based schemes. In addition, Schaller et al. (2015) compared the EAGLE simulations with simulations run with the same subgrid physics, but using the standard gadget rather than the Anarchy hydrodynamic solver. They found that while simulations with standard SPH contain haloes with a large number of dense clumps of gas at all radii, Anarchy's ability to mix phases allows dense clumps to dissolve into the hot halo. These substantial improvements of the SPH formulation in the EAGLE simulations motivate a detailed description of the resulting predictions for hot halo formation and of hot/cold mode accretion.

2.3 Identifying haloes and galaxies

Throughout this work, we select the largest subhalo in each Friends-of-Friends (FoF) group, and use the subfind algorithm (Springel, White & Hernquist 2001; Dolag et al. 2009) to identify the substructures (subhaloes) within it. The FoF algorithm adopts a dimensionless linking length of 0.2, and the subfind algorithm calculates halo virial masses and radii via a spherical overdensity routine that centres the main subhalo from the FoF group on the minimum of the gravitational potential. We define halo masses, M200, as the mass of all matter within the radius, R200, for which the mean internal density is 200 times the critical density of the Universe.

To select the gas associated with the central galaxies embedded in each resolved halo, we identify the gravitationally bound cold and dense gas within R200 that is star forming and/or has a hydrogen number density, nH > 0.01cm− 3, and temperature T < 105K. We also require all particles to be contained within a sphere of radius 0.15 × R200 in order to avoid labelling infalling cold flows (that would be included by the T − nH cuts but are mostly at large radii) as part of the galaxy.

2.4 Measuring gas accretion

Once we have identified the haloes, we build merger trees across the simulation snapshots.1 The standard procedure to build a halo merger tree is to link each progenitor halo with a unique ‘descendant’ halo in the subsequent output (see e.g. Fakhouri, Ma & Boylan-Kolchin 2010). To do so, we identify the main branches of the halo merger trees and compute the halo (and central galaxy) accretion rate between two consecutive snapshots. At each output redshift (snapshot), we select the most massive haloes within each FoF group and consider them to be ‘resolved’ if they contain more than 1000 dark matter particles, which corresponds to a minimum halo mass of M200 = 109.8 M (108.8 M) in the intermediate- (high-) resolution simulations. This limit on the number of dark matter particles results from a convergence analysis that we present in Paper II, where we find that in smaller haloes the accretion on to galaxies does not converge, indicating that the inner galaxies are not well resolved. We refer to the resolved haloes as ‘descendants’, and then link each descendant with a unique ‘progenitor’ at the previous output redshift. This is non-trivial due to halo fragmentation, in which subhaloes of a progenitor halo may have descendants that reside in more than one halo. Such fragmentation can be either spurious or due to a physical unbinding event. To account for this, we link the descendant to the progenitor that contains the majority of the descendant's 25 most bound dark matter particles (see Correa et al. 2015b for an analysis of halo mass history convergence using these criteria to connect haloes between snapshots).

We distinguish between gas accreted on to a halo and gas accreted on to a galaxy. For each descendant halo at zi and its linked progenitor at zj (zj > zi), we identify the particles that are in the descendant but not in its progenitor by performing particle ID matching. We then select particles that are new in the halo and reside within the virial radius, as particles accreted on to the halo in the redshift range of ziz < zj. The accretion rate on to galaxies is further explored in Paper II, where we follow the methodology described above for calculating accretion rates on to haloes, and we select the new particles within the radius 0.15 × R200 as particles accreted on to the galaxies in the redshift range of ziz < zj (see Paper II, Section 2.1, for a discussion on methods for calculating gas accretion on to galaxies).

3 HOT HALO FORMATION

The simple models of galaxy formation (e.g. Rees & Ostriker 1977; White & Rees 1978) assume that as long as the cooling time, tcool, is shorter than the dynamical time, tdyn, the infalling gas cools (inside a ‘cooling radius’, White & Frenk 1991) and settles into the galaxy. Otherwise, the gas is unable to efficiently radiate its thermal energy and forms a hot hydrostatic atmosphere, which is pressure supported against gravitational collapse. More recent semi-analytic models of galaxy formation assume that the cooling radius expands outwards as a function of time, therefore the comparison is done between gas cooling time and a different time-scale representing the time available for cooling, like the time since the last major event or the time of halo formation (see e.g Lacey et al. 2016). In this section, we investigate when the hot hydrostatic halo forms in the EAGLE simulations, by analysing the interplay between the cooling and dynamical times of the gas particles in the halo. Throughout this work, we define hot halo gas as all gas particles that have tcool > tdyn and that do not form part of the galaxy, i.e. r > 0.15R200.

We calculate tdyn of the gas particle as
\begin{equation} t_{\rm {dyn}}=r/V_{\rm {c}}(r), \end{equation}
(2)
where Vc(r) = [GM( < r)/r]1/2 is the circular velocity and M(<r) is the mass enclosed within r. We calculate tcool as
\begin{equation} t_{\rm {cool}} = \frac{3nk_{\rm {B}}T}{2\Lambda }, \end{equation}
(3)
where n is the number density of the gas particle (n = ρgasmp, μ is the molecular mass weight calculated from the cooling tables of Wiersma et al. 2009, and mp is the proton mass), kB is the Boltzmann constant, T is the gas temperature and Λ is the cooling rate per unit volume with units of erg cm−3s−1. To calculate Λ, we use the tabulated cooling function for gas exposed to the evolving UV/X-ray background from Haardt & Madau (2001) given by Wiersma et al. (2009), which was also used by the EAGLE simulations. Note that the ‘standard’ definition for dynamical time of gas within a virialized system depends on R200 and Vc(R200), and not on the local radius and local circular velocity as defined here. We use local values rather than to investigate if shorter dynamical times in the inner dense regions give rise to a cooling flow. However, we find that changing equation (2) to tdyn = R200/Vc(Rvir) does not change our conclusions.

Fig. 1 shows temperature profiles (left column), the logarithm of the ratio between cooling times and dynamical times (middle column) and the respective mass-weighted probability density function (PDF) of log10tcool/tdyn (right column) for gas from haloes in the mass range of 1011.9–1012.1 M (top row), 1011.4–1011.6 M (middle row) and 1010.9–1011.1 M (bottom row) at z = 0, taken from the Ref-L025N0752 simulation. In the right-hand panels and throughout this work, the PDFs are calculated by stacking haloes in the selected mass range and distributing the gas particles in logarithmic bins of size 0.1 dex. We then sum the mass of the gas particles in each bin and normalize the distribution by the total gas mass. In the left-hand panels, the legend lists the median values of the mass, virial temperature (defined as |$T_{\rm {vir}}=\frac{\mu m_{\rm {p}}}{2k_{\rm {B}}}V^{2}_{200}$|⁠, with |$V^{2}_{200}=GM_{200}/R_{200}$|⁠) and virial radius of haloes selected in each mass bin. The left panels also show in solid, dotted and dashed lines the median temperature per radial bin of gas from haloes taken from the simulations Ref-L025N0376, Ref-L025N0752 and Recal-L025N0752, respectively.

Figure 1.

Temperature profile (left column), logarithm of the ratio between cooling times and local dynamical times (middle column) and the mass-weighted probability density function (PDF, right column) of log10tcool/tdyn of gas from haloes in the mass range of 1011.9–1012.1 M (top row), 1011.4–1011.6 M (middle row) and 1010.9–1011.1 M (bottom row) at z = 0 taken from the Ref-L025N0752 simulation. The number of particles in a pixel is used for colour coding. The solid, dotted and dashed lines in the left-hand panels correspond to the median temperature per radial bin for different simulations.

The left-hand panels of Fig. 1 show that while there is very good agreement in the median temperature profiles at small (r/R200 < 0.2) and large (r/R200 > 0.4) radii, at intermediate radii the median temperatures from the intermediate-resolution run (Ref-L025N0376) are larger by up to 0.3 dex than those from the high-resolution runs (L025N0752). This is in agreement with the convergence analysis of Nelson et al. (2016), who concluded that the physics (different models of stellar winds or AGN feedback) has a greater impact on T(r) than resolution. We also find that in the radial range of r = [0.2 − 0.4]R200, where the convergence with resolution is poorest, the median temperatures drop from Tgas ∼ Tvir to Tgas ∼ 104 K (in agreement with Nelson et al. 2016, rdrop ≈ 0.25R200 and van de Voort & Schaye 2012, rdrop ≈ 0.2 − 0.4R200), because of the high densities that rapidly decrease the gas cooling times, enabling it to radiate away its thermal energy and join the ISM.

The top and middle left-hand panels of Fig. 1 show that there is relatively little gas with T ∼ 105 K at small and intermediate radii, reflecting the short cooling times at these temperatures. The cooling flow in the hot halo is formed by T = 106 K gas that slowly decreases in temperature as it loses hydrostatic support due to cooling. The ISM consists of T = 104 K gas at r/R200 < 0.15. For a better understanding of the hot halo forming as a function of halo mass and its effect on the infall rate of gas on to the galaxy, we next analyse the middle and right columns. The bottom middle panel shows that in haloes with masses between 1010.9and1011.1 M, most of the gas has low temperature (Tgas < Tvir), short cooling times (tcool < tdyn) and infalls towards the central galaxy, although a substantial fraction of gas has tcool > tdyn at r ∼ R200. At larger halo masses, a larger fraction of the gas is unable to cool and therefore forms a hot halo. The middle panel shows that haloes between 1011.4and1011.6 M are in the intermediate stage between developing a hot stable atmosphere (gas with Tgas ∼ Tvir and tcool > tdyn) and continuing to fuel the galaxy. The top middle panel clearly shows a stable hot halo and a reduced amount of gas infalling towards the galaxies (gas at r > 0.3R200 and tcool < tdyn).

Fig. 2 is similar to Fig. 1, but shows haloes in the mass range of 1011.9–1012.1 M (top panels), 1011.4–1011.6 M (bottom panels) at z = 2.24. The top middle panel shows that 1012 M haloes develop a hot atmosphere, despite the significant fraction of cold gas at large radii that is accreted on to the halo. This cold gas forms part of the cold filamentary flows, which cross the virial radius, and are directly accreted on to the central galaxy. The cold accretion mode is best seen as the gas at T = 104 K and r/R200 > 0.4 in the bottom panel of Fig. 2, which remains cool (with T = 104 K), as it is accreted on to the galaxy.

Figure 2.

Same as Fig. 1 but for haloes at z = 2.24.

The presence of cold flows produces gaseous haloes with an isothermal temperature profile of Tgas ∼ 104 K at all radii. Besides analysing the cooling time profiles, Nelson et al. (2016) and van de Voort & Schaye (2012) analysed the entropy profiles of haloes at z = 2, and concluded the that while the entropy of the cold-mode gas decreases smoothly and strongly towards the centre, the entropy of the hot-mode gas decreases slightly down to 0.2R200, after which it drops steeply. We find that the cooling time profiles of the hot (tcool > tdyn) and cold (tcool < tdyn) modes follow the entropy profiles.

Figs 1 and 2 show that as the halo mass increases, so does the hot gas mass. In the case of 1011 M haloes, the bottom left-hand panel of Fig. 1 shows that there is a large fraction of gas at r > 0.4R200 with temperatures equal to or larger than the halo virial temperature. This seems to indicate that gas is shock-heating to the halo virial temperature when crossing R200 and forming a hot atmosphere. However, gas with tcool ∼ tdyn in the outer parts of ∼1011 M haloes does not imply that the halo formed a stable hot atmosphere via gravitational accretion shocks, since the gas is affected by the extragalactic UV/X-ray background as we show in the next section.

The figures also show that as haloes are growing a hot atmosphere, the tcool/tdyn PDF begins to present a strong bimodal shape, with a local maximum at tcool > tdyn followed by a local minimum at tcool < tdyn (see top right-hand panel). We then conclude that the bimodality in the cooling time PDF provides a clear signature of the formation of a hot halo, and the right-hand panels indicate that the hot hydrostatic halo forms in the halo mass range of 1011.5 M–1012 M with a weak dependence on redshift.

We also analyse the radial velocity distributions of gas and find that in haloes of mass 1012 M at z = 0, 92.2 per cent (61.3 per cent) of hot gas has an absolute radial velocity lower than 100 km s−1 (50 km s−1), indicating that most of it is in hydrostatic equilibrium and not accreting on to the galaxy.

3.1 The impact of photoheating in low-mass haloes

In the previous section, we analysed the dependence of the gas cooling rates on halo mass and concluded that a halo with a hot hydrostatic atmosphere should present a strongly bimodal tcool/tdyn PDF with a local maximum at tcool > tdyn. As the virial temperature decreases from 105.5 K to 105.2 K, we would naively expect the peak in the tcool/tdyn PDF to shift towards shorter cooling times. This is, however, not the case: we find that at z = 0, the gas in haloes less massive than 1011 M (Tvir ≈ 105.2 K) is affected by the extragalactic UV/X-ray background radiation, which strongly suppresses the net cooling rate of gas in the temperature range of T ∼ 104–105 K (Efstathiou 1992; Wiersma et al. 2009). As a result, the peak in the tcool/tdyn PDF remains at tcool ∼ tdyn. This can be seen in Fig. 3, where we show the tcool/tdyn PDF of gas from haloes in the mass range of 1010.4–1010.6 M (olive lines), 1010.8–1011.0 M (orange lines) and 1011.2–1011.4 M (red lines). The solid lines correspond to the case where the cooling rates are calculated for gas exposed to the evolving UV/X-ray background from Haardt & Madau (2001), while the dashed lines correspond to the case where the cooling rates are calculated for gas in collisional ionization equilibrium (CIE) and not exposed to the background radiation. Note, however, that we apply these CIE cooling rates to simulations that were run using cooling rates that did account for photoheating, limiting the gas temperature to ∼104 K.

Figure 3.

Mass-weighted PDF of the logarithm of the ratio between the net radiative cooling time and the local dynamical time for gas from haloes in the mass range of 1010.4–1010.6 M (green lines), 1010.8–1011 M (orange lines), 1011.2–1011.4 M (red lines) at z = 0. The solid lines correspond to the case where the cooling rates are calculated for gas exposed to the evolving UV/X-ray background from Haardt & Madau (2001), while the dashed lines correspond to the case where the cooling rates are calculated for gas in collisional ionization equilibrium (CIE).

Fig. 3 shows that there is no large difference in the gas tcool/tdyn PDF for haloes more massive than 1011.3 M, indicating that there is no strong impact of the background radiation on the cooling rates of gas from haloes with virial temperatures larger than 105 K. In smaller haloes, the peak in the tcool/tdyn PDF curve is shifted to tcool ∼ 0.3tdyn in the case of no background radiation.

3.2 The impact of feedback

Feedback can affect the formation of the hot hydrostatic halo around galaxies. For example, very energetic SN activity generates large outflows and strong winds that shock against the gaseous halo. As a result, the winds can fill the halo with gas expelled from the galaxy, increasing the amount of hot gas at large radii. In this subsection, we compare the tcool/tdyn mass-weighted PDF at fixed halo mass obtained from simulations with different feedback implementations (see Table 2 for reference and Section 2.1 for a brief description), and determine, by analysing whether the cooling time PDF is bimodal, the mass range where the hot halo is forming.

Fig. 4 shows the mass-weighted PDF of tcool/tdyn of gas from haloes in the Ref-L100N1504 simulation in the mass range of 1011.4–1011.6 M, 1011.9–1012.1 M, 1012.4–1012.6 M and 1013.4–1013.6 M at z = 0 (left-hand panel) and z = 2.24 (right-hand panel). In the figures, the labels show the median halo mass for each mass bin. The region where tcool > tdyn corresponds to hot gas in the halo.

Figure 4.

Mass-weighted PDF of the logarithm of the ratio between cooling times and local dynamical times of gas from haloes in the mass range of 1011.4–1011.6 M, 1011.9–1012.1 M, 1012.4–1012.6 M and 1013.4–1013.6 M at z = 0 (left-hand panel) and z = 2.24 (right-hand panel).

As the halo mass increases so does the amount of hot gas (Section 3.3). The tcool/tdyn PDF of gas in 1012 M haloes at z = 0 shows a bimodal shape that becomes mostly unimodal in higher mass haloes. At z = 2.24, the bimodality persists up to the highest mass bin (1013 M) due to the contribution from cold flows that populate the peak at tcool < tdyn. We find that the presence of the bimodality in the tcool/tdyn PDF indicates the increasing amount of hot gas at large radii and the eventual formation of the hot halo. Then, from visual inspection, we determine that the hot hydrostatic atmosphere is forming in haloes with masses between 1011.5 and 1012 M at z = 0 and z = 2.24.

The panels in Fig. 5 repeat the analysis shown in the left-hand panel of Fig. 4, but instead show tcool/tdyn mass-weighted PDFs for the L025N0376 simulations with different feedback prescriptions. In this case, the PDFs correspond to gas from haloes in the mass range of 1011.4–1011.6 M, 1011.6–1011.8 M, 1011.9–1012.1 M and 1012.4–1012.6 M. In the panels, the top left legends indicate the total gas mass in the halo (Mgas).

Figure 5.

Mass-weighted PDF of the logarithm of the ratio between cooling times and local dynamical times of gas from haloes in the mass range of 1011.4–1011.6 M, 1011.6–1011.8 M, 1011.9–1012.1 M and 1012.4–1012.6 M at z = 0. The legends show the median mass of the haloes in each mass bin. The different panels show L025N0376 simulations with different feedback prescriptions: no AGN (top left), weak stellar feedback (top right), strong AGN (bottom left) and strong stellar feedback (bottom right).

The simulation shown in the top left-hand panel of Fig. 5 does not have AGN feedback, while the one in the bottom left-hand panel uses a more explosive AGN feedback. Both include the same feedback from star formation as in Ref. It can be seen that neither the bimodality of the tcool/tdyn PDF nor the amount of hot gas are strongly affected by AGN feedback in haloes with masses between 1011.5and1011.9 M. The right-hand panels in Fig. 5 show the tcool/tdyn PDFs in the less (top panel) and more energetic stellar feedback (bottom) scenarios (both including the same AGN feedback as in the Ref model). For these halo masses, stellar feedback has a strong impact on the tcool/tdyn PDFs. While a more energetic stellar feedback increases the fraction of hot gas, at least in the halo mass range probed by these simulations (<1012 M) and thus limits the build-up of cold-mode gas in the halo centre (in agreement with van de Voort & Schaye 2012), a less energetic stellar feedback maintains the bimodality in the tcool/tdyn PDF but shifts the peak in the tcool/tdyn PDF of hot gas towards larger cooling times. We find that the bimodality of the tcool/tdyn PDF is present in 1011.7 M haloes with more energetic stellar feedback and in 1012 M haloes with less energetic stellar feedback.

In the following section, we further analyse the dependence of the total hot gas mass on halo mass, redshift and feedback. In Section 5, we derive an analytic model for the formation of a stable hot hydrostatic atmosphere. In the model, we calculate a halo mass scale for which the gravitational heating rate of the hot halo gas balances the gas cooling rate, thus keeping the gas hot and enabling the formation of a hot atmosphere. With the model, we show that the ability of a halo to develop a hot hydrostatic atmosphere depends on the amount of hot gas that the halo already contains, which we calculate in the next subsection, and on the fraction of accreted gas that shock-heats to the halo virial temperature (Section 4).

3.3 Hot gas mass

In order to better understand the build-up of the hot gas mass, Mhot (mass of gas with tcool > tdyn and r > 0.15R200) as haloes evolve, in this section we look for a correlation between Mhot and the total halo mass as a function of redshift. Fig. 6 shows the median ratio of Mhot/(Ωbm)M200 (with Ωbm = 0.146 the universal baryon fraction) taken from a range of simulations (as indicated in the legends) at z = 0 (top panel) and at z = 2.24 (the second panel from the top). In these panels, the error bars show the 1σ scatter for the Ref-L025N0752 and Ref-L100N1504 simulations. The median ratio of Mhot/(Ωbm)M200 is also shown in the third panel from the top, but in this case the values are taken from the Ref-L100N1504 simulation and at various output redshifts.

Figure 6.

Fraction of hot (with tcool > tdyn) gas mass with respect to the total halo mass, M200 (normalized by the universal baryon fraction), as a function of M200 for different simulations at z = 0 (top panel), at z = 2.24 (second panel from the top), and for Ref-L100N1504 at various redshifts (from z = 0 to z = 6, third panel from the top). The error bars in the top and middle panels show the 1σ scatter. Each bin contains at least five haloes. The bottom panel shows the residual of the data points with respect to the best-fitting expression (equations 7–10).

The top panel of Fig. 6 highlights the relatively poor agreement between the intermediate- and high-resolution simulations, with the latter predicting somewhat higher hot gas fractions. Good agreement is however achieved at z = 2.24 (middle panel). Although the Ref-L100N1504 simulation is not fully converged with respect to the numerical resolution at z = 0, the convergence with box size is excellent at all redshifts. The intermediate-resolution runs show that the hot gas represents <10 per cent of the total halo gas mass for M200 < 1011.6 M at z = 0. The hot gas mass fraction reaches 80–90 per cent in 1013.6 M haloes and remains roughly constant for higher masses. In very low-mass haloes (M200 < 1010.5 M), the hot gas mass fraction also remains roughly constant (Mhot/(Ωmb)M200 ≈ 0.02–0.03). In these haloes, cold accretion dominates; therefore, the heating mechanism that maintains Mhot is the UV background as discussed in Section 3.1.

The third from the top panel of Fig. 6 shows the evolution of the hot gas fraction. In haloes larger than 1011.5 M, Mhot/(Ωbm)M200 remains constant over the redshift range of 3–6 and at lower redshift it increases somewhat with time. In smaller haloes (M200 < 1011.5 M), Mhot/(Ωbm)M200 increases with time until z = 1 but decreases thereafter. We calculate the cooling rate of gas exposed to the UV background, and in the absence of it and compare the hot gas mass. We find that the hot gas mass in low-mass haloes increases due to the heating produced by the background radiation. In the case of gas not being exposed to the UV background, the total hot gas mass decreases with increasing redshift at fixed halo mass. We also find that the differences between Mhot occurs in haloes lower than 1011.3 M.

We next perform a least-square minimization to determine the best-fitting relation Mhot − (Ωbm)M200 as a function of redshift. We apply equal weighting for each mass bin from the Ref-L100N1504 simulation (which we use to cover a large halo mass range) and minimize the quantity |$\Delta _{j} = \frac{1}{N}\sum _{i=1}^{N}Y_{i}^{2}$|⁠, where
\begin{eqnarray} Y_{i}(z_{j}) \!=\!\log _{10}\left[\frac{M_{\rm {hot}}}{(\frac{\Omega _{\rm {b}}}{\Omega _{\rm {m}}})M_{\rm {200}}}\right]_{i}\!-\!F[M_{200,i},\alpha (z_{j}),\beta (z_{j}),\gamma (z_{j})], \end{eqnarray}
(4)
N is the number of bins at each output redshift zj, and F is
\begin{eqnarray} F &=& \alpha (z_{j})+\beta (z_{j})x_{i}+\gamma (z_{j})x_{i}^{2}, \end{eqnarray}
(5)
\begin{eqnarray} x_{i} &=& \log _{10}(M_{200,i}/10^{12}\, {\rm M_{{\odot }}}). \end{eqnarray}
(6)
We obtain the best-fitting values for α, β and γ at each redshift zj, and following the same methodology, we look for the best-fitting expression of these parameters as functions of redshift.
We find that the following expression best reproduces the relation in the halo mass range of M200 = 1011–1014 M,
\begin{eqnarray} \log _{10}\big(\frac{M_{\rm {hot}}}{\left(\frac{\Omega _{\rm {b}}}{\Omega _{\rm {m}}}\right)\,M_{200}}\big)&=& \alpha (z)+\beta (z)x+\gamma (z)x^{2}, \end{eqnarray}
(7)
\begin{eqnarray} x &=& \log _{10}(M_{200}/10^{12}\, {\rm M_{{\odot }}}), \end{eqnarray}
(8)
where α, β and γ are functions of z given by
\begin{equation} {\rm {if }}z \le 2 \left\lbrace \begin{array}{ll}\alpha (z) = -0.79+0.31\tilde{z}-0.96\tilde{z}^{2},\\ \beta (z) = 0.52-0.57\tilde{z}+0.85\tilde{z}^{2},\\ \gamma (z) = -0.05, \end{array} \right. \end{equation}
(9)
\begin{equation} {\rm {if }}z > 2 \left\lbrace \begin{array}{ll}\alpha (z)=-0.38-1.56\tilde{z}+1.17\tilde{z}^2,\\ \beta (z)=0.12+0.94\tilde{z}-0.55\tilde{z}^2,\\ \gamma (z)=-0.05, \end{array} \right. \end{equation}
(10)
where |$\tilde{z}=\log _{10}(1+z)$|⁠. The bottom panel of Fig. 6 shows the residual of the data points with respect to the best-fitting expression.

Next, we investigate how the presence of different feedback mechanisms affect the hot gas as well as the total gas mass (Mgas) in the halo (all gas contained between 0.15and1R200). The top panel of Fig. 7 shows the Mgas − (Ωbm)M200 relation for haloes in the mass range of 1010–1013 M at z = 0 for the L025N0376 simulations. The different coloured lines correspond to simulations with different feedback prescriptions.

Figure 7.

Top panel: Fraction of gas mass (Mgas(0.15R200 < r < R200) with respect to the total halo mass, M200 (normalized by the universal baryon fraction), as a function of M200 at z = 0. The different lines correspond to L025N0376 simulations with different feedback prescriptions (see Table 2 and/or Section 2). Bottom panel: Fraction of hot gas (gas with tcool > tdyn) with respect to Mgas as a function of M200.

This panel shows that the impact of feedback increases with halo mass and that stellar feedback has a larger impact on the amount of gas in the halo than AGN feedback. We find that doubling the efficiency of the stellar feedback increases the gas mass fraction by a factor of 1.3 in 1012 M haloes relative to the Ref model, whereas halving the efficiency decreases the gas mass fraction by a factor of 2.5. No (Explosive) AGN feedback results in an increase (decrease) by a factor of 1.5 in the gas mass fraction.

While efficient stellar feedback increases the gas mass in the halo, more explosive AGN feedback decreases it. Overall, it seems that in haloes more massive than 1012 M there is a greater difference in the gas mass fraction between Ref and More Energetic FB than between Ref and More Explosive AGN FB. This is due to two different reasons. Physically, AGN feedback mainly ejects gas mass from the halo, or prevents it from falling into the halo, whereas stellar feedback ejects gas out of the galaxy into the inner halo. Numerically, although stellar and AGN feedback use a similar thermal implementation (Dalla Vecchia & Schaye 2012), there is a difference in the actual energetics of the processes. The energy injected per mass of stars formed changes between Ref and More Energetic FB, whereas the energy injected per unit mass accreted by the BH does not change between Ref and More Explosive AGN FB. In the latter, it is only the intermittency and the explosiveness that changes as a consequence of the change in the temperature of the AGN. In the case of Less Energetic FB, we find that the gas mass in the halo decreases because more gas is accreted by the galaxy and locked up in stars.

The bottom panel of Fig. 7 shows the variation of the ratio Mhot/Mgas with feedback. It can be seen that in haloes less massive than 1011.5 M, the Mhot/Mgas ratio increases with decreasing halo mass, indicating that most of the halo gas is heated by the X-ray/UV background (see Section 3.1 for a discussion). In haloes more massive than 1011.5 M, Mhot/Mgas increases with halo mass. While a more energetic stellar feedback increases the hot mass fraction by 10 per cent, no AGN feedback decreases it by 8 per cent in 1012 M haloes. In the case of Less Energetic FB and More Explosive AGN, Mhot/Mgas increases by 10 per cent and 3 per cent (on average) with respect to Ref, respectively, in the halo mass range of 1011.5–1012 M.

In this section, gas particles with long cooling times (tcool > tdyn) are considered hot and counted in the calculation of Mhot. Different from this work, van de Voort & Schaye (2012) separated hot and cold gas by performing a Tmax cut and found that the hot fraction as a function of radius decreases not only when AGN feedback is switched on but also when stellar winds are enhanced. The reason for this is the way stellar feedback is implemented. In the more energetic stellar feedback simulation used by van de Voort & Schaye (2012), the wind velocity scales with the local sound speed, so it largely overcomes the pressure of the ISM, blowing the gas out of the galaxy and halo, thus decreasing the amount of hot gas. In our work, the efficiency of stellar feedback is regulated by the fraction of the energy budget available (fth), which makes it more/less energetic and controls the frequency of feedback events, but the temperature increase is kept fixed.

So far we have analysed the behaviour of the hot gas mass in the halo. In the next section, we investigate the fraction of gas that is accreted via hot and cold modes as a function of halo mass and redshift.

4 HOT AND COLD MODES OF ACCRETION

Over the last decade, numerical simulations have shown that gas accretion on to haloes occurs in two different modes, gas either shock-heats to the halo virial temperature near the virial radius (the hot accretion mode), or crosses the virial radius unperturbed (the cold accretion mode). Several works have found that cold accretion dominates in low-mass haloes (M200 < 1012 M) and that the transition mass increases weakly with increasing redshift (e.g. Katz et al. 2003; Kereš et al. 20052009; Ocvirk et al. 2008; van de Voort et al. 2011; van de Voort & Schaye 2012). The two modes coexist at high redshift in massive haloes, which develop a hot hydrostatic atmosphere despite experiencing significant cold accretion through filaments, generally referred to as ‘cold flows’ (Kereš et al. 2005; Dekel et al. 2009). Cold flows are important for galaxy formation, because even if they experience significant heating when crossing the hot atmosphere (Nelson et al. 2013), they are responsible for delivering cold, star-forming, gas deep within the halo (e.g. Dekel et al. 2009). In the following sections, we investigate different definitions that can be used to calculate the modes of accretion in the EAGLE simulations, analyse the impact of the hydrodynamic scheme and obtain best-fitting relations.

4.1 Definition of hot accretion

The contributions from the two different modes of accretion have generally been calculated from the temperature history of the accreted gas (e.g. Kereš et al. 2005; van de Voort et al. 2011; Nelson et al. 2013, amongst others), by following the maximum temperature, Tmax, each gas particle has ever reached. Kereš et al. (2005) found a clear bimodality in the distribution of Tmax of accreted particles, and they proposed a threshold value of Tmax = 2.5 × 105 K, given by the minimum in the distribution of Tmax values, to determine whether gas is accreted hot (Tmax ≥ 2.5 × 105 K) or cold (Tmax < 2.5 × 105 K). This is an often used method but other approaches have also been taken. For example, Brooks et al. (2009) identified hot gas accretion based on an entropy jump criterion and concluded that their method led to a distinction between hot/cold modes in very good agreement with the selection of hot/cold gas based on the use of a constant temperature threshold. In this section, we compare Tmax with other variables that can also give us some insight into whether a particle experienced a shock when crossing the virial radius.

We follow the method described in Section 2.4, and look for gas particles that crossed the virial radius between two consecutive snapshots (ziz < zj). Then, we calculate the mass-weighted PDFs of the gas particles Tmax, temperature (Tgas) and entropy (Sgas) at redshift zi (see Fig. A1). We find that the PDFs for the redshift interval 0.0 < z ≤ 0.1 and 2.0 < z ≤ 2.2 are bimodal, but only for haloes larger than 1012 M, with the location of the local minimum changing with M200. A detailed analysis of the PDFs can be found in Appendix A. We next use the minimum of the PDFs from the 1012 M haloes as a threshold value to separate particles accreted hot and cold. For Tgas and Tmax PDFs, we select the threshold to be Tmin = 105.5 K, and for Sgas, we use Smin = 107.2 K cm2.

Fig. 8 shows the fraction of gas particles accreted hot, facc,hot, in the redshift range of 0–0.1 as a function of halo mass. The different lines correspond to facc,hot calculated using different definitions. We first calculated facc,hot requiring that the gas particles at redshift 0 have temperatures higher than 105.5 K (olive solid line), or that the gas particles have temperatures higher than the host halo virial temperature (orange dotted line). Then, we calculated facc,hot requiring that the gas particle maximum past temperature is higher than 105.5 K (red dashed line) or higher than the host halo virial temperature (dark red dot–dashed line). Finally, we calculated facc,hot requiring that the entropy of the gas particles is larger than 107.2 K cm2 (purple dot-dot-dot–dashed line) or that the gas particles cooling time is larger than the local dynamical time (blue dashed line).

Figure 8.

Fraction of gas accreted hot during the redshift range of 0 ≤ z < 0.1 as a function of halo mass. The various curves correspond to the hot fraction calculated using different methods as indicated in the legends.

As previous works have shown (e.g. van de Voort et al. 2011; Nelson et al. 2013), the hot fraction depends very much on the definition. The fixed temperature cut, Tgas ≥ 105.5 K (Tmax ≥ 105.5 K), gives a hot fraction that increases from 0.2 (0.5) in 1011.5 M haloes to 0.7 (0.9) in 1012 M haloes, thus showing a smooth transition from cold to hot accretion in the halo mass range of 1011 to 1013 M. On the other hand, the criterion TgasTvir (TmaxTvir) indicates that for the most massive haloes the hot mode accounts for only 20 per cent (60 per cent) of the accreted gas particles. For the low-mass haloes, TgasTvir (TmaxTvir) gives a hot fraction that increases from 0.1 (0.35) in 1011 M haloes to 0.35 (1.0) in 1010 M haloes. This seems to indicate that there is another mechanism, such as shocks driven by winds or heating by the extragalactic UV/X-ray background radiation, that makes gas reach temperatures higher than the halo's Tvir. In the case of Tmax, stellar feedback events certainly increase the hot fraction, since we obtain a peak in the Tmax PDFs at 107.5 K for all halo mass, which disappears when stellar feedback is switched off.

Fig. 8 also shows that facc, hot calculated using Sgas ≥ 107.2 K cm2 and tcoolingtdyn decreases in the halo mass range of 1010–1012 M and increases for higher halo masses, being in agreement with facc,hot from Tgas ≥ 105.5 K in haloes larger than 1012 M. From this upturn, we conclude that for haloes with Tvir ≫ 105 K (M200 > 1012 M), a large fraction of the accreted gas goes through a virial shock, and thus we can safely separate hot and cold accretion using Tgas ≥ 105.5 K or Tmax ≥ 105.5 K. In lower mass haloes (M200 < 1012 M), separating hot and cold accretion is not so easy. Although the hot halo is not expected to form (DB06) and the Tgas, Tmax and Sgas PDFs are unimodal, UV background radiation (as discussed in Section 3.1) can significantly increase the cooling time and entropy of accreted gas.

Throughout this work, we have investigated how gas heated by either stellar or AGN feedback, UV/X-ray background radiation or accretion shocks, evolves with halo mass and redshift. We next aim to identify gas that is mostly heated by accretion shocks when crossing the virial radius. While stellar or AGN feedback does not strongly impact gas falling on to the halo (van de Voort et al. 2011, it does strongly affect gas falling on to the galaxy, van de Voort et al. 2011; Paper II), UV radiation does for low-mass haloes (<1011.5 M). This can be seen in Fig. 8 through the unexpected increase in facc,hot towards very low halo masses using Sgas ≥ 107.2 K cm2, tcooltdyn, TgasTvir and TmaxTvir. These methods clearly indicate that gas is hot after falling on to halo, but not necessarily due to shock-heating. For that reason, we decide to use a fixed temperature cut to calculate the hot mode of accretion. Note that Tmax is updated whenever the gas particle reaches a higher temperature. However, if the gas particle is star-forming, Tmax is not updated, because we impose a lower limit on the temperature of such gas. As in van de Voort et al. (2011), ignoring shocks in the ISM is appropriate because we are interested in the Tmax the gas reached before accreting on to the galaxy.

Because the gas temperature after shock-heating can be slightly higher or lower than Tvir, we analyse the dependence of facc,hot on the fraction of Tvir used in the definition of hot accretion. As expected, at fixed halo mass facc,hot increases with decreasing fraction of Tvir, reaching facc,hot = 0.3 and 0.6 in 1012 M haloes for Tgas ≥ 0.8Tvir and Tgas ≥ 0.5Tvir, respectively. In addition, the virial shock can be located slightly inwards or outwards of R200. We therefore calculated facc,hot (using Tgas ≥ 105.5 K) for gas crossing 0.8R200 and 1.2R200. We found that for haloes more massive than 1012 M, facc,hot is insensitive to the precise value of the radius. In lower mass haloes, the difference between facc,hot for gas crossing 0.8R200 and 1.2R200 can be as high as 0.2dex in 1011.5 M haloes.

Fig. 9 shows facc,hot calculated using Tmax ≥ 105.5 K (solid lines) and Tgas ≥ 105.5 K (dashed lines) at z = 0 (green lines), z = 2 (red lines) and z = 4 (thick blue lines). For 1012 M haloes, the fraction of shock-heated gas particles with Tgas ≥ 105.5 K is a factor of 1.25 lower than facc,hot given by Tmax ≥ 105.5 K at z = 0, a factor of 1.6 at z = 2 and a factor of 2 at z = 4. Although changing the threshold value can bring the facc,hot curves into better agreement, some disagreement is expected because gas that was heated once may cool later.

Figure 9.

Fraction of gas accreted hot during the redshift ranges 0 ≤ z < 0.1 (green lines), 2.0 ≤ z < 2.2 (red lines) and 4.0 ≤ z < 4.49 (thick blue lines), against halo mass. The solid curves correspond to the hot fraction calculated using Tmax ≥ 105.5 K, whereas the dashed curves correspond to Tgas ≥ 105.5 K. The error bars show the 1σ scatter of the fractions.

Tgas and Tmax are able to identify the gas particles that are shock-heated when crossing the virial radius; however since we have found that Tmax is affected by stellar feedback, we decide to use the gas particle temperature, Tgas, after accretion. We find that a lower limit on Tgas is the most suitable method to calculate facc,hot, since it also does not include gas that goes through a shock but cools immediately afterwards and therefore does not contribute to the hot halo formation process.

4.1.1 gadget and Anarchy

In this section, we extend the discussion presented in Section 2.2 and analyse the differences in the hot/cold modes of accretion on to haloes when the formulation of the hydrodynamic scheme is changed. We compare two L050N0752 simulations that use the same subgrid models, one employs the standard SPH code gadget, while the other employs the Anarchy hydrodynamic solver used in the fiducial EAGLE runs. Fig. 10 shows the same as Fig. 9 for z = 0 (top panel) and z = 2 (bottom panel), but the lines correspond to the standard gadget (blue lines) and Anarchy (orange lines) simulations.

Figure 10.

Fraction of gas accreted hot during the redshift ranges 0 ≤ z < 0.1 (top) and 2.0 ≤ z < 2.2 (bottom) against halo mass. The panels show the same as Fig. 9, but in this case, the curves correspond to the hot fraction calculated from the Ref-L050N0752 Anarchy (orange lines) and gadget (blue lines) simulations. The error bars show the 1σ scatter of the fractions. The symbols correspond to the hot fraction estimates of van de Voort et al (2011, blue triangles), Faucher-Giguere et al. (2011, open diamonds) and Nelson et al. (2013, open circles).

The top and bottom panels show excellent agreement between gadget and Anarchy in haloes less massive than 1011.5 M and 1012 M, respectively, and modest differences in larger haloes, irrespective of whether we use the Tmax hot gas accretion fractions (solid lines) or the Tgas hot gas accretion fractions (dashed lines). The Anarchy simulation exhibits a somewhat larger fraction of hot accretion on to massive haloes than its gadget counterpart. This is expected, since the spurious surface tension appearing in the gadget formulation of SPH prevents the cold dense clumps of gas from being disrupted, mixed and heated when crossing the virial shock (e.g. Schaller et al. 2015).

The top panel of Fig. 10 shows that the Tmax hot gas accretion fractions taken from the gadget simulation are in agreement with van de Voort et al. (2011) analysis of the OWLS simulations (Schaye et al. 2010). The bottom panel also shows broad agreement with van de Voort et al. (2011), but substantial differences with Nelson et al. (2013). While van de Voort et al. (2011) used the standard gadget hydrodynamic solver in their simulations, Nelson et al. (2013) analysed two simulation series that employed either the moving mesh code arepo (Springel 2010) or standard gadget, both without stellar, AGN feedback or metal cooling. Nelson et al. (2013) traced the evolution of the gas properties using a Monte Carlo tracer particle technique that enable them to compute Tmax. They did not find large differences between gadget and arepo in the cold mode of accretion on to haloes, and concluded that the cold fraction on to haloes mainly depends on the manner (either with Tmax or other cut-off temperature) in which it is measured.

The large differences between our work and that of Nelson et al. (2013) is intriguing. Nelson et al. (2013) calculated the accretion rates and so the hot and cold fractions considering only smooth accretion (without including the merger contribution) and over an accretion time window of 1 Gyr. In this work, we did not separate gas accreted smoothly or through mergers and used smaller time windows; however, we find that considering only smooth accretion and/or larger time window does not significantly change the fraction of gas accreted hot (but increases the total rate of gas accretion). In addition, Nelson et al. (2013) used simulations without metal cooling, stellar feedback or AGN feedback. We compared the fraction of hot gas accretion between our reference model and a model without feedback and found that in the simulation without feedback the hot fraction increases from 10 per cent to 20 per cent in the mass range of 1012 M to 1012.5 M, and agree in 1013 M. However, this increase is not enough to explain the large differences we find with Nelson et al. (2013). Unfortunately, we do not have a model without metal cooling to test whether this plausible explanation is sufficient to account for the remaining differences.

We also compare our results with the work of Faucher-Giguère et al. (2011), who used a series of cosmological simulations run with the standard SPH code gadget and including stellar feedback and metal cooling but no AGN feedback. They calculated the rates of gas crossing a virial shell, and similar to this work, they used an instantaneous temperature (Tgas > 2.5 × 105 K rather than Tmax) to separate hot from cold accretion. We find good agreement at z = 0, but at z = 2, we find large differences. The Faucher-Giguère et al. (2011) transition mass (i.e. the halo mass where the hot mode of accretion equals the cold mode) at z = 2 is between 1011.3 M and 1011.5 M (depending on the stellar feedback).

4.2 Hot/cold fraction

The final ingredient for our model of hot halo formation, which we will present in Section 5, is the fraction of gas accreted on to haloes in the hot and cold modes. Throughout this work, we calculate the fraction of hot mode gas accretion, facc,hot(M, z), using Tgas ≥ 105.5 K. facc,hot can be considered as an indirect measure of the presence of hot gas in the halo, since large values of facc,hot imply large values of Mhot/M200. Fig. 11 shows facc,hot(M, z) at z = 0–0.1 (top left-hand panel), z = 1.0–1.26 (top right-hand panel) and z = 2.0–2.24 (bottom left-hand panel). For each redshift range, we find excellent agreement between the facc,hot(M, z) curves taken from simulations with different resolution and box size. We find that facc,hot(M, z) increases smoothly with halo mass and decreasing redshift.

Figure 11.

Fraction of hot mode gas accretion during 0 ≤ z < 0.1 (top left-hand panel), 1.0 ≤ z < 1.26 (top right-hand panel), 2.0 ≤ z < 2.24 (bottom left-hand panel) against halo mass. In these panels, the different lines correspond to simulations with different resolutions and box sizes and the error bars show the 1σ scatter. The bottom right-hand panel compares different redshifts (symbols) to the best-fitting expression (lines).

We look for the best-fitting expression for facc,hot(Mhalo, z) by performing a least-square minimization. We follow the method described in Section 3.2, we apply equal weighting for each mass bin from the Ref-L100N1504 simulation and minimize the quantity |$\Delta _{j}=\frac{1}{N}\sum _{i}^{N}[f_{\rm {acc,hot}}(M_{i},z_{j})-F(M_{200,i},a(z_{j}),M_{1/2}(z_{j}))]^{2}$|⁠, where N is the number of mass bins at each output redshift zj, and F is
\begin{eqnarray} F &=& 1/(1+[M_{200,i}/M_{1/2}(z_{j})]^{a(z_{j})}). \end{eqnarray}
(11)
We calculate the best-fitting values of a and M1/2 at each redshift 0 ≤ zj < 6 and for the halo mass range of 1010M200 < 1014 M. We then look for the best-fitting expressions of a and M1/2 as a function of redshift. We find that the relations
\begin{eqnarray} f_{\rm {acc,hot}}(M_{200},z) &=& 1/(1+[M_{200}/M_{1/2}(z)]^{a(z)}), \end{eqnarray}
(12)
\begin{eqnarray} a(z) &=& \left\lbrace \begin{array}{cl}-1.86\times 10^{-1.26\tilde{z}+1.29\tilde{z}^{2}} &\quad {\rm {if }}\hspace{2.84526pt} 0\le z < 2,\\ -0.46\times 10^{0.81\tilde{z}-0.42\tilde{z}^{2}} &\quad {\rm {if }}\hspace{2.84526pt} 2\le z < 4,\\ -1.07 &\quad {\rm {if }} z \ge 4,\\ \end{array} \right. \end{eqnarray}
(13)
\begin{eqnarray} \tilde{z} &=& \log _{10}(1+z), \end{eqnarray}
(14)
\begin{eqnarray} \nonumber M_{1/2}(z) &=& 10^{12}\, {\rm M_{{\odot }}} \\ &&\times\left\lbrace \begin{array}{cl}-0.15+0.22z+0.07z^{2} &\quad {\rm {if }}\hspace{2.84526pt} 0\le z < 2,\\ -0.25+0.53z-0.07z^{2} &\quad {\rm {if }}\hspace{2.84526pt} 2\le z < 4,\\ 0.72+0.01z &\quad {\rm {if }}\hspace{2.84526pt} z \ge 4, \end{array} \right. \end{eqnarray}
(15)
best reproduce the fraction of hot mode accretion as a function of halo mass and redshift. The bottom right-hand panel of Fig. 11 compares the fraction of hot accretion in various redshift ranges (0 ≤ z < 6, symbols) with the best-fitting expression (lines). We find that facc,hot evolves similarly to Mhot/(Ωbm)M200 (shown in the bottom panel Fig. 6). For all halo masses, facc,hot increases with time until z = 1. At z < 1 facc,hot increases further in high-mass haloes (M200 > 1011.5 M) but decreases in low-mass haloes (M200 < 1011.5 M). This is in agreement with van de Voort et al. (2011), who calculated facc,hot using the Tmax criterion applied to the OWLS simulations.

We have also investigated how facc,hot(M, z) is affected when we vary the feedback mechanisms. We find that although the total gas accretion rate on to the halo remains nearly unchanged under varying feedback mechanisms (in agreement with van de Voort et al. 2011), facc,hot(M, z) increases somewhat at fixed halo mass for the strong stellar feedback and no AGN feedback scenarios. The impact of stellar feedback is largest. For example, strong stellar feedback increases facc,hot(M, z) by a factor of 1.2 in 1012 M haloes, whereas weak stellar feedback decreases it by a factor of 1.26. Strong AGN feedback decreases facc,hot(M, z) but only in high-mass haloes and by up to a factor of 1.1. As in van de Voort et al. (2011), we find that the impact of feedback mechanisms on the fraction of hot mode gas accretion is small.

In the next section, we derive an analytic model for hot halo formation. In the model, we assume that the halo develops a hot atmosphere depending on the fraction of hot mode gas accretion and on the amount of hot gas already in the halo.

5 TOY MODEL

In Section 3, we investigated the formation of the hot halo in the EAGLE simulations. We found that the development of a strong bimodality in the cooling time PDF of the halo gas provides a clear signature of hot halo formation, which occurs in the halo mass range of 1011.5–1012 M. We noticed however that, even when a stable hot atmosphere has not yet been formed, there is already some hot gas in haloes less massive than 1011.5 M. This is because gas can be heated by the extragalactic UV/X-ray background or by shocks with stellar or AGN outflows. In this section, we aim to determine the heating rate of gas produced by accretion shocks only, and the halo mass at which this heating overcomes the cooling. To do so, we present an analytic model for the shock-heating rate that takes into account the hot gas mass already in the halo, and the fraction of gas accretion occurring in the hot mode. With the model, we aim to assess the impact of feedback mechanisms (that change the hot gas mass), as well as filamentary cold accretion (that decreases the hot mode fraction of gas accretion), on the formation of a stable hot halo. The model assumes that the hot halo forms when the heating rate produced by accretion shocks is able to balance the radiative cooling rate.

We calculate the variation of the post-shock gas internal energy, |${\scr {E}}$| (in units of erg), due to the transformation of kinetic energy into thermal energy through accretion shocks and due to radiative losses as
\begin{equation} \dot{\scr {E}} = \Gamma _{\rm {heat}}-\Gamma _{\rm {cool}}, \end{equation}
(16)
where |$\Gamma _{\rm {heat}}=\frac{{\rm {d}}}{{\rm {d}}t}(\frac{3}{2}k_{\rm {B}}TN_{\rm {hot}})$| is the gas heating rate (in units of erg s−1), defined as the variation in time of the thermal energy of the hot gas in the halo, and Γcool is the net radiative cooling rate (in units of erg s−1). In the definition of Γheat, Nhot is number of hot gas particles in the halo and T the mean gas temperature, which we assume to be T = Tvir. Also, we assume the gas to be monatomic (i.e. the ratio of specific heat is 5/3). Therefore, when
\begin{equation} \Gamma _{\rm {heat}}>\Gamma _{\rm {cool}}, \end{equation}
(17)
the accumulated shock-heated gas at the virial radius gains the necessary pressure through external shock-heating to overcome the energy loss from radiative cooling. We follow DB06 and define a critical mass, Mcrit, above which haloes develop a hot atmosphere. We define Mcrit as the halo mass at which the cooling rate, Γcool, of the hot gas in the halo equals the heating rate, Γheat, produced by the accretion shocks. In the following subsections, we present the calculations for the critical halo mass.

5.1 Virial heating rate and accretion history

In a ΛCDM cosmology, haloes grow through mergers and smooth accretion. Rapid mass accretion and mergers dynamically heat the gas when haloes form, transforming gravitational potential energy into kinetic energy of baryons and dark matter. For the gaseous component, kinetic energy associated with bulk and turbulent motions is transformed into thermal energy through shocks and viscous dissipation (e.g. Wang & Abel 2007). As a result, the heating rate defined above is driven by the transformation of the gravitational potential energy of baryons and dark matter into thermal energy through |$\dot{T}_{\rm {vir}}$|⁠, and by the accretion rate of gas undergoing shocks through |$\dot{N}_{\rm {hot}}$|⁠, as follows:
\begin{equation} \Gamma _{\rm {heat}} = \frac{3}{2}k_{\rm {B}}\dot{T}_{\rm {vir}}N_{\rm {hot}}+\frac{3}{2}k_{\rm {B}}T_{\rm {vir}}\dot{N}_{\rm {hot}}. \end{equation}
(18)
We next rewrite equation (18), assuming that Nhot = Mhotmp (with μ = 0.59 and invariant), fhot = Mhot/[(Ωbm)M200], |${\dot{M}_{\rm {hot}}=f_{\rm {acc,hot}}(\Omega _{\rm {b}}/\Omega _{\rm {m}})\dot{M}_{200}}$| and |$\dot{T}_{\rm {vir}}=\frac{2}{3}\frac{\dot{M}_{200}}{M_{200}}T_{\rm {vir}}$|⁠. Equation (18) then yields
\begin{eqnarray} \Gamma _{\rm {heat}} &=& \frac{3}{2}\frac{k_{\rm {B}}T_{\rm {vir}}}{\mu m_{\rm {p}}}\frac{\Omega _{\rm {b}}}{\Omega _{\rm {m}}}\dot{M}_{200}\left[\frac{2}{3}f_{\rm {hot}}+f_{\rm {acc,hot}}\right]. \end{eqnarray}
(19)
The virial temperature of a halo formed at redshift z is related to the total mass M200 as
\begin{equation} T_{{\rm vir}}=10^{5.3}\, {\rm {K}}\, \left(\frac{M_{200}}{10^{12}\, {\rm M_{{\odot }}}}\right)^{2/3}(1+z), \end{equation}
(20)
where we assumed that the halo encloses a characteristic virial overdensity Δc = 200 relative to the critical density at redshift z, |$\rho _{\rm {crit}}(z)=\left(\frac{3 H_{0}^{2}}{8\pi G}\right)[\Omega _{\rm {m}}(1+z)^{3}+\Omega _{\rm {\Lambda }}]$|⁠.
To calculate the halo accretion rate, we use the analytic derivation based on Press-Schechter theory from Correa et al. (2015c),
\begin{eqnarray} \dot{M}_{200}(z) &=& 71.6\, {\rm {M}}_{\odot }{\rm {yr}}^{-1}\, \left(\frac{M_{200}(z)}{10^{12}\rm {M}_{\odot }}\right)\left(\frac{h}{0.7}\right)[-\tilde{\alpha }-\tilde{\beta }]\nonumber \\ &&\times (1+z)[\Omega _{\rm {m}}(1+z)^{3}+\Omega _{\Lambda }]^{1/2}, \end{eqnarray}
(21)
where |$\tilde{\alpha }$| and |$\tilde{\beta }$| depend on halo mass and the linear power spectrum. This formula gives the accretion rate at redshift z. See Correa et al. (2015a,b,c) for more details on the accretion rate model.

5.2 Cooling rate

To find haloes for which the infalling gas is shock-heated and prevented from cooling on to the inner halo, we compare the mechanical heating rate in equation (19) to the net radiative cooling rate, Γcool (erg s−1),
\begin{eqnarray} \Gamma _{{\rm cool}} &=& M_{\rm {hot}}\frac{\Lambda (T_{\rm {hot}},Z_{\rm {hot}},\rho _{\rm {hot}})}{\rho _{\rm {hot}}},\nonumber \\ &=&f_{\rm {hot}}\frac{\Omega _{\rm {b}}}{\Omega _{\rm {m}}}M_{200}\frac{\Lambda (T_{\rm {hot}},Z_{\rm {hot}},\rho _{\rm {hot}})}{\rho _{\rm {hot}}}, \end{eqnarray}
(22)
where Λ(Thot, Zhot, ρhot) (erg cm−3s−1) is the net cooling rate per unit volume and Mhothot is the volume the hot gas occupies. In the calculation of Γcool, we assume that Thot = Tvir, that the density of the hot gas is ρhot = 100.6ρcrit and that the metallicity, Zhot, is Zhot = 0.1 Z (both constant with redshift). The ρhot and Zhot values were chosen after the analyses of the hot gas density and metallicity, as well as the dependence on the halo mass, which is included in Appendices B and C, respectively. In particular, Appendix C shows that at z = 0, the mean density of the hot gas in the halo is around 100.6ρcrit in both 1012 M and 1011.5 M haloes, is slightly higher at z = 2.2 than at z = 0 and does not change significantly with the host halo mass.

5.3 Critical halo mass for the formation of a hot halo

5.3.1 Analytic estimate

In this subsection, we use the energy condition of post-shock gas given by equation (16) and calculate the critical halo mass, Mcrit, for which the mechanical heating rate, Γheat (equation 19), equals the gas cooling rate, Γcool (equation 22). Mcrit is the halo mass above which the heating rate exceeds the cooling rate, and as a result the halo develops a stable hot hydrostatic atmosphere. To calculate Mcrit, we assume values for the fraction of hot mode gas accretion (facc,hot), as well as the fraction of hot gas mass in the halo (fhot).

The top panel of Fig. 12 shows Mcrit as a function of fhot and facc,hot for z = 0 (solid lines) and z = 2 (dashed lines). From the panel, it can be seen that for fixed facc,hot, Mcrit increases with increasing fhot. This is because as fhot increases, so does Γcool, and therefore for Γheat(⁠|$\propto M_{200}^{2/3}\dot{M}_{200}$|⁠) to be able to balance Γcool, M200 needs to be larger.

Figure 12.

Top panel: Halo mass obtained by equating Γheat and Γcool for redshift z = 0 (solid lines) and z = 2 (dashed lines) as a function of fhot = Mhot/(Ωbm)M200. The different colour lines correspond to Mcrit calculated assuming fixed values for the fraction of the hot mode gas accretion (facc,hot, as indicated in the legends). Bottom panel: Same as the top panel, but in this case Mcrit is calculated assuming fhot = 0.1 (solid lines) and fhot = 0.5 (dashed lines) as a function of redshift.

For fixed fhot, Mcrit increases with decreasing facc,hot. In this case, when facc,hot decreases, the heating rate is able to balance the cooling rate only if the accretion rate is large (⁠|$\Gamma _{\rm {heat}}\propto \dot{M}_{200}T_{\rm {vir}}$|⁠), and since the accretion rate increases with halo mass, the halo needs to grow in mass in order to develop a heating rate large enough to keep the gas hot. The top panel of Fig. 12 also shows that for fixed facc,hot and fhot, Mcrit at z = 2 is lower than Mcrit at z = 0. This can also be explained in terms of the halo accretion rate. If facc,hot and fhot do not change, the heating rate for fixed halo mass still increases because |$\dot{M}_{200}$| and Tvir increase with increasing redshift. As a result, lower mass haloes are able to produce a heating rate that balances the gas cooling rate.

It is challenging to calculate analytically the hot gas mass in the halo, and the fraction of gas accreted hot, as a function of halo mass and redshift. For that reason, we follow our analysis from Section 3 and make the ansatz that a halo develops a hot atmosphere when the hot gas mass is 10 per cent (which is roughly the hot fraction in haloes with masses between 1011–1012 M in the redshift range of 0–6, see the bottom panel from Fig. 7). In the case of the fraction of hot gas accretion, it is known that for fixed halo mass, facc,hot is large at low redshift, and it decreases with increasing redshift due to the presence of cold gas accretion from filaments (as shown in Section 4.2). We assume that at z = 0 facc,hot ∼ 0.5–1, and obtain that the mass scale of hot halo formation is between 1011.4and1011.7 M. This is in agreement with the analysis from Section 3, where, by visual inspection of the gas cooling time PDF, we concluded that the hot halo forms between 1011.5and1012 M.

We next analyse how Mcrit changes with redshift. The bottom panel of Fig. 12 shows Mcrit as a function of redshift for fhot = 0.1 (solid lines) and fhot = 0.5 (dashed lines). The different colour lines correspond to Mcrit calculated assuming fixed values for facc,hot (as indicated in the legend in the top panel). It can be seen from the panel that, for any redshift, the higher fhot and lower facc,hot, the higher Mcrit. It can also be seen that for any fhot and facc,hot values, Mcrit remains roughly constant in the redshift range of 6–2, and then increases. This is possibly due to the rapid drop of the accretion rate (⁠|$\dot{M}_{200}$|⁠, hence Γheat) in the redshift range of 0–1 caused by the accelerated expansion of the Universe.

Ocvirk et al. (2008), along with DB06, argued that chemical enrichment has a crucial impact on shock stability, since metallicity, as well as gas density, determines the cooling rate. DB06 and Ocvirk et al. (2008) found that increasing the metallicity increases the critical halo mass for shock stability. We analyse the impact of metallicity on Mcrit in Appendix A, where we show that increasing metallicity increases Mcrit, but if the hot gas metallicity is lower than 0.1Z, it does not strongly impact the normalization of Mcrit. This is expected, since metal cooling only becomes important for Z ≳ 0.1Z (e.g. Wiersma et al. 2009).

5.3.2 Semi-analytic estimate

In the previous subsection, we used the analytic model to analyse how the mass scale of hot halo formation changes with the fraction of hot gas mass in the halo, fhot, and the fraction of gas that shock-heats when crossing the virial radius, facc,hot. Since it is challenging to derive analytically fhot and facc,hot as a function of halo mass and redshift, we assumed typical values and concluded that the hot halo forms in the halo mass range of 1011.4–1011.7 M at z = 0 and remains roughly constant with redshift. In this section, we make a ‘semi-analytic’ estimate of Mcrit (hereafter Mcrit, sa) by using the best-fitting relations from our simulations for fhot(M200, z) (equations 710), facc,hot(M200, z) (equations 1215). Note that facc,hot(M200, z) relation may underestimate the fraction of hot gas accretion for haloes with virial temperatures lower than 105.5K (see Section 4.1 for a discussion). In this section, however, we do not intend to predict a mass scale for hot halo formation, but compare the result with the analysis done in the previous subsection.

Fig. 13 shows the semi-analytic estimate of Mcrit in black solid lines and the analytic estimates calculated in the previous subsection in coloured dashed lines. By using the best-fitting relations, we obtain a critical mass scale of 1011.75 M at z = 0 that remains roughly constant with redshift in agreement with the analysis done in the previous section.

Figure 13.

Halo mass obtained by equating Γheat and Γcool, for constant values of fhot and facc,hot (analytic Mcrit, coloured dashed lines) and for fhot and facc,hot as a function of halo mass and redshift (semi-analytic Mcrit using equations 710 and 1215, black solid line).

We find that facc,hot(Mcrit, sa) ≈ 0.3 at z = 0 and facc,hot(Mcrit, sa) < 0.3 at z > 0, from which we conclude that Mcrit does not necessarily correspond to the mass scale where the hot and cold modes of accretion contribute equally (facc,hot = 0.5), because equal hot/cold modes of accretion do not imply the existence of a stable hot atmosphere or lack thereof. In fact, facc,hot(Mcrit, sa) < 0.3 at z > 0 implies that massive haloes are able to develop a hot atmosphere (and hence virial shocks), even when they are accreting the majority of gas in the cold mode.

We also find that Mcrit, sa is somewhat lower than the analytic halo mass calculated by DB06 at r = R200. In their work, DB06 found that the critical halo mass of shock-heating occurring in the inner halo at r = 0.1R200 is 6 × 1011 M and 2 × 1012 M at r = R200, in both cases the critical halo mass was nearly constant with redshift. In our case, we focus on shocks occurring at R200 and find that Mcrit, sa is a factor of 3.5 lower and changes slightly with redshift. The small change of Mcrit, sa with redshift is driven by the interplay between the accretion rate, |$\dot{M}_{200}$|⁠, which increases with redshift, and the fraction of hot gas accretion, facc,hot, which decreases with redshift, but it is also due to the fact that we assume a fixed value of 100.6ρcrit for the hot gas density. In Appendix D, we do a more detailed comparison with the work of DB06, and in Appendix C, we discuss how the density of the hot gas in the halo changes with redshift.

5.4 Comparison between tcool/tdyn and Γheatcool

In this subsection, we aim to show that the analytical model gives a better prediction for Mcrit compared to the ratio of the halo dynamical and cooling time-scales. To do so, we compute Γheat and Γcool, as well as tcool and tdyn, for each halo in the simulations.

In the calculation of Γheat, we compute the individual gas accretion rates for each halo, as well as the fraction of particles that shock-heat, and define hot gas as all particles with temperatures larger than the host halo's Tvir (to avoid using tcool/tdyn as we do in section 3.3). In the case of tcool and tdyn, we assume that the hot halo is formed when the cooling time at the virial radius is larger than the dynamical time, and to calculate them we only use gas between (0.8 − 1) × R200.

The top panel of Fig. 14 shows the ratio between Γheat and Γcool (olive lines) and tcool and tdyn (blue lines). We find that the halo mass where Γheat = Γcool at z = 0 is in very good agreement with the semi-analytic prediction (Mcrit, sa = 1011.8). At z = 2, the halo mass is larger than Mcrit, sa due to the hot gas density being slightly lower than the fiducial value adopted in Section 5.2. We find that at z = 0, the median gas tcool is always larger than tdyn in the halo mass range of 1011–1012.5 M, indicating that the hot halo should form, in contradiction with the results from Section 3. Such long cooling times at all masses are due to the presence of additional heating mechanisms (like UV/X-ray background). At z = 2, the gas median cooling times at large radii are shorter, due to the cold, dense filamentary gas, and tcool overcomes tdyn only in haloes larger than 1012.2 M.

Figure 14.

Top panel: median logarithmic ratio between Γheat and Γcool (green lines), and between tcool and tdyn (blue lines) as a function of halo mass (M200) for gas in haloes at z = 0 (solid lines) and z = 2 (dashed lines). Bottom panel: median logarithmic ratio of Γheat and Γcool calculated from simulations with different feedback prescriptions as indicated in the legend.

We believe that Γheat = Γcool is a better method to determine when the hot halo forms because, unlike tcool = tdyn, Γheat by definition only considers the heating due to halo growth and accretion shocks.

5.4.1 Feedback variations

The model presented in this section assumes that the formation of the hot halo is only driven by the heating from gravitational accretion shocks. However, in the presence of other energy sources, like stars or AGN, the heating rate should increase, and therefore extra terms (like Γstellar or ΓAGN) should be added to equation (16). Although we do not include extra heating sources accounting for the presence of feedback, we still find good agreement between the analytical results and the numerical analysis. Also, varying feedback may change the metallicity and the hot gas density (e.g. Crain et al. 2013) and hence Γcool. The sign of the effect is however difficult to predict. On the one hand, a more efficient feedback will reduce the stellar and hence the total metal mass. On the other hand, a greater fraction of the metals may reside in the hot halo gas.

We next investigate how the critical halo mass is affected by different feedback implementations. To do so, we calculate Γheat and Γcool from simulations with feedback variations and show these in the bottom panel of Fig. 14. We find that at z = 0, in the less energetic stellar feedback scenario |$M^{^{\prime }}_{\rm {crit}}$| (at which Γheat = Γcool) is ∼1011.8 M, in the more explosive AGN FB |$M^{^{\prime }}_{\rm {crit}}\sim 10^{11.9}\, {\rm M_{{\odot }}}$|⁠, in the no AGN FB (but moderate stellar feedback) |$M^{^{\prime }}_{\rm {crit}}\sim 10^{11.9}\, {\rm M_{{\odot }}}$|⁠, and in the more energetic stellar feedback case |$M^{^{\prime }}_{\rm {crit}}\sim 10^{12}\, {\rm M_{{\odot }}}$|⁠. This is in excellent agreement with the analytic model, which predicts that Mcrit increases when fhot increases, which occurs when stellar feedback is more energetic and/or there is no AGN feedback. The result is also in good agreement with Section 3.2, where we concluded that the hot halo formation is not as strongly affected by AGN feedback as it is by stellar feedback.

5.5 Comparison with simulated tcool/tdyn

In this subsection, we compare the semi-analytic predictions for Mcrit, sa presented in the previous section with results from our simulations. To do so, we investigate the halo mass range for which haloes develop a hot atmosphere. The model predicts that haloes with masses M200 > Mcrit, sa form a hot atmosphere. We test this by analysing the PDF of tcool/tdyn for haloes with masses M200Mcrit, sa (the left-hand panel of Fig. 15), M200 ∼ Mcrit, sa (middle panel) and M200Mcrit, sa (right-hand panel) at z = 0–4. We select gas particles in the halo (located between r = [0.15 − 1]R200) that are not star forming, and use the Ref-L100N1504 simulation.

Figure 15.

Mass-weighted PDF of the ratio of the cooling and local dynamical time for gas in haloes with masses M200Mcrit (left-hand panel), M200 ∼ Mcrit (middle panel) and M200Mcrit (right-hand panel) at z = 0, 1, 2, 3, 4 and 5, taken from the Ref-L100N1504 simulation.

The left-hand panel of Fig. 15 shows that in haloes with masses M200 ∼ 0.1Mcrit, sa most of the gas has tcool < tdyn and is thus able to cool effectively and accrete on to the galactic disc. In larger haloes (M200 ∼ Mcrit, sa, middle panel), the PDF is bimodal with a peak in either side of tcool/tdyn = 1, indicating that a hot atmosphere has been formed in these haloes at each redshift, despite the increasing contribution of cold gas from filaments at higher redshifts. In haloes with masses M200 ∼ 10Mcrit, sa (right-hand panel), the increase in shock-heated hot gas enhances the peak at tcooltdyn at the expense of the peak at tcooltdyn. We conclude that the semi-analytic model for hot halo formation captures the mass scale of hot halo formation in the simulations.

6 SUMMARY AND CONCLUSIONS

We have studied the formation of the hot hydrostatic halo, its dependence on feedback mechanisms, on the hot gas mass that is already in the halo, and on the fraction of gas accreted hot using the EAGLE suite of hydrodynamical simulations, as well as analytic calculations.

We began by analysing the PDF of the ratio of the radiative cooling time and the dynamical time for gas in the halo and found that when the hot halo is formed, it produces a strong bimodality in the PDF (Figs 1 and 2, top right-hand panels). By inspection of cooling time PDFs, we found that the mass scale for hot halo formation is 1011.5–1012 M at z = 0–4 (Fig. 4).

We found, however, that the cooling time PDF is strongly affected by the extragalactic UV/X-ray background radiation and stellar feedback. The UV/X-ray background radiation suppresses the net cooling rate of gas in the temperature range of T ∼ 104–105 K; therefore, the peak of the cooling time PDF shifts towards larger cooling times as the halo's virial temperature decreases to these values (Fig. 3).

In the case of stellar feedback, galactic winds expel gas from the galaxy into the halo, changing the distribution of the hot gas. As a result, more energetic stellar feedback increases the fraction of hot gas. We also analysed the build-up of the total gas mass, Mgas, as well as the hot gas mass, Mhot, as haloes evolve, and concluded that stellar feedback has a large impact on the amount of gas in the halo. For example, doubling the strength of the stellar feedback increases the gas mass fraction by a factor of 1.3 in 1012 M haloes relative to the Ref model, whereas halving the strength of the stellar feedback decreases the gas mass fraction by a factor of 2.5 (Fig. 7).

In the case of AGN feedback, neither the bimodality of the cooling time PDF nor the hot gas mass are strongly affected in haloes smaller than 1012 M since they do not form massive black holes. However, the PDFs and hot gas mass do change at higher halo masses and in a manner opposite from that of stellar feedback. While efficient stellar feedback increases the gas mass in the halo, more explosive AGN feedback decreases it. For example, with strong (without) AGN feedback the total gas mass in the halo decreases (increases) by a factor of 1.5 (Fig. 7). The effect on Mhot is slightly different, efficient stellar feedback increases the hot mass fraction by 10 per cent relative to Ref, but no AGN feedback decreases it by 8 per cent in 1012 M haloes. In the case of less energetic stellar feedback and more explosive AGN feedback, the ratio Mhot/Mgas increases by 10 per cent and 3 per cent (on average) with respect to Ref, respectively, in the halo mass range of 1011.5–1012 M.

In addition to the hot gas in the halo, we calculated the fraction of gas accretion occurring in the hot mode (Fig. 11), facc,hot. Rather than using a lower limit on the maximum past temperature to select shock-heated gas particles, as done in most previous works, we used the gas temperature after accretion, Tgas, which yields lower facc,hot values than the maximum past temperature. We believe that a lower limit on Tgas is a better method to select hot gas accretion, because it excludes the gas that goes through a shock but cools immediately afterwards or that has not passed through an accretion shock but was heated in the past by stellar feedback and has since cooled, and therefore does not contribute to the formation of a hot halo.

We derived an analytic model for hot halo formation that depends on the fraction of hot gas mass that is already in the halo, fhot, as well as on the accretion rates and the fraction of gas accretion occurring in the hot mode, facc,hot. We assumed that a hot halo develops when the heating rate from accretion shocks balances the radiative cooling rate. We computed Mcrit, the critical mass scale above which the hot halo forms, as a function of fhot and facc,hot. We found that Mcrit increases with increasing fhot and decreasing facc,hot (Fig. 12). The analytic model yields a mass estimate of Mcrit ≈ 1012–1011.5 M at z = 0, which agrees with the simulation results.

Because estimating fhot and facc,hot analytically is very challenging, we combined the analytic model with fits to the hot gas mass, and hot mode accretion rates as a function of mass and redshift. We computed a semi-analytic critical mass, Mcrit, sa, and found that Mcrit, sa = 1011.75 M at z = 0. At higher redshift, Mcrit, sa remains roughly constant (Fig. 13). We tested the Mcrit, sa values by inspecting the cooling time PDF of hot gas in haloes with mass Mcrit, sa and confirmed that at all redshifts, the PDF has a clear bimodal shape (Fig. 15). Note that because the semi-analytic model uses our simulation results as input, its prediction for the mass scale for hot halo formation cannot be tested using the same simulations. We can, however, use it to compare with the analytic analysis.

We compared the ratio of the heating due to accretion (Γheat, derived in the analytic model) and the radiative cooling (Γcool) rates of hot gas, with the ratio of the cooling (tcool) and dynamical (tdyn) times of gas at the virial radius, and found that unlike Γheatcool, the median tcool/tdyn of gas is always greater than unity in the halo mass range of 1011–1012.5 M (Fig. 14). On the contrary, Γheatcool is only greater than unity for haloes more massive than 1011.8 M, indicating that this ratio better captures the heating due to halo growth and accretion shocks. We believe that compared with the ratio of cooling and dynamical times, the analytic model of hot halo formation is better at indicating when a hot halo forms.

Finally, we investigated how feedback impacts the hot halo formation mass scale. We calculated Γheatcool using simulations with different feedback prescriptions, and concluded that while a hot hydrostatic atmosphere forms in more (less) massive haloes in scenarios with more (less) energetic stellar feedback, the mass scale of hot halo formation is not strongly affected by AGN feedback. This result is driven by the dependence of Γheat and Γcool on the hot gas mass fraction, fhot. When fhot increases (i.e. in the strong stellar feedback scenario), so does the rate of cooling and therefore the halo needs to grow in mass in order to develop a heating rate that overcomes the cooling rate.

Cosmological hydrodynamical simulations have shown that the manner in which galaxies accrete gas depends on the complex interaction between the hot halo, AGN and stellar feedback (see e.g. van de Voort et al. 2011; Faucher-Giguère et al. 2011; Nelson et al. 2015). In Paper II, we will make use of the semi-analytic calculations presented in this work and derive a semi-analytic model for gas accretion on to galaxies that accounts for the hot/cold modes of gas accretion on to haloes and for the rate of gas cooling from the hot halo. By doing so, we aim to provide some insight into the physical mechanisms that drive the gas inflow rates on to galaxies.

Acknowledgements

We are grateful to the referee for fruitful comments that substantially improved the original manuscript. This work used the DiRAC Data Centric system at Durham University, operated by the Institute for Computational Cosmology on behalf of the STFC DiRAC HPC Facility (www.dirac.ac.uk). This equipment was funded by BIS National E-infrastructure capital grant ST/K00042X/1, STFC capital grant ST/H008519/1, and STFC DiRAC Operations grant ST/K003267/1 and Durham University. DiRAC is part of the National E-Infrastructure. The EAGLE simulations were performed using the DiRAC-2 facility at Durham, managed by the ICC, and the PRACE facility in France at TGCC, CEA, Bruyeres-le-Chatel. This work was supported by the European Research Council under the European Union's Seventh Framework Programme (FP7/2007-2013)/ERC Grant agreement 278594-GasAroundGalaxies and by the Netherlands Organisation for Scientific Research (NWO) through VICI grant 639.043.409. RAC is a Royal Society University Research Fellow. We also acknowledge support from STFC (ST/L00075X/1).

1

The simulation data are saved in 10 discrete output redshifts between redshift 0 to 1, in 4 output redshifts between redshift 1 and 3, and in 8 output redshifts between redshift 3 and 8.

REFERENCES

Agertz
O.
et al. ,
2007
,
MNRAS
,
380
,
963

Anderson
M. E.
,
Bregman
J. N.
,
2011
,
ApJ
,
737
,
22

Andrews
B. H.
,
Martini
P.
,
2013
,
ApJ
,
765
,
140

Binney
J.
,
1977
,
ApJ
,
215
,
483

Birnboim
Y.
,
Dekel
A.
,
2003
,
MNRAS
,
345
,
349

Brooks
A. M.
,
Governato
F.
,
Quinn
T.
,
Brook
C. B.
,
Wadsley
J.
,
2009
,
ApJ
,
694
,
396

Cantalupo
S.
,
2010
,
MNRAS
,
403
,
L16

Chabrier
G.
,
2003
,
ApJL
,
586
,
L133

Correa
C. A.
,
Wyithe
J. S. B.
,
Schaye
J.
,
Duffy
A. R.
,
2015a
,
MNRAS
,
450
,
1514

Correa
C. A.
,
Wyithe
J. S. B.
,
Schaye
J.
,
Duffy
A. R.
,
2015b
,
MNRAS
,
450
,
1521

Correa
C. A.
,
Wyithe
J. S. B.
,
Schaye
J.
,
Duffy
A. R.
,
2015c
,
MNRAS
,
452
,
1217

Crain
R. A.
,
McCarthy
I. G.
,
Frenk
C. S.
,
Theuns
T.
,
Schaye
J.
,
2010
,
MNRAS
,
407
,
1403

Crain
R. A.
,
McCarthy
I. G.
,
Schaye
J.
,
Theuns
T.
,
Frenk
C. S.
,
2013
,
MNRAS
,
432
,
3005

Crain
R. A.
et al. ,
2015
,
MNRAS
,
450
,
1937

Creasey
P.
,
Theuns
T.
,
Bower
R. G.
,
Lacey
C. G.
,
2011
,
MNRAS
,
415
,
3706

Cullen
L.
,
Dehnen
W.
,
2010
,
MNRAS
,
408
,
669

Dalla Vecchia
C.
,
Schaye
J.
,
2012
,
MNRAS
,
426
,
140

Dekel
A.
,
Birnboim
Y.
,
2006
,
MNRAS
,
368
,
2
(
DB06)

Dekel
A.
et al. ,
2009
,
Nature
,
457
,
451

Dolag
K.
,
Borgani
S.
,
Murante
G.
,
Springel
V.
,
2009
,
MNRAS
,
399
,
497

Durier
F.
,
Dalla Vecchia
C.
,
2012
,
MNRAS
,
419
,
465

Efstathiou
G.
,
1992
,
MNRAS
,
256
,
43P

Fakhouri
O.
,
Ma
C.-P.
,
Boylan-Kolchin
M.
,
2010
,
MNRAS
,
406
,
2267

Faucher-Giguère
C.-A.
,
Kereš
D.
,
Ma
C.-P.
,
2011
,
MNRAS
,
417
,
2982

Furlong
M.
et al. ,
2015
,
MNRAS
,
450
,
4486

Furlong
M.
et al. ,
2017
,
MNRAS
,
465
,
722

Haardt
F.
Madau
P.
,
2001
, in
Neumann
D. M.
Tran
J. T. V.
, eds,
Clusters of Galaxies and the High Redshift Universe Observed in X-rays Modelling the UV/X-ray Cosmic Background with CUBA
. p.
64

Hopkins
P. F.
,
2013
,
MNRAS
,
428
,
2840

Hu
C.-Y.
,
Naab
T.
,
Walch
S.
,
Moster
B. P.
,
Oser
L.
,
2014
,
MNRAS
,
443
,
1173

Hutchings
R. M.
,
Thomas
P. A.
,
2000
,
MNRAS
,
319
,
721

Katz
N.
Keres
D.
Dave
R.
Weinberg
D. H.
,
2003
, in
Rosenberg
J. L.
Putman
M. E.
, eds,
The IGM/Galaxy Connection. The Distribution of Baryons at z = 0. Vol. 281 of Astrophysics and Space Science Library, How Do Galaxies Get Their Gas?
Kluwer
,
Dordrecht
, p.
18

Kereš
D.
,
Katz
N.
,
Weinberg
D. H.
,
Davé
R.
,
2005
,
MNRAS
,
363
,
2

Kereš
D.
,
Katz
N.
,
Fardal
M.
,
Davé
R.
,
Weinberg
D. H.
,
2009
,
MNRAS
,
395
,
160

Kulkarni
V. P.
,
Khare
P.
,
Péroux
C.
,
York
D. G.
,
Lauroesch
J. T.
,
Meiring
J. D.
,
2007
,
ApJ
,
661
,
88

Lacey
C. G.
et al. ,
2016
,
MNRAS
,
462
,
3854

Lin
Y.-T.
,
Mohr
J. J.
,
Stanford
S. A.
,
2003
,
ApJ
,
591
,
749

Nagamine
K.
,
Springel
V.
,
Hernquist
L.
,
2004
,
MNRAS
,
348
,
435

Nelson
D.
,
Vogelsberger
M.
,
Genel
S.
,
Sijacki
D.
,
Kereš
D.
,
Springel
V.
,
Hernquist
L.
,
2013
,
MNRAS
,
429
,
3353

Nelson
D.
,
Genel
S.
,
Vogelsberger
M.
,
Springel
V.
,
Sijacki
D.
,
Torrey
P.
,
Hernquist
L.
,
2015
,
MNRAS
,
448
,
59

Nelson
D.
,
Genel
S.
,
Pillepich
A.
,
Vogelsberger
M.
,
Springel
V.
,
Hernquist
L.
,
2016
,
MNRAS
,
460
,
2881

Ocvirk
P.
,
Pichon
C.
,
Teyssier
R.
,
2008
,
MNRAS
,
390
,
1326

Péroux
C.
,
Dessauges-Zavadsky
M.
,
D'Odorico
S.
,
Kim
T.-S.
,
McMahon
R. G.
,
2007
,
MNRAS
,
382
,
177

Planck Collaboration
et al. ,
2014
,
A&A
,
571
,
A16

Price
D. J.
,
2008
,
J. Comput. Phys.
,
227
,
10040

Prochaska
J. X.
,
Gawiser
E.
,
Wolfe
A. M.
,
Castro
S.
,
Djorgovski
S. G.
,
2003
,
ApJl
,
595
,
L9

Rees
M. J.
,
Ostriker
J. P.
,
1977
,
MNRAS
,
179
,
541

Rosas-Guevara
Y. M.
et al. ,
2015
,
MNRAS
,
454
,
1038

Savaglio
S.
,
2006
,
New J. Phys.
,
8
,
195

Schaller
M.
,
Dalla Vecchia
C.
,
Schaye
J.
,
Bower
R. G.
,
Theuns
T.
,
Crain
R. A.
,
Furlong
M.
,
McCarthy
I. G.
,
2015
,
MNRAS
,
454
,
2277

Schaye
J.
,
2004
,
ApJ
,
609
,
667

Schaye
J.
,
Dalla Vecchia
C.
,
2008
,
MNRAS
,
383
,
1210

Schaye
J.
et al. ,
2010
,
MNRAS
,
402
,
1536

Schaye
J.
et al. ,
2015
,
MNRAS
,
446
,
521

Sembolini
F.
et al. ,
2016
,
MNRAS
,
457
,
4063

Silk
J.
,
1977
,
ApJ
,
211
,
638

Somerville
R. S.
,
Davé
R.
,
2015
,
ARA&A
,
53
,
51

Springel
V.
,
2005
,
MNRAS
,
364
,
1105

Springel
V.
,
2010
,
MNRAS
,
401
,
791

Springel
V.
,
White
M.
,
Hernquist
L.
,
2001
,
ApJ
,
549
,
681

Springel
V.
,
Di Matteo
T.
,
Hernquist
L.
,
2005
,
MNRAS
,
361
,
776

van de Voort
F.
,
Schaye
J.
,
2012
,
MNRAS
,
423
,
2991

van de Voort
F.
,
Schaye
J.
,
Booth
C. M.
,
Haas
M. R.
,
Dalla Vecchia
C.
,
2011
,
MNRAS
,
414
,
2458

Vogelsberger
M.
,
Sijacki
D.
,
Kereš
D.
,
Springel
V.
,
Hernquist
L.
,
2012
,
MNRAS
,
425
,
3024

Wang
P.
Abel
T.
,
2007
,

Wendland
H.
,
1995
,
Advances Comput. Math.
,
4
,
389

White
S. D. M.
,
Frenk
C. S.
,
1991
,
ApJ
,
379
,
52

White
S. D. M.
,
Rees
M. J.
,
1978
,
MNRAS
,
183
,
341

Wiersma
R. P. C.
,
Schaye
J.
,
Theuns
T.
,
Dalla Vecchia
C.
,
Tornatore
L.
,
2009
,
MNRAS
,
399
,
574

Wiersma
R. P. C.
,
Schaye
J.
,
Smith
B. D.
,
2009
,
MNRAS
,
393
,
99

Zahid
H. J.
,
Geller
M. J.
,
Kewley
L. J.
,
Hwang
H. S.
,
Fabricant
D. G.
,
Kurtz
M. J.
,
2013
,
ApJ
,
771
,
L19

APPENDIX A: SHOCK ANALYSIS

In this section, we analyse the mass-weighted PDF of Tmax, Tgas, Sgas. Fig. A1 shows the PDFs for the redshift interval 0.0 < z ≤ 0.1 (top left-hand panel) and 2.0 < z ≤ 2.2 (top right-hand panel). The curves are coloured according to the colour bars at the top of the figure, which indicate the halo mass (and virial temperature) of the halo that gas is accreted on to. It can be seen that the Tmax PDF varies with M200, being unimodal in low-mass haloes and bimodal in high-mass haloes. The location of the local minimum of the bimodal distribution also changes with M200, going from |$T_{\rm {max,min}}\sim 10^{5.5}\hspace{2.84526pt}\rm {K}$| in 1012 M haloes to |$T_{\rm {max,min}}\sim 10^{6}\hspace{2.84526pt}\rm {K}$| in 1014 M haloes. Besides this local minimum, there is a local maximum at |$10^{7.5}\hspace{2.84526pt}\rm {K}$| for all halo masses. This peak is produced by stellar feedback instead of accretion shocks. Some of the gas that is ejected out of the halo due to stellar feedback is eventually re-accreted. However, if it does not reach a temperature larger than |$10^{7.5}\hspace{2.84526pt}\rm {K}$| when crossing R200, Tmax is not updated, and the gas will be considered hot mode accretion by the maximum temperature criterion. When applying a Tmax criterion to separate hot from cold accretion, rather than calculating a Tmax, min threshold value that changes with M200, we follow previous works from the literature (e.g. van de Voort et al. 2011; Nelson et al. 2013) and use |$T_{\rm {max}}=10^{5.5}\hspace{2.84526pt}\rm {K}$|⁠.

Figure A1.

PDF of maximum past temperature (top panels), temperature (middle panels) and entropy (bottom panels) of gas accreted on to haloes in the redshift ranges z = 0–0.1 (left-hand panels) and z = 2.0–2.2 (right-hand panels). The curves are coloured according to the colour bars at the top of the figure, which indicate the halo mass and virial temperature.

As per Tmax, the middle and bottom panels of Fig. A1 show that the Tgas and Sgas PDFs have a bimodal shape. To identify the accreted gas that does not cool immediately after the shock, we analyse the post-shock gas temperature and entropy. We select the gas particles that were accreted during the redshift interval zi − zj (zi < zj), and are hot using a temperature and entropy threshold value. We calculate the gas temperature and entropy mass-weighted PDFs at redshift zi. We use the local minima of the bimodal distribution as the threshold values (⁠|$T_{\rm {min}}=10^{5.5}\hspace{2.84526pt}\rm {K}$| and |$S_{\rm {min}}=10^{7.2}\hspace{2.84526pt}\rm {K}\hspace{2.84526pt}\rm {cm}^{2}$|⁠) to calculate the fraction of the gas accreted hot. Our motivation for using the gas entropy (besides temperature) to identify shocked gas is based on the fact that gas generally undergoes a large entropy increase when it encounters a shock (Brooks et al. 2009).

APPENDIX B: METALLICITY

In Section 5, we derived an analytic model for hot halo formation. The model predicts that a hot halo develops when the heating rate from accretion shocks balances the radiative cooling rate. To calculate the gas cooling rate, we assumed a constant hot gas metallicity, |$Z_{\rm {hot}\hspace{1.42271pt}\rm {gas}}$|⁠, of 0.1 Z. However, it has been argued that chemical enrichment has a crucial impact on shock stability (e.g. DB06; Ocvirk et al. 2008). Therefore, in this section, we investigate how the hot gas metallicity in haloes changes with halo mass and redshift, and analyse how the halo mass scale, Mcrit, at which the heating rate balances the gas cooling rate, depends on metallicity.

Using the Ref-L100N1504 simulation, we define hot gas as all gas that is within R200 and that has a cooling time longer than the local dynamical time, and calculate the mass-weighted median metallicity per halo mass bin. The left-hand panel of Fig. B1 shows the |$Z_{\rm {hot}\hspace{1.42271pt}\rm {gas}}{\rm -}M_{200}$| relation for various output redshifts (here |$Z_{\rm {hot}\hspace{1.42271pt}\rm {gas}}$| is normalized by solar metallicity, which we assume to be Z = 0.0129). The error bars show the 16–84th percentiles and each bin contains at least five haloes. Interestingly, at fixed halo mass the mass-weighted median metallicity of the hot gas slightly increases with redshift (i.e. by up to a factor of 1.6 in 1012 M haloes). Many studies of metal abundance have shown that galaxies tend to have lower metallicities at higher redshift (see e.g. Prochaska et al. 2003; Nagamine et al. 2004; Savaglio 2006; Kulkarni et al. 2007; Péroux et al. 2007). It is important to note that the left-hand panel does not show the median metallicity of the ISM (ZISM), but of the hot mostly ionized gas in the halo. In the case of the ISM, we obtain ZISMM* relations (with M* stellar mass) in agreement with the galaxy mass–metallicity relation from Andrews & Martini (2013) and Zahid et al. (2013), as recently shown by Somerville & Davé (2015). As expected, ZISM at fixed stellar mass decreases with increasing redshift.

Figure B1.

Left-hand panel: Mass-weighted median metallicity of the hot gas in the halo as a function of halo mass for various output redshifts, as indicated in the legends. Hot gas is defined as gas within R200 that has a cooling time longer than the local dynamical time. The error bars in the panel correspond to the 16–84th percentiles (i.e. 1σ scatter) and each bin contains at least five haloes. Right-hand panel: Halo mass obtained by equating Γheat and Γcool for redshift z = 0 as a function of fhot = Mhot/(Ωbm)M200. The different colour lines and types correspond to Mcrit calculated assuming fixed values for the fraction of the hot mode gas accretion (facc,hot) and metallicity, respectively, as indicated in the legends.

We find that for all halo masses, the median mass-weighted metallicity of the gas in the halo increases towards the halo centre (in agreement with Ocvirk et al. 2008; van de Voort & Schaye 2012). Interestingly, we find that the diffuse hot gas in the halo has lower median mass-weighted metallicity (by up to 0.5 dex in haloes larger than 1011 M) than the cold gas. However, if we define hot gas as all gas within R200 that has a maximum past temperature lower than 105.5 K, we obtain that the median mass-weighted metallicity of the hot gas is higher (also by to 0.5 dex in haloes larger than 1011 M), as in van de Voort & Schaye (2012).

We next analyse how Mcrit changes with metallicity. The right-hand panel of Fig. B1 shows Mcrit at z = 0, calculated assuming constant values of the fraction of hot mode gas accretion, facc,hot, and metallicity (as indicated in the legends), as a function of the fraction of hot gas mass in the halo, fhot. The panel shows that increasing metallicity increases Mcrit, but if the hot gas metallicity is lower than 10−1Z, it does not strongly impact on the normalization of Mcrit. This is expected, since metal cooling only becomes important for Z ≳ 0.1Z (e.g. Wiersma et al. 2009). The left-hand panel of Fig. B1 shows that the typical metallicity reached by hot gas in the redshift range of 0–4 is ∼0.1 Z in ∼1012 M haloes, we then find that assuming |$Z_{\rm {hot}\hspace{1.42271pt}\rm {gas}}\sim 0.1\, {\rm Z}_{{\odot }}$| in the analysis of Section 5.3 is a good approximation.

APPENDIX C: DENSITY

In Section 5, we derived an analytic model for hot halo formation, which considers the heating and cooling rates of gas in the halo. When calculating the cooling rates, we assumed that the hot gas density is about 100.6ρcrit. In this section, we analyse the density and temperature of the hot gas in 1011.5–1012 M haloes.

Fig. C1 shows the temperature versus density of gas in 1012 M (top left-hand panel) and 1011.5 M haloes (top right-hand panel) at z = 0, and in 1012 M (bottom left-hand panel) and 1011.5 M haloes (bottom right-hand panel) at z = 2.2. The red contours indicate the distribution of the hot gas (i.e. with tcooltdyn), while the blue contours indicate the cold gas (i.e. tcool < tdyn). It is interesting to see that there is gas with temperatures below 105 K (and a large spread in density) that has a net cooling time longer than the local dynamical time. This gas is close to the equilibrium temperature obtained when photoheating balances radiative cooling rate. We define the hot halo gas as all gas with densities below 102ρcrit and temperature above 105 K. At z = 0, we find that the mean density of the hot gas in the halo is around 100.6ρcrit in both 1012 M and 1011.5 M haloes. At z = 2.2, the mean density increases slightly to 100.8ρcrit for both halo masses. We find that the hot gas density does not change significantly with the host halo mass, nor with redshift (we also did the analysis for z = 3 and 4), we then assume that the mean density of the hot gas is 100.6ρcrit and use this value to calculate of the mass scale for the hot halo formation.

Figure C1.

Temperature versus density of gas in 1012 M (top left-hand panel) and 1011.5 M haloes (top right-hand panel) at z = 0, and in 1012 M (bottom left-hand panel) and 1011.5 M haloes (bottom right-hand panel) at z = 2.2. The contours in the panels enclose 25, 50 and 75 per cent of the distribution and the different colours correspond to the distribution of hot gas (i.e. with tcooltdyn, red contours) and cold gas (blue contours). Note that the cooling time is computed from the net cooling rate, i.e. the difference between the photoheating and radiative cooling rate, and depends on metallicity.

APPENDIX D: COMPARISON WITH THE DEKEL AND BIRNBOIM MODEL

DB06 derived a post-shock stability criterion based on the interplay between the cooling time and the compression time. In their derivation, DB06 began by defining the adiabatic index
\begin{equation} \gamma _{\rm {eff}}\equiv \gamma -\rho q/(\dot{\rho }\scr {E}), \end{equation}
(D1)
which they rewrote in terms of the compression time, defined as |$t_{\rm {comp}}\equiv \Gamma \rho /\dot{\rho }$|⁠, with Γ = (3γ + 2)/[γ(3γ − 4)] and ρ = N/V, and the cooling time, |$t_{\rm {cool}}=\scr {E}/q$| with q the cooling rate, as follows:
\begin{equation} \gamma _{\rm {eff}}=\gamma -\Gamma ^{-1}t_{\rm {comp}}/t_{\rm {cool}}. \end{equation}
(D2)
They found that the shock is stable if γeff > γcrit = 2γ/(γ + 2/3), which is equivalent to tcool > tcomp. Once the cooling time is larger, the pressure gained by compression can balance the loss by radiative cooling, and thus support the shock. In their calculation, |$t_{\rm {comp}}\propto \frac{r_{\rm {s}}}{u}\propto \frac{R_{200}}{V_{\rm {vir}}}$|⁠, with rsR200, the radius where the spherical shock occurs, and uVvir, the post-shock radial velocity. Thus, obtaining that tcomp is comparable to the Hubble time at the corresponding epoch (but at inner radii becomes significantly shorter).
We compare our condition for hot halo formation with that of DB06. We begin by writing equation (16) in terms of tcool and theat:
\begin{eqnarray} \frac{\dot{\scr {E}}}{\scr {E}} &=& \frac{\Gamma _{\rm {heat}}}{\scr {E}}-\frac{\Gamma _{\rm {cool}}}{\scr {E}}, \end{eqnarray}
(D3)
\begin{eqnarray} &=& \frac{\frac{{\rm {d}}}{{\rm {d}}t}(\frac{3}{2}k_{\rm {B}}TN_{\rm {hot}})}{\frac{3}{2}k_{\rm {B}}TN_{\rm {hot}}}-\frac{M_{\rm {hot}}\Lambda /\rho _{\rm {hot}}}{\frac{3}{2}k_{\rm {B}}TN_{\rm {hot}}}, \end{eqnarray}
(D4)
\begin{eqnarray} &=& \frac{\dot{M}_{200}}{M_{200}}(2/3+f_{\rm {acc,hot}}/f_{\rm {hot}})-\frac{\Lambda }{\frac{3}{2}n_{\rm {hot}}k_{\rm {B}}T}, \end{eqnarray}
(D5)
\begin{eqnarray} &=& t_{\rm {heat}}^{-1}-t_{\rm {cool}}^{-1}, \end{eqnarray}
(D6)
where in equation (D3) we divided by |$\scr {E}=\frac{3}{2}kT_{\rm {vir}}N_{\rm {hot}}$|⁠.

We find that our model is not equivalent to that of DB06 due to the different redshift dependence of tcomp and theat. While |$t^{-1}_{\rm {comp}}\propto [\Omega _{\rm {m}}(1+z)^{3}+\Omega _{\Lambda }]^{1/2}$|⁠, |$t^{-1}_{\rm {heat}}\propto (1+z)[\Omega _{\rm {m}}(1+z)^{3}+\Omega _{\Lambda }]^{1/2}$|⁠. However, we obtain similar results at all redshifts when comparing to DB06's critical mass for the shock at 0.1R200 (6 × 1011 M). We believe that we have improved upon the DB06 model by introducing a dependence on the amount of shock-heated gas, which we find to decrease with increasing redshift at fixed halo mass due to the presence of cold filaments (see panels in Fig. 9). To include the impact of cold filaments in their calculations, DB06 had to modify the gas density and assume ρstreamvir ∼ (3M*/M)−2/3 (with ρstream the filamentary gas density, ρvir the gas density at the virial radius and M* the non-linear clustering mass scale). By doing so they obtained an upper limit for cold streams that increases with increasing redshift, in agreement with our results, but reaches 1014 M at z = 3.5.