1 Introduction

Numerical simulations predict that accretion of metal-poor gas from the cosmic web fuels the formation of disk galaxies s(e.g., Dekel and Birnboim 2006; Dekel et al. 2009; Silk and Mamon 2012; Genel et al. 2012b; see also Fig. 1). The gas originally resides outside the virial radius of the dark-matter (DM) halo that hosts the galaxy, and by accretion over cosmic time it becomes part of the pool of baryons that forms new stars. This cosmological gas supply has a strong dependence on redshift and halo mass. When the gas encounters a massive halo \((>\) \(10^{12}{M}_{\odot })\), it becomes shock heated and requires a long time to cool and settle into the galaxy disk. For less massive haloes, cool gas streams can reach the inner halo or disk directly. This so-called cold-flow accretion may have an extreme impact on the disk, or it may provide a gentle gas supply that is transported radially in the disk. Since high-redshift haloes tend to be low in mass, cold-flow accretion is predicted to be the main mode of galaxy growth in early times. Ultimately, the galaxies evolve into a quasi-stationary state (Sect. 2.1), where inflows and outflows balance the star-formation rate (SFR), a phase that still goes on for most of them.

Fig. 1
figure 1

Zoom into a simulated halo at \(z=2\) with halo mass \({M}_\mathrm{halo}\simeq 10^{12}\,{M}_{\odot }\) (from Schaye et al. 2010). From left to right, the images are 10, 1 and 0.1 Mpc on a side. All slices are 1 Mpc thick. The color coding shows the projected gas density in logarithmic scale, with the equivalence given in the inset. Densities are referred to the mean density of the universe at the time

The importance of gas infall is as clear from numerical simulations as it is obscure to observations. This paper gives an overview of this rapidly evolving field, emphasizing the role of metal-poor gas accretion to sustain star formation in the local universe. We limit ourselves to the global picture, leaving aside details about star-formation processes (Krumholz et al. 2012; Gnedin et al. 2014), stellar and active galactic nucleus (AGN) feedback (Silich et al. 2010; Hopkins et al. 2013a; Trujillo-Gomez et al. 2013), secular evolution (Binney 2013; Kormendy 2013), dense cluster environments (Santini 2011; Kravtsov and Borgani 2012), and the growth of black holes (BH) through cosmic gas accretion (Husemann et al. 2011; Chen et al. 2013). Other recent reviews covering cosmic gas accretion from different perspectives are in Sancisi et al. (2008), Silk and Mamon (2012), Combes (2014), Fraternali (2014), Conselice et al. (2013) (observationally oriented), Shlosman (2013), Benson (2010) (theoretically oriented), and Madau and Dickinson (2014) (emphasizing the high-redshift aspects).

In addition to gas accretion, galaxies also grow through mergers (e.g, Guo et al. 2011; Kormendy 2013). Simulations suggest that direct accretion from the cosmic web dominates mergers by about an order of magnitude (e.g., Wang et al. 2011; L’Huillier et al. 2012; Combes 2013; van de Voort et al. 2011). For example, the Aquarius project to study galaxy formation in \(\Lambda \) cold dark-matter (\(\Lambda \)CDM) haloes shows inside-out growth, with major mergers contributing less than 20 % to the total mass growth (Wang et al. 2011). These simulations indicate that most of the baryons from which visible galaxies form are accreted diffusely, rather than through mergers, and only relatively rare major mergers affect galaxy structure at later times. L’Huillier et al. (2012) use a multi-zoom simulation to quantify mass assembly and find that, on average, 77 % of growth is from smooth accretion, with 23 % from mergers. In dense regions, mergers play a more prominent role, although even there gas accretion still dominates the growth in the L’Huillier et al. simulations. Groups and clusters are the primary environments in which mergers are important. Since our review paper is focused on gas accretion driving star formation (SF), we do not consider dense environments but concentrate on the evolution of galaxies in relative isolation. For the same reason, we ignore satellite galaxies where ram pressure stripping and starvation are important.

This paper is organized as follows: Sect. 2 summarizes the expected properties of the cosmic gas that fuels SF. Section 2.1 puts forward a simple analytical model that intuitively explains how gas accretion controls SF. Section 2.2 describes the physical properties of accreting gas in numerical simulations, with outflows discussed in Sect. 2.3 and disk growth in Sect. 2.5. Section 3 reviews the evidence for gas accretion inferred from neutral (Sect. 3.1) and ionized hydrogen (Sect. 3.2). Evidence from stellar properties is included in Sect. 4. A number of observational properties characterizing large samples of star-forming galaxies can be explained if the SF is driven by metal-poor gas accretion. These properties are put forward and discussed in Sect. 5, specifically, the stellar mass–metallicity–SFR relationship (Sect. 5.1), the stellar mass–metallicity–gas mass relationship (Sect. 5.2), and the stellar mass–metallicity–size relationship (Sect. 5.3). Theory predicts gas accretion to be particularly important at high redshift. Section 6 reviews observational evidence for accretion at high redshift, starting with the SF history of the universe (Sect. 6.1). In addition, it treats the (secondary) role of mergers (Sect. 6.2), the evidence for gas around galaxies as inferred from absorption features in the spectra of background sources (Sect. 6.3), and the imaging of web gas through its emission (Sect. 6.4). Theory predicts that most of the gas going into stars in a typical SF episode is not recycled gas from previous star formation, but it comes from accretion. Section 7 collects the few measurements of the fraction of SF produced by gas accretion available so far. The review concludes by summarizing the role of gas accretion in star formation, and indicating several open issues to be explored in the future (Sect. 8). The acronyms and main symbols used along the text are listed in Table 1.

Table 1 List of main acronyms and symbols defined and used along the text

2 Cosmological accretion: basics

During the expansion of the Universe, cosmological gas that falls into the potential well of a DM concentration eventually shocks when it meets other gas and stops or deflects in its path (Rees and Ostriker 1977; White and Rees 1978; Binney 1977; Silk 1977). The post-shock temperature increases with the speed of the fall and therefore with the depth of the potential well, and this depth scales with the halo mass. At small enough halo mass, around \(10^{12}\;{M}_{\odot }\) for a modest metal abundance (Birnboim and Dekel 2003), the temperature is sufficiently low that the post-shock cooling time becomes short compared to the dynamical time. Then cooling behind the shock efficiently removes its pressure support and the shock collapses. This collapse is the result of an instability that occurs at a low-effective adiabatic index, when the pressure increase following compression cannot offset the increase in self-gravity. If the shock collapses completely, then the gas may not be heated to the halo virial temperature until it mixes with the inner regions or hits the disk. The structures falling in are expected to take the form of filamentary streams or clouds (e.g., Kereš et al. 2005; Dekel et al. 2009). The importance of such cold streams is that the gas can reach the disk faster, so SF can begin sooner and achieve a rate that is within a factor of a few of the baryonic accretion rate in the halo (e.g., Brooks et al. 2009).

At early times, when galaxies were generally of low mass, and at recent times in the case of low-mass galaxies, a significant fraction of the gas from cosmological accretion remains cold and falls directly to the center (Birnboim and Dekel 2003; Semelin and Combes 2005; Stewart et al. 2011a; van de Voort et al. 2011). Figure 2 shows when the cold and hot accretion regimes operate as a function of halo mass and redshift (from Dekel et al. 2013). Haloes below \(\sim \) \(10^{12}\;{M}_{\odot }\) are dominated by cold accretion at all redshifts, whereas even high-mass galaxies at \(z>1\) could have some cold accretion in streams that penetrate the surrounding hot haloes (see also Ocvirk et al. 2008; Dekel et al. 2009; Kereš et al. 2009; Stewart et al. 2011a).

Fig. 2
figure 2

Predicted penetration of cold gas streams into the halo center as a function of halo mass and redshift. The nearly horizontal curve is the threshold mass below which the flows are predominantly cold and above which a shock-heated medium is present. The inclined solid curve is the upper limit for cold streams in a hot medium to be present. Above this line the gas is all shock heated shutting off the gas supply for star formation. This schematic is based on analytic spherically symmetric calculations by Dekel and Birnboim (2006) and has been taken from Dekel et al. (2013). The slanted dashed line is the critical mass in the Press–Schechter formalism, above which structures form

Much progress has been made on the details of galaxy accretion since the early studies, with few changes to the basic conclusion that the cold fraction of accretion is determined by the dark halo mass. This section summarizes the physical properties of the gas that falls in and forms stars as predicted by recent numerical simulations. We outline expected observational properties, keeping in mind that the numerical methods used to carry out the simulations may matter for some important details since the resolution is not good enough to capture many of the physical processes controlling the gas infall (the typical mass resolution is about \(10^6\)\(10^7\,{M}_{\odot }\); Brooks et al. 2009; van de Voort and Schaye 2012). For example, the moving mesh code AREPO gets less purely cold gas at high halo mass than do smoothed particle hydrodynamics (SPH) codes because cold filaments break apart and mix with hot halo gas more readily in AREPO (Nelson et al. 2013). Similarly, Kereš et al. (2012), Vogelsberger et al. (2012) and Sijacki et al. (2012) found higher star-formation rates with AREPO than SPH because realistic turbulent cascades in AREPO channel the energy to denser scales where it dissipates at a greater rate. Often simulations do not reach redshift \(z=0\) and the predictions for the local universe come from higher \(z\), considering that the accretion decreases with time.

2.1 Simple analytical description

Quasi-stationary state. Numerical simulations produce galaxies that are originally very dynamic, but as time goes on they enter a quasi-stationary phase where inflows and outflows balance the SFR (Finlator and Davé 2008; Schaye et al. 2010; Bouche et al. 2010; Fraternali and Tomassetti 2012; Davé et al. 2012; Dekel et al. 2013; Bothwell et al. 2013; Feldmann 2013; Altay et al. 2013; Forbes et al. 2014). Such equilibrium follows naturally from the gas-consumption timescale \({\tau }_\mathrm{g}\) being shorter than the other relevant timescales in the problem. For example, in the local universe \({\tau }_\mathrm{g}\) is on the order of 1–2 Gyr whereas the timescale for gas inflow from the web is some 7–8 Gyr (e.g., Lilly et al. 2013). Under this condition the gas inflow rate determines both the SFR and the mass of gas in the galaxy (Lilly et al. 2013). The latter is just the gas mass needed to maintain the SFR given the gas-consumption timescale. These conclusions follow from mass conservation, and can be summarized in a few analytical expressions which provide insight to understand the underlying physics.

Using equations from chemical evolution models (e.g., Edmunds 1990), the variation with time \(t\) of the gas mass available to form stars \({\dot{M}}_\mathrm{g}\) is given by,

$$\begin{aligned} \frac{\mathrm{d}{M}_\mathrm{g}}{\mathrm{d}t}\equiv {\dot{M}}_\mathrm{g} =-(1-R)\,\mathrm{SFR}+{\dot{M}}_\mathrm{in}-{\dot{M}}_\mathrm{out}, \end{aligned}$$
(1)

which considers the formation of stars (1st term on the right-hand side of the equation), the gas inflow rate \({\dot{M}}_\mathrm{in}(t)\), and the gas outflow rate \({\dot{M}}_\mathrm{out}(t)\). The symbol \(R\) in Eq. (1) stands for the fraction of the stellar mass that returns to the interstellar medium (ISM) rather than being locked into stars and stellar remnants. For simplicity, the SFR produced by a given mass of gas is parameterized in terms of the star-formation efficiency \(\epsilon \), or its inverse the gas-consumption timescale \({\tau }_\mathrm{g}\),

$$\begin{aligned} \mathrm{SFR}=\epsilon \,{M}_\mathrm{g}=\frac{{M}_\mathrm{g}}{{\tau }_\mathrm{g}}. \end{aligned}$$
(2)

The outflow rate is reasonably assumed to scale with the SFR,

$$\begin{aligned} {\dot{M}}_\mathrm{out}(t)=w\,\mathrm{SFR}(t), \end{aligned}$$
(3)

with \(w\) the so-called mass-loading factor. Provided that all scaling factors \(R,w\) and \({\tau }_\mathrm{g}\) are constant, the general solution of Eq. (1) is

$$\begin{aligned} \mathrm{SFR}(t)&= \mathrm{SFR}(0)\,\mathrm{e}^{-t/\tau _\mathrm{in}}+ \int _0^t\,{\dot{M}}_\mathrm{in}(t^\prime )\,\mathrm{e}^{-(t-t^{\prime })/\tau _\mathrm{in}}\,\mathrm{d}t^\prime /{\tau }_\mathrm{g},\nonumber \\ \tau _\mathrm{in}&= {\tau }_\mathrm{g}\,/(1-R+w). \end{aligned}$$
(4)

Under the current assumption that \({\tau }_\mathrm{g}\) is much shorter than the other relevant timescales, \(t \gg \tau _\mathrm{in}\), and the source term \({\dot{M}}_\mathrm{in}(t^{\prime })\) only contributes to the integral in Eq. (4) when \(t^{\prime }\sim t\). When this stationary state is reached, Eq. (4) becomes

$$\begin{aligned} \mathrm{SFR}(t)\simeq (1-R+w)^{-1}\,{\dot{M}}_\mathrm{in}(t), \end{aligned}$$
(5)

showing that the SFR is set by the gas infall rate (corrected for returned fraction \(R\) and outflows \(w\)). In addition, the mass of gas is also set by the infall rate to be the amount needed to maintain the SFR forced by the infall rate,

$$\begin{aligned} {M}_\mathrm{g}(t)\simeq {\tau }_\mathrm{g}\, \mathrm{SFR}(t)\simeq \frac{{\tau }_\mathrm{g}}{1-R+w}\,{\dot{M}}_\mathrm{in}(t). \end{aligned}$$
(6)

Equations (5) and (6) tell us that galaxies self-regulate to maintain the gas needed to produce a SFR set by the balance between inflows and outflows. We note that Eq. (2), and so Eq. (6), is a version of the Kennicutt–Schmidt (KS) relation (Schmidt 1959; Kennicutt 1998) stating that the SFR scales as a power of the gas mass, with power index close to one. The details of this relation are not as important on the scale of a whole galaxy as they are for kpc scales, where observations still have some uncertainties (see the review in Kennicutt and Evans 2012). Observations suggest that \({\tau }_\mathrm{g}\) goes from 0.5 to 2 Gyr for galaxies in the redshift range between 2 and 0 (e.g., Genzel et al. 2010; Gnedin et al. 2014). Theory suggests that \({\tau }_\mathrm{g}\) scales with the instantaneous Hubble time \(t_\mathrm{H}\) as \({\tau }_\mathrm{g}\simeq 0.17\,t_\mathrm{H}\) (Dekel et al. 2013).

In this stationary state, a significant part of the SF relies on accreted gas because the gas in the disk that has been returned from previous stars (the returned fraction \(R\)) is not massive enough to maintain the level of SF very long. The fraction of SF that comes from gas that has never been processed by stars in the galaxy can be determined by dividing the gas into one component of this type, \({M}_\mathrm{gf}\), and another component that has been inside a star, \({M}_\mathrm{gp}\),

$$\begin{aligned} {M}_\mathrm{g} = {M}_\mathrm{gf}+{M}_\mathrm{gp}, \end{aligned}$$
(7)

where the subscripts f and p refer to fresh and processed gas, respectively. The fresh gas follows an equation identical to Eq. (1) but without the returned fraction \(R\), since the gas returned by stars is not fresh gas,

$$\begin{aligned} {\dot{M}}_\mathrm{gf} ={\dot{M}}_\mathrm{in}-{M}_\mathrm{gf}/{\tau }_\mathrm{g}\,-w\,{M}_\mathrm{gf}/{\tau }_\mathrm{g}. \end{aligned}$$
(8)

This equation states that all of the cosmic accretion adds to the fresh gas reservoir, which is depleted by star formation (both the locked-up mass and the returned mass) and by winds that are proportional to the SFR. We have assumed that winds carry away fresh gas in proportion to its mass, because the fresh and processed components should mix before significant star formation begins in them, and then both get dragged out by mass loading in the wind. These are reasonable assumptions since the time during which the gas is able to mix before star formation occurs in it, on average, is the consumption time, \({\tau }_\mathrm{g}\), and this is generally much longer than the turbulent crossing time in the ISM. There could be some situations, however, where fresh gas is not well mixed with processed gas before it gets into a star, and then the young star metallicity in those regions could be less than the average in the ISM. The evolution of \({M}_\mathrm{gp}\) is given by,

$$\begin{aligned} {\dot{M}}_\mathrm{gp} =R\,{M}_\mathrm{g}/{\tau }_\mathrm{g}-{M}_\mathrm{gp}/{\tau }_\mathrm{g}\,-w\,{M}_\mathrm{gp}/{\tau }_\mathrm{g}, \end{aligned}$$
(9)

showing that the only source of processed gas is the mass that has been returned from star formation, while the loss of \({M}_\mathrm{gp}\) is from star formation and winds, as for the fresh gas loss. Since Eq. (8) is formally identical to Eq. (1), it admits a solution like Eq. (5) with \(R=0\). Then the ratio between the SFR in fresh gas, \(\mathrm{SFR}_\mathrm{gf}\), and the total SFR is given by,

$$\begin{aligned} \frac{\mathrm{SFR}_{\mathrm{gf}}}{\mathrm{SFR}}\simeq \frac{1-R+w}{1+w}. \end{aligned}$$
(10)

The ratio decreases with increasing returned fraction and with decreasing outflows, but it is never small. Even for large returned fractions \(R=0.5\) (e.g., Edmunds 2005; Leitner and Kravtsov 2011; Torrey et al. 2012) and moderate outflows \(w=0.2\) (e.g., Zahid et al. 2012; see also Sect. 2.3), \(\mathrm{SFR}_\mathrm{gf}/\hbox {SFR}\) is as large as 58 %. If \(w \gg 1\) then Eq. (10) yields \(\mathrm{SFR}_\mathrm{gf}\simeq \hbox {SFR}\), which implies that when outflows are very important most of the SF during a gas-consumption time is due to gas fallen in over that time.

The mass in metals can be expressed using a differential equation similar to Eq. (1) (e.g., Edmunds 1990). It can be formally solved as indicated above, and the stationary-state solution gives a metallicity,

$$\begin{aligned} Z\simeq Z_i +y\,(1-R)/(1-R+w). \end{aligned}$$
(11)

The symbol \(y\) stands for the stellar yield, i.e., the mass of new metals eventually ejected per unit mass locked into stars. \(Z_i\) represents the metallicity of the infall gas, which is usually much smaller than the metallicity of the disk gas. In this case Eq. (11) points out that the gas metallicity is independent of mass inflow rate, SFR or mass of gas. \(Z\) just depends on stellar physics (\(R\) and \(y\)) and on the outflows through the mass loading factor \(w\). This holds true even when \({\dot{M}}_\mathrm{in}\), SFR and the stellar mass \({M}_{\star }\) vary with time, provided they do it with a timescale longer than \(\tau _g\). Equation (11) implies that in a stationary state, the rate at which metal mass in the ISM is locked up into stars equals the rate at which new metal mass is ejected into the ISM by stars. This is how the metal mass fraction in the ISM can stay constant in the stationary state. The ISM does not necessarily have such an equilibrium because the disk gas mass and star-formation rate fluctuate in time as a result of accretion fluctuations. Z in Eq. (11) depends on the mass loading factor \(w\) to compensate for the metal lost in outflows—increasing \(w\) is equivalent to decreasing the effectiveness of SF to produce metals. It is as if \(y\) were smaller which forces the equilibrium metallicity to be smaller as well. These results were originally found by Larson (1972) in the context of the G dwarf problem discussed in Sect. 4.

Deviations from the stationary state. The stationary state described above represents a useful idealization that has to be abandoned when the infall rate changes in a short timescale. This is expected to happen quite often in view of the clumpy and stochastic nature of the infall accretion (Sect. 2.2). Thus, deviations from the stationary state are needed to understand the observed relationship among stellar mass, metallicity and SFR treated in Sect. 5.1. In addition, a young universe could have a relatively long gas-consumption time, and then the SFR cannot keep up with the accretion rate. Observations of this imbalance were suggested by Reddy et al. (2012) who found at \(z>2\) an accretion rate from the KS relation that is 2–3 times larger than the SFR during galaxy build-up.

Average mass infall rate. Cosmological accretion drives star formation. It is primarily dark-matter accretion carrying along baryons—intermittent but with a marked global trend. The average mass accretion rate into haloes of mass \({M}_\mathrm{halo}\) at redshift \(z\) may be approximated by a formula in Dekel et al. (2013; see also Lilly et al. 2013 and Davé et al. 2012),

$$\begin{aligned} {\frac{\mathrm{d}{M}_\mathrm{halo}}{\mathrm{d}t}}\approx 30\,{M}_\mathrm{halo,12}{}^{1.14}(1+z)^{2.5}\;{M}_{\odot }\,\hbox {year}^{-1}, \end{aligned}$$
(12)

where \({M}_{\mathrm{halo},12} ={M}_\mathrm{halo}/10^{12}\,{M}_{\odot }\). Approximating \({M}^{1.14}\) by \({M}\), and integrating equation (12) over time for an Einstein–deSitter Universe (which relates time and redshift), the mass and accretion rate become (Dekel et al. 2013)

$$\begin{aligned} {M}_{\mathrm{halo},12}&\approx {M}_{\mathrm{halo},12,0}\,\hbox {e}^{-0.79( z-z_0)},\end{aligned}$$
(13)
$$\begin{aligned} {\frac{\mathrm{d}{M}_\mathrm{halo}}{\mathrm{d}t}}&\approx 30\,{M}_{\mathrm{halo},12,0}\,e^{-.0.79(z-z_0)}(1+z)^{2.5}. \end{aligned}$$
(14)

The fiducial mass \({M}_{\mathrm{halo},12,0}\) corresponds to the mass at \(z=z_0\), which would be today’s mass if \(z_0=0\). The baryonic accretion rate is approximately the dark-matter accretion rate multiplied by the cosmological baryonic mass fraction, \(f_b\). The gas accretion rate depends on the faction of these baryons that get to the star-forming part in the center of the halo, \(f_\mathrm{gal}\), so that,

$$\begin{aligned} {\dot{M}}_\mathrm{in}=f_\mathrm{b}\,f_\mathrm{gal}\,{\frac{\mathrm{d} M_\mathrm{halo}}{\mathrm{d}t}}. \end{aligned}$$
(15)

For the Milky Way (MW) today with \({M}_{\mathrm{halo},12}=1,\,z=0,\,f_{b}=0.16\), and \(f_\mathrm{gal}\sim 1\) (e.g., Peng and Maiolino 2014), Eqs. (12) and (15) render an infall rate \({\dot{M}}_\mathrm{in}\sim 5\,{M}_{\odot }\,\hbox {year}^{-1}\).

2.2 Expected properties of accreted gas

Generally speaking, gas accretion from the cosmic web occurs in two modes, hot and cold, both taking place simultaneously in all galaxies and over cosmic time. However, the mass of the DM halo determines which one is favored, so that the less massive galaxies prefer the cold-flow mode (Fig. 2). The hot mode is produced by the gas being shock heated when entering the DM halo. It reaches a temperature \({T}>10^5\hbox {K}\) and a density between a hundred and a thousand times the mean density of the universe (Birnboim and Dekel 2003; Kereš et al. 2005). Gas at this temperature and density exhibits a cooling time of several Gyr (e.g., Dekel and Birnboim 2006; Wiersma et al. 2009), which is long enough for the gas to be spread over the halo by the time it settles down onto the galaxy disk. The high-temperature gas is too tenuous to be observed in X-ray, and is fully ionized. Cold-flow gas, however, rapidly ends up in the center of the potential well in a free-fall timescale, where it meets, strikes and heats the galaxy. Depending on the flux and clumpiness of the gas stream, it may destroy a pre-existing disk and create a new one, or just contribute to the growth of the disk (e.g., Dekel et al. 2009). The cold-flows are partly ionized with \(10^4 \le {T}\le 10^5\,\hbox {K}\). The sources of ionization are mainly thermal collisions with electrons and photoionization due to individual galaxies and the UV background (e.g., Fumagalli et al. 2011b).

A summary of numerical model predictions is shown in Fig. 3 (from van de Voort and Schaye 2012). It describes the physical conditions of the gas being accreted by MW-size haloes \((10^{11.5} < {M}_\mathrm{halo}< 10^{12.5}\,{M}_{\odot })\) at z= 0. The cold gas is defined to be the component that never reaches a temperature above \(10^{5.5}\,\hbox {K}\) (Fig. 3; top right panel). This cold component comes directly from the intergalactic medium (IGM) and is more metal poor than the hot component (Fig. 3; middle right panel) which is enriched by galactic outflows. The gas falls in pulled by gravity so that the characteristic velocities are similar to the Keplerian velocities in the outer parts of disks. The typical inflow velocity for the cold-flow goes from 50 to 100 \(\hbox {km}\,\hbox {s}^{-1}\) at \(z=0\) although it increases with redshift for the same halo mass (see the bottom-left panel of Fig. 3). The hot component has essentially no infall speed except near the outer parts. Distances to the center of the potential are normalized to the virial radius \(\mathrm{R}_\mathrm{vir}\) defined as the radius that contains a density greater than \(\sim \) \(170\) times the mean density of the universe. \(\mathrm{R}_\mathrm{vir}\) is typically very large compared to the optical half-light radius of the resulting galaxies (\(\sim \) \(70\) times according to Kravtsov 2013). Note that the average densities of both the hot and cold components are similar to within a factor of \(\sim \) \(5\) and that both increase towards the center. Still, the accretion rate is dominated by the cold component (lower middle panel) because it has the greater infall speed. The temperature of the hot component stays high until it finally reaches the disk, at which point it drops down to the temperature of the cold component.

Fig. 3
figure 3

Properties of gas at \(z=0\) in MW-type haloes. The physical parameters are presented as a function of the distance to the halo center for all the gas (black), for hot gas (red), and for cold gas (blue). Properties at \(z=2\) have been included for comparison (see the inset in the top left panel). Shaded regions correspond to \(\pm 1\sigma \) scatter around the median. From the top-left to the bottom-right, the different panels show the mass-weighted median gas overdensity, temperature, maximum past temperature, pressure, entropy, metallicity, radial peculiar velocity, mean accretion rate and mean mass fraction of hot-mode gas, respectively. The radial profiles at \(z=2\) follow the same trends as at \(z=0\), although at \(z=2\) the pressure, the infall velocity and the accretion rates are higher, the entropy is lower, and the hot mode accounts for a smaller fraction of the halo mass. The distances are normalized to the virial radius \(\mathrm{R}_\mathrm{vir}\), and the density \(\rho \) to the mean density of the universe \(\langle \rho \rangle \). Taken from van de Voort and Schaye (2012)

The dimensions of the cold streams determine how the gas interacts with the galaxy at the center of the gravitational well, whether it is focused onto a small portion of the galaxy or affects the galaxy disk as a whole. Numerical simulations predict the cosmic gas streams to be very broad—larger than the virial radius of a dwarf galaxy. They are 0.1 Mpc across at \(z=2\) in the MW-like galaxy simulations by Schaye et al. (2010), and the width increases with time, so that they are even broader in the nearby universe. However, these broad streams develop small-scale structure (called substreams), which is poorly captured at the resolution of the present simulations. These substreams may eventually be small enough to become disk-galaxy size or smaller, and so they may identifiable through inhomogeneities produced in the disks (e.g., Ceverino et al. 2010).

The infall rates in the center of the potential well decrease with time, from a few tens of \({M}_{\odot }\,\hbox {year}^{-1}\) at \(z=2\) to a few \({M}_{\odot }\,\hbox {year}^{-1}\) at \(z=0\) [e.g., Kereš et al. 2005van de Voort and Schaye 2012, and also Eqs. (14) and (15)]. These accretion rates are characteristic of MW haloes; higher masses have larger infall rates and a much steeper decrease with time. The accretion rate is bursty since the cold-flow gas falling in is clumpy rather than smooth (e.g., Fig. 1 in Brooks et al. 2009). As we addressed in more detail in Sect. 2.1, galaxies tend to be in a slowly evolving equilibrium state, with the predicted infall rates comparable to the SFRs. At every radius accretion is balanced by SF, winds and radial transport of gas through the disk (Forbes et al. 2014).

The mass in baryons in galaxy haloes can be several times larger than the stellar mass of the galaxy. In massive haloes, most of halo gas is in the hot phase (Fig. 3, bottom-right panel), ionized at high temperatures. The cold gas is not uniformly distributed but covers only a small halo volume (\(<\)10 %, Fumagalli et al. 2011b). On average, the majority of stars present in any mass halo at any \(z\) were formed from the gas accreted in the cold mode, although the hot mode contributes typically over 10 % for \({M}_\mathrm{halo} \ge 10^{11}\, {M}_{\odot }\) (van de Voort et al. 2011). At redshift zero the fraction of stellar disk mass formed from shock-heated gas is between 5 and 15 % when \({M}_\mathrm{halo}\) goes from \(10^{11}\,{M}_{\odot }\) to \(10^{12}\,{M}_{\odot }\) (Brooks et al. 2009).

2.3 The importance of galactic winds

Mass outflows, also known as galactic winds, have important effects on the evolution of galaxies, their haloes and the IGM. Together with mass accretion, they regulate the SFR of the galaxies, so that the larger the winds the smaller the gas available to form stars and, therefore, the smaller the SFR. Winds also transport the metals produced by stars out of the galaxy disks, and so reduce the galaxy metallicity and pollute the circum-galactic medium (CGM) and the IGM. All of these features are present in the numerical simulations, but the underlying cause can be appreciated using the analytic model worked out in Sect. 2.1, where the strength of the wind is parameterized in terms of the mass loading factor \(w\). At a given accretion rate, when \(w\) increases, the SFR decreases [Eq. (5)], the mass of gas decreases [Eq. (6)], and the metallicity decreases [Eq. (11)].

Winds explain several central properties of galaxies. Without winds, there would be too many metals in the disks given the nucleosynthetic yield and the observed gas-to-star mass ratio (Sect. 5.1). Moreover, galaxies of different masses tend to have different metallicities; therefore, if Eq. (11) has to describe this property, the mass loading factor \(w\) must vary with the stellar mass. Such dependence is to be expected, since galaxies of lower mass have shallower gravitational potentials and so they lose gas more easily (see Sect. 5). Winds also affect the metallicity of the IGM, whose expected properties are put forward in Sect. 2.4 and whose observational properties are described in Sect. 3.2. Evidence for metal enrichment of the CGM is analyzed in Sect. 3.1.

The impact of winds on metallicity is so important because \(w\) can be large, far in excess of unity. If \(w \gg 1\), then most of the accreted gas is not used to form stars but dragged along with the mass ejected in galactic winds [\(\mathrm{SFR} \ll {\dot{M}}_\mathrm{in}\) when \(w\gg 1\) in Eq. (5)]. To reproduce the observed mass–metallicity relationship, Davé et al. (2012) and Peeples and Shankar (2011) need \(w\) to change from 1 to 6 when \({M}_{\star }\) varies from \(10^{11}\) to \(10^9\,{M}_{\odot }\). The same range is also found in numerical simulations (\(w\) goes from 1 to 10 for \({M}_{\star }\) between \(2\times 10^{11}\) and \(10^9\,{M}_{\odot }\); Shen et al. 2012). Thus low-mass galaxies are extremely wasteful using the cosmological gas, most of which returns to the IGM without being processed through the stellar machinery. In addition, the nature of the wind of low- and high-mass galaxies may not be the same. The HI mass function of galaxy haloes depends on the wind model; it was matched in a simulation by Davé et al. (2013) using momentum-driven outflows for large galaxies and energy-driven outflows for small galaxies. Low-velocity winds from dwarf galaxies can reach the intergalactic medium, while even high velocity winds from massive galaxies may not as a result of the higher halo density that blocks them (Oppenheimer et al. 2012).

Winds do not seem to prevent cold accretion. Faucher-Giguère et al. (2011) showed from simulations that a factor of 2 increase in the mass loading factor or a factor of 2 increase in the wind speed affect most sensitively the accretion rate at the virial radius without much effect on the cold gas accretion rate to the center. When both the loading factor and speed increased by this factor, the cold accretion rate did decrease for low halo masses. Powell et al. (2011) also found that galactic winds do not strongly affect the cold gas accretion rate.

The cycle of metals ejected by winds is complex, often involving re-accretion. Shen et al. (2012) model a galaxy at \(z=3\) with a \(2.4\times 10^{11} {M}_{\odot }\) halo and a \(2.1\times 10^{10}{M}_{\odot }\) stellar disk (like the present day MW disk), and include in the model satellites and nearby dwarfs. They find that 60 % of the accreted metals within 3 \(\mathrm{R}_\mathrm{vir}\) of the galaxy come from SNe in the host itself, 28 % come from satellite progenitors, and 12 % from nearby dwarfs. Most metals beyond 2 \(\mathrm{R}_\mathrm{vir}\) are released very early, at \(z\) from 5 to 8. An early release of highly ionized metals was found by Ford et al. (2013) also. Low ionization metals like MgII tend to re-accrete within 2 Gyr, while high ionization metals take much longer.

Strong winds appear to be important for metallicity gradients in disks. Fu et al. (2013) model analytically disk evolution with accretion, winds, and star formation, assuming a radial accretion in the disk plane with a velocity proportional to radius. They find that the largest influence on the metallicity gradient is the re-accreted and enriched halo gas, rather than metals mixed with the disk gas. To match observations of weak metallicity gradients in galaxies with stellar masses of \(\sim \) \(10^{10}\,{M}_{\odot }\), they need 80 % of the metals produced by SNe to go into the halo where they can return to the disk, mostly in the outer parts. Bresolin et al. (2012) also suggest that metal-enriched outflows and re-accretion to the disk might explain their observation of metallicities in outer disks of two galaxies that are too large for the low rates of star formation there.

SNe affect accretion in another way, by providing ejecta of cool gas into the lower regions of the halo onto which the hot halo gas above it can condense. Marinacci et al. (2010) show in simulations that gas in a galactic fountain (Melioli et al. 2008) mixes with hot halo gas, and if the pressure and metallicity of the halo are high enough, the mixture cools to become HI. The total amount of captured halo gas can be about 20 % of the fountain gas for each event. Marasco and Fraternali (2011) and Marasco et al. (2012) model the fountain and resulting halo accretion in detail, reproducing the intermediate velocity HI clouds above the MW and obtaining an accretion rate comparable to the star-formation rate of \(\sim \) \(2\,\) \({M}_{\odot }\,\hbox {year}^{-1}\). This may solve the problem posed by the low inflow rate in MW HVCs discussed in Sect. 3.1. Marasco et al. (2012) suggest that the fountain ejection speed is around \(70\,\hbox {km s}^{-1}\). Absorption lines from the warm (e.g., SiIV) component of the MW, and from about half of the hot (OVI) component are also reproduced by this model (Marasco et al. 2013), with these lines coming from fountain-mixed halo gas within a few kpc of the disk. Hobbs et al. (2013) simulate the formation of cold clumps in fountain filaments.

2.4 Expected observational properties

Metallicity.  One of the fingerprints of the cosmic web gas is its low metallicity (between \(10^{-2}\) and \(10^{-3}\,Z_\odot \) at low redshift; see Fig. 3, central row, right panel), with a very large scatter indicating that the metals are not uniformly spread (Fumagalli et al. 2011b). Actually the question arises as to why metallicity is not zero if the gas is of cosmological origin. The answer is, partly, a small contamination from the first population III stars. They provide a floor of about \(10^{-4}\,Z_\odot \), above which these very massive stars are no longer produced (e.g., Bromm and Larson 2004), but the threshold may be even lower if the metals generated by these stars do not reach the IGM (Muratov et al. 2013). However, the bulk of the metals is due to outflows from galaxies that come along with the gas streams (Shen et al. 2012; Brook et al. 2013). Accordingly, the metallicity of the web increases with decreasing redshift, reaching the level of \(10^{-2}\,Z_\odot \) at \(z=0\) (see Fig. 3, and also Oppenheimer et al. 2012).

Gas inflow.  Inflow is the other distinct feature of accretion. Unfortunately, observations do not easily distinguish inflows, outflows or other proper motions of the gas around galaxies. Doppler shifts alone do not suffice since an inflow in the foreground and an outflow in the background produce the same Doppler shift. Additional physical constraints must be invoked. For example, the gas expelled from the galaxy tends to escape in the direction perpendicular to the galaxy plane; therefore, motions in the plane of the galaxy favor the inflow interpretation (e.g., Bouché et al. 2013; Combes 2014). As we discuss above, cosmic web inflows are expected to be metal poor so metal-rich moving gas is commonly interpreted as outflow rather than inflow (Lehner et al. 2013; Bregman et al. 2013). A third possibility is using the relative velocity as a discriminant. The inflows cannot acquire a velocity largely exceeding the Keplerian velocities (Sect. 2.2) and therefore large velocities must be associated with outflows. The only direct way of assessing accretion, however, is by observing the gas in absorption in the starlight spectrum emitted by the galaxy (e.g., Lebouteiller et al. 2013)—since the gas is in between galaxy and observer, redshift implies infall.

\(\hbox {Ly}\alpha \) forest.  One of the most consistent predictions of numerical simulations has been the \(\hbox {Ly}\alpha \) forest of low column density absorption lines to quasi-stellar objects (QSO) produced by the cosmic web (Bi et al. 1992; Hernquist et al. 1996; Schaye 2001). Simulations reproduce the distribution of column densities, equivalent widths and power spectra (for recent work, see Borde et al. 2014). Fumagalli et al. (2011b) work out the HI column density expected from the web considering the ionization balance to be controlled by thermal collisions with electrons, by photoionization due to individual sources and the UV background, and by dust shielding from ionizing photons. They predict column densities of neutral hydrogen \(\mathrm{N}_\mathrm{HI}\) between \(10^{17}\) and \(10^{21}\,\hbox {cm}^{-2}\) (Fig. 4). The expected properties coincide with those observed in Lyman limit systems (LLS; \(\mathrm{N}_\mathrm{HI}>10^{17}\,\hbox {cm}^{-2}\)) and damped Lyman-\(\alpha \) absorbers (DLA; \(\mathrm{N}_\mathrm{HI}>10^{20}\,\hbox {cm}^{-2}\)), including inflows of 100 \(\hbox {km}\,\hbox {s}^{-1}\) and metallicities between \(10^{-2.5}\) and \(10^{-1}\,Z_\odot \) for \(z\) between 5 and 0 (e.g., Tornatore et al. 2010; Rafelski et al. 2014). The closer to the center of the gravitational potential the denser the gas, and the lower the redshift the more diffuse. In simulations also including radiative transfer, van de Voort and Schaye (2012) and van de Voort et al. (2012) find that at \(z=2\)–3, most HI absorbers above \(10^{17}\,\hbox {cm}^{-2}\) reside in haloes, those above \(10^{21}\,\hbox {cm}^{-2}\) are in disks, and cold-flow accretion should appear as an infalling component with low metallicity. Fumagalli et al. (2011b) suggest that cold streams from galaxies in the mass range \(10^{10}-10^{12}\,{M}_{\odot }\) account for more than 30 % of the \(\hbox {Ly}\alpha \) absorption in QSO spectra (see also Faucher-Giguère and Kereš 2011).

Fig. 4
figure 4

HI column densities in the cosmic web for a number of model galaxies in cosmological simulations as worked out by Fumagalli et al. (2011b). Color codes four intervals of column density including LLSs (in blue) to DLAs (in red). Redshift is decreasing from top to bottom, and virial mass is increasing from left to right. The dotted circles mark the virial radius. The cold streams are very patchy, with pockets of neutral gas immersed in an ionized medium

Imaging the gas streams. Cold-flow streams contain partly ionized gas undergoing continuous recombination and should produce an HI emission line spectrum. Goerdt et al. (2010) work out the \(\hbox {Ly}\alpha \) flux to be expected from the cold streams that fed galaxies at high redshift. UV background excitation, collisions with free electrons, and dust attenuation are included. They find that the emission is mainly driven by collisions since the filaments are thick enough to be shielded from the background. The peak surface brightness is \(2\times 10^{-17}\,\hbox {erg}\,\hbox {cm}^{-2}\,\hbox {s}^{-1}\,\hbox {arcs}^{-2}\) for MW-like haloes at \(z=2.5\). Assuming that this flux is observed through a narrow bandpass of 50 Å, it corresponds to 25.5 AB mag per square arcsec. The structures have sizes from 50 to 100 kpc, luminosities between \(10^{43}\) and \(10^{44}\,\hbox {erg}\,\hbox {s}^{-1}\), and are identified by some authors as the observed \(\hbox {Ly}\alpha \) blobs (LABs; Steidel et al. 2000; Fardal et al. 2001; Ouchi et al. 2009; Latif et al. 2011; see Sect. 6.4). Simulations by Dijkstra and Loeb (2009), Faucher-Giguère et al. (2010) and Rosdahl and Blaizot (2012) also suggest that cold stream accretion can account for the \(\hbox {Ly}\alpha \) emission. The cosmic web gas also emits through fluorescence of \(\hbox {Ly}\alpha \) photons produced by nearby sources (Cantalupo et al. 2012). This fluorescence has been recently observed as we discuss in Sect. 6.4.

2.5 Accretion and disk growth

Accretion tends to favor the outer parts of galaxies with both stars from minor mergers (Font et al. 2011; Lackner et al. 2012) and gas from cold streams (Roškar et al. 2010; Moran et al. 2012). Surveys of extended UV disks around both early- and late-type galaxies actually suggest on-going gas accretion and star formation in the outer parts (Lemonias et al. 2011; Moffett et al. 2012). These ideas are consistent with cosmological numerical simulations, where disk galaxies acquire their spin together with their mass through cold gas accretion.

Pichon et al. (2011) carry out simulations where the disk angular momentum comes from filaments and increases over time, building up disks from the inside out. Codis et al. (2012), Laigle et al. (2013), and Dubois et al. (2014) show from cosmological simulations that low-mass galaxies, which tend to be disklike, spin in a direction that is aligned to their accretion filaments, but high-mass spheroidal galaxies spin perpendicular to their filaments. The difference arises because the disks accrete gas directly from their filament and inherit its angular momentum, while the spheroids grow from the mixture of other galaxies coming in along the filament (i.e, grow from mergers). Stewart et al. (2011b) found that cold streams in haloes contain higher angular momentum than dark matter. The reason for this is that the total angular momentum of the dark matter adds positive and negative contributions from the mixing of many sub-haloes, with a net value that is small. In contrast, gas cannot pass through itself but dissipates relative motions and coheres into a smooth flow with the net angular momentum appearing as a systematic rotation.

So far no numerical simulation details the interaction between a cold-flow stream and a galaxy disk in the local universe. Ceverino et al. (2012) model the kind of clumpy disks observed at high redshift (Elmegreen et al. 2005, 2007b; Genzel et al. 2011). The advent of the gas stream changes the morphology of the disk so that it becomes more lopsided. Stars are formed immediately after gas arrival at high rate (\(\sim \) \(10^2\) \({M}_{\odot }\,\hbox {year}^{-1}\)), but the metallicity of the resulting HII regions is not well modeled because part of the gas forming stars was in the disk already, and also because these simulations assume an instantaneous recycling of the SN ejecta. The size of the ensuing star-forming regions has to do with the gas accretion rate and the turbulence, rather than with the cross section of the gas stream that induces the process. The turbulence in numerical disks may (Genel et al. 2012a) or may not (Hopkins et al. 2013b) be maintained by cold-flow accretion events. Turbulence enhances mixing processes on the scale of the disk thickness, so the mixing timescale for the ISM in a small radial annulus of a disk galaxy is expected to be short—of the order of a rotational period or shorter (Tenorio-Tagle 1996; de Avillez and Mac Low 2002; Edmunds 2005; Yang and Krumholz 2012).

3 Accretion inferred from gas observations

3.1 Neutral gas observations

Pools of neutral gas. The presence of pools of neutral gas around almost all galaxies is well known from the early days of radio astronomy (e.g., Muller and Oort 1951; Haynes et al. 1984; Dickey and Lockman 1990). The improvement in sensitivity and the diversification of observational techniques have reinforced the original view. Roughly speaking, the HI mass scales with the SFR of the galaxies (KS law; see Sect. 2.1) and since the SFR varies systematically with the Hubble type and with \({M}_{\star }\), gas-rich systems tend to have late morphological types and low stellar masses. The gas-to-star mass ratio \({M}_\mathrm{g}/{M}_{\star }\) varies from 0.01 to 10 when \(\log ({M}_{\star }/{M}_{\odot })\) goes from 11.5 to 8, with the same range of variation from red early-type galaxies to blue late types (Kannappan 2004; Pilyugin et al. 2004; Davé et al. 2013). The scatter of the relationships with stellar mass and Hubble type is significant, so that neither the mass nor the Hubble type fully determines the gas fraction of a galaxy (Kannappan 2004; Kannappan et al. 2013; Wang et al. 2011).

Sancisi et al. (2008) summarize radio observations of HI cloud complexes, tails and filaments in and around local galaxies, suggesting ongoing minor mergers and recent arrival of external gas. The HI image of the dwarf galaxy IZw18 in Fig. 5 is particularly illustrative (from Lelli et al. 2012a). It shows large amounts of HI gas around the galaxy \(({M}_\mathrm{g}/{M}_{\star }\sim 5)\) with a plume of different velocity directed towards the galaxy where a large starburst goes on at present (Fig. 5, left panels). Although not as spectacular as in IZw18, elongated extraplanar features are quite common in disk galaxies (e.g., NGC925, Pisano et al. 1998, and the many other examples given in the review by Sancisi et al. 2008). Extraplanar gas is also found in our own galaxy, where the existence of gas clouds falling in is long known (Oort 1966; Blitz et al. 1999; van Woerden et al. 2004; Wakker et al. 2007, 2008). Some of these high velocity clouds (HVC) are part of the so-called galactic fountain, where SN ejecta return to the galaxy plane after cooling down (e.g., Tenorio-Tagle 1996; Spitoni et al. 2008). However, HVCs with low metallicities are likely of extragalactic origin (e.g., Hernandez et al. 2013). The existence of HVCs agrees qualitatively with theoretical expectations; however, they pose an observational problem common to many other galaxies. Their mass infall rate is estimated to be \(\sim \) 0.1–0.2 \({M}_{\odot }\,\hbox {year}^{-1}\) which is one order of magnitude too small to maintain the MW SFR of \(\sim \) 1–2 \({M}_{\odot }\,\hbox {year}^{-1}\) (Sancisi et al. 2008; Fraternali 2014), and thus inconsistent with the MW being in a stationary state sustained by HVCs (Sect. 2.1). This imbalance between observed SFR and observed gas accretion rate is common but not universal (counter examples are given by, e.g., Bouché et al. 2013; Schmidt et al. 2014). Moreover, Richter (2012) has mapped HVCs in local galaxies. His HI observations and models indicate that the gas accretion rate density of \(z\sim 0\) galaxies is 0.022 \({M}_\odot \,\hbox {year}^{-1}\,\hbox {Mpc}^{-3}\), which is comparable to the local universe SFR density (Sect. 6 and Fig. 11). He notes that most local accretion may be warm rather than cool gas, although cool infalling HVCs undoubtedly are important components of local galaxy star formation (e.g., Pisano 2014). A massive \((10^{10}\,{M}_{\odot })\) hot (\(10^6\) K) gas is indeed detected over a large region (100 kpc) around the MW (Gupta et al. 2012). Part of the gas supply needed to balance the MW SFR may be due to ionized HVCs. Lehner and Howk (2011) measure the ionized HVC mass to be \(\sim \) \(10^8\,{M}_\odot \) and estimate an infall time of 80–130 Myr, which gives an accretion rate of 0.8–1.4 \({M}_\odot \,\hbox {year}^{-1}\), large enough to sustain the SFR in the MW. The gas supply may also come from the Magellanic stream. The MW is surrounded by a long stream of neutral and ionized gas that is leading and trailing the Large and Small Magellanic Clouds (Wannier and Wrixon 1972; Mathewson et al. 1974). This gas presumably came from the Magellanic clouds during their interaction with each other (Diaz and Bekki 2012) and is now experiencing a drag force from its motion in the hot MW halo gas (Mastropietro et al. 2005). Taking into account the neutral and ionized gas, the Magellanic stream contains \(2\times 10^9\,{M}_\odot \) at a distance of 55 kpc (Fox et al. 2014). If the gas in the Magellanic system survives to reach the MW disk over its inflow time of \(\sim \) \(0.5\)-1.5 Gyr, it will represent an average inflow rate of 4–7 \({M}_{\odot }\,\hbox {year}^{-1}\) potentially raising the current MW SFR. Multiple signs of an evaporative interaction with the hot halo indicate that the stream may not survive its journey to the disk fully intact. It will break apart by hydrodynamic instabilities and evaporate, contributing the hot halo mass (Bland-Hawthorn et al. 2007; Fox et al. 2014).

Fig. 5
figure 5

Figure from Lelli et al. (2012a) corresponding to IZw18. Top integrated HI maps at a resolution of 20 arcsec (left) and 5 arcsec (right), superimposed on a HST image (from Aloisi et al. 2007). The box in the left panel shows the area covered by the right panel. In the map at 20 arcsec resolution, \(\mathrm{N}_\mathrm{HI}\) contours are at 0.25 (dashed), \(0.5,1,2,4,8,16\times 10^{20}\,\hbox {cm}^{-2}\). In the map at 5 arcsec resolution, contours are at 3 (dashed), \(6,12,24,48\times 10^{20}\,\hbox {cm}^{-2}\). The circles show the beam size. A and C refer to the components labeled by Davidson et al. (1989). Bottom HI velocity fields corresponding to the HI maps on top. The velocity scale is color coded as given in the insets

Another big piece of evidence for gas reservoirs in galaxies comes from \(\hbox {Ly}\alpha \) absorption produced by gas around galaxies that happen to be near QSO lines-of-sight. In a systematic search for such systems, Tumlinson et al. (2013) find absorption in all star-forming galaxies, with a detection rate as large as 75 % for the early types and 100% for late types. The sample contains all Hubble types in the near universe \((z<0.35)\) with intermediate masses \(9.5\le \log ({M}_{\star }/{M}_{\odot }) \le 11.5\), and the lines-of-sight sample impact parameters \(d < 150\) kpc. The gas is associated with the galaxies (with velocities smaller than the escape velocity) and is found to be in a cold phase, with temperatures well below the halo virial temperatures (\(<\) \(10^5\) K). This reservoir of gas is often metal poor, indicating that it was not generated and ejected by the galaxies but it is of cosmic origin (Sect. 2.4). Kacprzak and Churchill (2011) examine Mg II absorption kinematics in halo gas at impact parameters from 12 to 90 kpc along 11 QSO sightlines towards \(13\,\hbox {L}_{\star }\) galaxiesFootnote 1 at \(z<0.15\) and find that thick disk rotating halo models are not sufficient to explain the broad lines. They suggest that the gas is infalling along filaments and streams. In a blind survey, Burchett et al. (2013) found C IV absorption that appears to be associated with either of two dwarf galaxies, and concluded that the most likely origin for the lines is cold gas accreting onto the \(z\sim 0.003\) dwarf galaxy. The same kind of cold gas is also present in galaxies of lower mass and to even larger impact parameter. Jia Liang and Chen (2014) search for galaxy–QSO close pairs suitable for finding gas absorption systems. They find 111 independent pairs among nearby \((z\sim 0.02)\) low-mass galaxies \((\log [{M}_{\star }/{M}_{\odot }]=9.0\pm 0.9)\), with impact parameters between 30 and 500 kpc (median 250 kpc). Abundant hydrogen gas is found beyond the dark-matter halo radius \(\mathrm{R}_\mathrm{vir}\) and all through \(d\sim 500\) kpc, with a mean covering fraction of \(\sim \) \(50\)%. No heavy elements are detected at \(d> 0.5\,\mathrm{R}_\mathrm{vir}\), though. The authors estimate that the metallicity of the inner halo is \(0.1\,Z_\odot \) (Chen 2014, private communication), which sets an upper limit to the metallicity of the IGM at distances larger than \(\mathrm{R}_\mathrm{vir}\). The above results present just a few cases among the extensive list of evidence for neutral gas reservoirs next to galaxies drawn from absorption on QSO spectra – more will be given in Sect. 6.

Within the cold-flow accretion scenario, gravitationally bound HI structures devoid of stars are to be expected. HI filaments of this kind have been discovered in blind HI surveys. For example, Popping and Braun (2011a) analyze data from the Parkes All Sky Survey to find ten faint extragalactic filaments that can correspond to extended haloes, tidal remnants, or potentially diffuse filaments tracing the neutral fraction of the cosmic web. Popping and Braun (2011b) map the galaxy filament connecting the Virgo cluster with the local group, finding 20 new detections of neutral hydrogen with no obvious sign of stellar emission. Dark galaxies are also found in the HI ALFALFA survey (Haynes 2007; Martinkus et al. 2014). They represent some 3% of the extragalactic sources (Haynes 2008). Other examples exist in the recent literature (e.g., Oosterloo et al. 2013). So far it is unclear whether the small number of HI-only sources agrees with cosmological numerical simulations since the predictions are not specific enough.

Environment influences gas content and recycling. An HI ALFALFA survey of 365 dwarf galaxies in the Virgo Cluster revealed 12 red early-type dwarfs with the same HI per unit mass as star-forming dwarfs (Hallenbeck et al. 2012). The most likely interpretation is that the early-type dwarfs who were once stripped in the cluster are recently re-accreting gas. In a VLA HI study of counter-rotating disks, three early-type barred galaxies appear to be accreting cold gas. Several of the HI features are cold gas blobs, possibly gas-rich dwarfs (Chung et al. 2012). Kreckel et al. (2011) selected voids out to \(d<100\) Mpc based on SDSS galaxy data to search for HI in regions of greatest galaxy underdensities. Among 15 galaxies, 14 were detected with HI gas masses from \(3.5\times 10^8\) – \(3.8\times 10^9 {M}_{\odot }\). While some of the galaxies are interacting or have companions, others appear isolated and undisturbed, with flocculent spiral or chain morphologies. They note that one void galaxy is a polar-ring galaxy in a thin wall between voids, and may be slowly accreting gas from the cosmic web, as also for another ring galaxy in a void (Spavone and Iodice 2013). Two dwarf galaxies with extended HI disks have unusual kinematics that may be explained by ongoing cold-flow accretion. One, the only known dwarf galaxy in the Local Void (KK 246), has an extended HI disk of \(\sim 10^8{M}_{\odot }\) and an unusually high mass-to-light ratio of 90 (Kreckel et al. 2011).

To characterize faint diffuse gas in local galaxies, Heald et al. (2011) have initiated the HALOGAS (Westerbork Hydrogen Accretion in LOcal GAlaxieS) survey. Their deep HI survey is designed to search for extraplanar gas in edge-on and inclined nearby galaxies and to determine the distribution and gas properties. The pilot survey of four galaxies tentatively suggests that galaxies with higher star-formation energy form gas haloes from outflow, and that extraplanar gas is associated with a high star-formation rate per unit area (Zschaechner et al. 2012). The full survey should also be a useful characterization of halo gas in local systems.

Morphological distortions. Very often the HI maps present non-axisymmetric distortions showing that the gas is not contained in a disk or a spheroid (e.g., Baldwin et al. 1980) and so, suggesting the gas distribution to be transient. For example, spirals are known to have extended warped HI distributions, a pattern that cannot be sustained for long. Among other explanations, gas infall has been proposed as the origin of warped disks (e.g., López-Corredoira et al. 2002; Bournaud et al. 2005; Kamphuis et al. 2013). Figure 5 shows an extreme case of distorted HI morphology. Such extreme distortion is actually common among galaxies with large specific SFR in the local universe—blue compact dwarf (BCD) galaxies often show such complex HI topology (Ekta et al. 2006; Ekta and Chengalur 2010; Lelli et al. 2012b; Nidever et al. 2013). The survey LITTLE THINGS finds BCDs with kinematically separate components, streamers extending far beyond the optical size, kinematic HI axes offset from the optical axes, clouds associated with recent starbursts, and so on (Johnson et al. 2012; Ashley et al. 2013). Many other examples of HI maps showing galaxies with plumes and filaments can be found in the literature (e.g., López-Sánchez et al. 2012). Morphological distortions suggestive of gas accretion are also common in optical images and are discussed in Sect. 4.

A particularly telling deviation from axisymmetry has been found recently by Kacprzak et al. (2012a). They report a bimodality in the azimuthal angle distribution of low ionization gas around galaxies as traced by MgII absorption along QSO lines-of-sight. The circum-galactic gas prefers to lie near the projected galaxy major and minor axes. The bimodality is clear in blue star-forming galaxies whereas red passive galaxies exhibit an excess of absorption along their major axis. These results suggest the bimodality to be driven by gas accretion along the galaxy major axis and gas outflows along the minor axis (Sect. 2.4). There is no other clear alternative. For this interpretation to be correct, the inflow has to be highly anisotropic, concentrated in the plane of the galaxy. This fact favors cold-flow accretion with respect to the isotropic gas inflow to be expected from hot coronal gas cooling down (Sect. 2.2).

The lack of axisymmetry of the gas properties in galaxy haloes is corroborated by Zhu and Ménard (2013) in their study of CaII H&K absorption lines produced by one million foreground galaxies at \(z \sim 0.1\) in \(10^5\) SDSS QSO spectra. For edge-on galaxies the absorption is more concentrated along the minor axis. This is consistent with the idea that bipolar outflows induced by star formation produce the metallic gas in the haloes. Actually, the inflows along the galaxy plane help to channel the outflows along the poles (Tenorio-Tagle and Muñoz-Tuñón 1997; Tenorio-Tagle and Munoz-Tunon 1998).

Metallicity. Having low metallicity can be regarded as the main fingerprint of cosmic web gas (Sect. 2.4), and indeed, the neutral gas around galaxies is often very metal poor. Gaseous systems observed in absorption along QSO lines-of-sight are easier to detect if they are metallic, simply because the absorption features are intrinsically stronger. To avoid this bias, Lehner et al. (2013) use an HI selected sample of some 30 \(L_\star \) galaxies with redshifts up to one. They study the metallicity of LLS \((10^{16}<\hbox {N}_\mathrm{HI}<10^{18.5}\,\hbox {cm}^{-2})\) with impact parameters \(d\) between 10 and 150 kpc. Interestingly, they find a bimodal metallicity distribution with metal-poor and metal-rich branches peaking at 0.025 and \(0.5\,Z_\odot \), respectively. Both branches have a nearly equal number of absorbers. These two populations fit in well with the scenario depicted in Sect. 2, with coexisting metal-rich gas outflows from the galaxies and cosmological gas inflows. We note that the cosmic web metallicity at \(z\sim 0\) predicted by numerical models is very close to the metal-poor branch observed by Lehner et al. In a complementary work, Jia Liang and Chen (2014) find that the absorbing gas next to the galaxies has metallic lines, but only hydrogen absorptions show up at distances beyond the virial radius. This pattern is corroborated by other studies (e.g., Churchill et al. 2013).

Extremely metal-poor (XMP) galaxies provide another piece of evidence for large amounts of cosmic gas around local star-forming galaxies. These galaxies have a number of properties consistent with disks being assembled by accretion of gas (Elmegreen et al. 2012b; Sánchez Almeida et al. 2013, 2014). In particular, they are enshrouded by large amounts of neutral gas, so that \({M}_\mathrm{g}/{M}_{\star }\) is typically as large as 20 (Filho et al. 2013). The ratio is so large that normal stellar evolution cannot produce enough metals for their HI gas to have the same metallicity as that observed in the HII regions of the galaxies, which are already extremely metal poor because XMP galaxies are selected to have \(Z< 0.1\, Z_\odot \). Then, the HI gas around XMPs must have a metallicity \(Z\ll 0.1\, Z_\odot \) and so of the order of a few hundredths of the solar value, which is the level of metallicity expected for the cosmic web in the local universe (Sect. 2.4).

The CGM has also been studied in absorption in the stellar spectra produced by the host galaxy. Then, one can unambiguously measure whether the gas goes in or out (see Sect. 2.4). Lebouteiller et al. (2013) make this observation with IZw18 (Fig. 5). The HI gas pool around it has a metal abundance lower by a factor of two as compared to the HII regions, and it may even present pockets of gas with metallicity essentially null. The HII metallicity samples the gas in the disk, which is already extremely low in this particular galaxy. Since the observed HI gas metallicity is at the level expected for the cosmic web (Sect. 2.4), and it is lower than the metallicity in the disk, the HI is likely cosmic gas being accreted. Lebouteiller et al. (2009) find an even larger discrepancy between the HI and HII metallicities of Pox 36, where the HI metallicity is around 0.03 \(Z_\odot \).

Gas-consumption timescales.  As we point out above, the stellar mass is a poor predictor of the gas-to-stellar mass ratio \({M}_\mathrm{g}/{M}_{\star }\); however, Kannappan et al. (2013) find that \({M}_\mathrm{g}/{M}_{\star }\) correlates well with the stellar mass in young stars formed only during the last Gyr, \({M}_{\star }^\mathrm{new}\). Actually, \({M}_\mathrm{g}/{M}_{\star }\) was found to be close to \({M}_{\star }^\mathrm{new}/{M}_{\star }\), which implies routine refueling of star-forming galaxies on Gyr timescales, i.e., implies a continuous gas accretion to maintain SF. The study is based on thousands of objects so it portrays a general property of galaxies. This short time for exhausting the gas is very consistent with the gas-consumption timescales inferred from the KS law [\({\tau }_\mathrm{g}\) in Eq. (2)], of the order of 0.5–2 Gyr (Sect. 2.1). The fact that galaxies have been forming stars along the Hubble time (e.g., Sánchez Almeida et al. 2012), but they consume their gas in only one Gyr, is one of the best arguments in favor of the need for an external gas supply to keep up with the star formation (e.g., Kennicutt 1983; Fraternali and Tomassetti 2012).

3.2 Ionized gas observations

The emission line spectra produced by HII regions surrounding the star-forming regions provide a direct means of measuring the physical conditions of the gas forming stars and, in particular, its metallicity that represents the prime diagnostic for cosmic gas accretion (Sect. 2.4). There are a number of compelling observations of ongoing gas accretion based on such HII-based metallicity measurements.

Metallicity inhomogeneities and inverted gradients. The secular evolution of disk galaxies produces a regular pattern with the metallicity decreasing inside out, i.e., having a negative gradient with galactocentric distance (Vilchez et al. 1988; Edmunds and Greenhow 1995; van Zee et al. 1998; Magrini et al. 2007; Sánchez et al. 2014). The timescale for gas mixing in a disk inside an annulus is fairly short, on the order of a rotational period or a few hundred Myr (Sect. 2.5). Deviations from negative metallicity gradients are usually attributed to the recent arrival of cosmic gas that feeds the star formation. If the gas is accreted through the cold-flow mode (Sect. 2), it is expected to reach the disks in clumps often forming stars already (e.g., Dekel et al. 2009; Ceverino et al. 2010; Genel et al. 2012b). Alternatively, the external gas streams may fuel the disks with metal-poor gas, so that gas mass builds up developing starbursts through internal gravitational instabilities (e.g., Noguchi 1999; Elmegreen et al. 2008; Bournaud and Elmegreen 2009). In any case, the cold-flow accretion is bound to induce metal-poor starbursts.

Metallicity drops associated with intense starbursts may reflect cold-flow accretion. Cresci et al. (2010) were the first to identify this pattern in high-redshift galaxies. The same kind of metallicity drops appear in local tadpole galaxies, where the bright star-forming head of the tadpole often has lower metallicity than the underlying galaxy (see Fig. 6). Sánchez Almeida et al. (2013) interpret this observation as an episode of gas accretion onto the tadpole head. Localized metallicity drops associated with star-forming regions have also been observed in other objects, including gamma ray burst host galaxies (Levesque et al. 2011; Thöne et al. 2014), BCDs (Izotov et al. 2009; Werk et al. 2010; Sánchez Almeida et al. 2014) and dwarf irregular galaxies (Haurberg et al. 2013). Variations of metallicity among HII regions located at the same galactrocentric distance are not unusual even in large nearby spirals (Bresolin et al. 2012; Li et al. 2013); some of these variations could come from localized accretion events.

Fig. 6
figure 6

Top Images of three tadpole galaxies characterized by having a bright peripheral clump on a faint tail. The images have been taken from the SDSS database (Abazajian et al. 2009), and are displayed with an inverted color palette so that the background sky looks white, and the intrinsically blue galaxies appear reddish. The red line shows the orientation of the spectrograph slit used to measure metallicity variations, and the horizontal scales on the upper left corner of the panels correspond to 5 or 10 arcsec as indicated. Bottom Oxygen abundance variation across the galaxies on top. The vertical solid line represents the center of rotation, whereas the vertical dotted lines indicate the location of maxima in SFR. Note the existence of abundance variations, with the minima coinciding with the regions of largest SFRs. The thick horizontal solid line indicates the solar metallicity. Adapted from Sánchez Almeida et al. (2013)

Secular evolution produces negative metallicity gradients, but some spirals show reverse gradients, where the metallicity is lowest in the inner galactic regions. Examples are given by Queyrel et al. (2012), who point out that \(15\,\%\) of their galaxies at \(z=1.2\) show such reverse gradients, especially those objects with the lowest metallicities. This observation may be due to averaging out metallicity drops in inner regions, or other artifacts caused by the limited angular resolution (e.g. Yuan et al. 2013). Alternatively, it may also be interpreted as produced by fast inflows within the disk giving gas to the central regions. Metal-poor gas deposited in the outskirts can be transported outside-in by instabilities or some type of tidal interaction (Combes 2008, 2014; Elmegreen et al. 2012a). The same mechanism of gas transport is able to explain the presence of metal-poor gas in the narrow-line region of a nearby QSO found by Husemann et al. (2011). It may also account for the finding by Moran et al. (2012) that 10 % of the galaxies with regular metallicities exhibit a sharp downturn in metallicity at the edge of the disk. Surprisingly, the magnitude of the outer drop is correlated with the fractional HI content of the galaxy. The recent stellar mass growth at the edge of the galaxies is apparently due to the accretion or radial transport of gas from beyond the stellar disk.

High metallicity of quiescent BCDs.  BCDs are high surface brightness targets relatively easy to detect. The luminosity of these galaxies is dominated by one or several young starbursts. However, most if not all BCDs contain host galaxies with old stars too (e.g., Papaderos et al. 1996; Cairós et al. 2003; Corbin et al. 2006; Amorín et al. 2007). The dominant starburst is so intense that it cannot be sustained for long; therefore, the BCDs have to be in a transient phase. Consequently, there must be many local galaxies in the pre or post BCD phase, i.e., many quiescent BCDs (or, for short, QBCDs). The BCD host galaxies should show up best outside of their starburst regions. Masking out these regions, Amorín et al. (2007, 2009) were able to characterize their photometric properties. Using the typical host colors and magnitudes as proxies for QBCD properties, Sánchez Almeida et al. (2008) searched the SDSS-DR6 archive for QBCD candidates. They turned out to be rather common: one out of three local dwarf galaxies is of this kind, and there are some thirty of them per BCD galaxy. Their main properties, including their luminosity functions, are consistent with the BCDs being QBCDs observed during a starburst phase in a duty cycle where the quiescent phase lasts 30 times longer than the active phase. This interpretation presents a difficulty, though: the gas-phase metallicity of the QBCDs is systematically higher than the metallicity of the BCDs. This cannot happen in a closed-box evolution, where the precursor galaxy always has lower metallicity than the follower, so that QBCDs could not be precursors of BCDs. The problem naturally disappears if almost every BCD phase is preceded by the advent of fresh metal-poor gas that triggers the star-formation episode. Moreover, such gas infall triggering explains why the stellar metallicities of BCDs and QBCDs agree, even though their gas-phase metallicities do not (Sánchez Almeida et al. 2009). The stars of BCDs and QBCDs are statistically the same because only a small fraction of galaxy stellar mass is produced in each starburst. Their gas differs because BCDs have just rejuvenated their ISM. Keeping in mind that 30 % of all local dwarfs are QBCDs, gas infall must be a common phenomenon. These findings are consistent with the recent results by Zhao et al. (2013).

Metallicity threshold. Local galaxies with ionized gas metallicity smaller than \(0.1\,Z_\odot \) are rare. They are usually called extremely metal poor (XMP). The recent compilation by Morales-Luis et al. (2011) rendered only 140 such objects, all of them with metallicity above \(0.01\,Z_\odot \). The existence of this threshold has been known for a long time since the prototypical XMP galaxy IZw 18 is close to the limit (some \(0.03\,Z_\odot \)), and its singularity was acknowledged more than 40 years ago (Sargent and Searle 1970). Despite repeated efforts to find galaxies more metal poor (e.g., Terlevich et al. 1991; Izotov et al. 1999; Kunth and Östlin 2000) the 1 % lower limit metallicity remains today (Izotov et al. 2005; Kunth and Lebouteiller 2011). Several explanations have been put forward to account for this minimum metallicity: the self-enrichment of the HII region used for measuring (Kunth and Sargent 1986), the metal abundance of the proto-galactic cloud (Kunth and Lebouteiller 2011), the metallicity threshold set by the ejecta from population III stars (Audouze and Silk 1995; Thuan and Izotov 2005), technical difficulties for metallicity determinations below a threshold (Papaderos et al. 2008), and others. None of them seem to be fully compelling. However, the accretion scenario provides a natural explanation for this long-lasting problem. Numerical simulations predict the cosmic web gas to accumulate metals from the outflows of dwarf galaxies (Sect. 2.3). These contributions add up along the Hubble time so that at redshift zero the cosmic web metallicity has to be at the few percent level (Sect. 2.4), which is precisely the observational threshold. This is the metallicity to be expected if the SF in XMPs is driven by gas directly accreted from the cosmic web.

Nitrogen and Oxygen in green-pea (GP) galaxies.  GPs are star-forming galaxies which receive this name because of their compactness and green color in SDSS composite images (Cardamone et al. 2009). The color is produced by an unusually large [OIII]\(\lambda \)5007 Å  emission line redshifted so as to contribute to the g-band color. They have some of the highest specific SFRs in the local Universe, able to double their stellar masses in a fraction of Gyr. GPs are low-metallicity outliers of the mass–metallicity relationship (Amorín et al. 2010, 2012a). Detailed analyses of their emission lines reveal complex kinematical structures with several components coexisting in only a few kpc (Amorín et al. 2012b). Even though GPs have low oxygen metallicity, they present an overabundance of \(\mathrm{N}/\mathrm{O}\) which is typical of aging stellar populations. This puzzling observation is naturally explained if GPs have recently received a major flood of low-metallicity gas (Amorín et al. 2010, 2012a). Then the mixing with metal-poor gas reduces the metallicity (i.e., O/H), but the ratio between metal species (N/O) remains as in the original high-metallicity ISM. The motions of a galaxy in the N/O vs O/H plane due to gas infall have been modeled by Köppen and Hensler (2005), who point out that large excursions require the infall gas mass to be larger than the gas present in the galaxy, with the infall rate exceeding the SFR. We note that GPs are not special but just extreme cases in the continuous sequence of local star-forming galaxies (e.g., Izotov et al. 2011).

4 Accretion inferred from stellar observations

Morphology–metallicity relationship. There is a relationship between the morphology of the galaxy as inferred from broad-band imaging (thus tracing stars) and the metallicity of the star-forming gas. It has several manifestations, the most conspicuous one being the association between cometary shape and extremely metal-poor galaxies (Papaderos et al. 2008; Morales-Luis et al. 2011; Munoz-Tunon et al. 2014). In a systematic search for XMP galaxies in SDSS-DR7, Morales-Luis et al. (2011) find that 75 % of them have either cometary shape or are formed by chained knots. Likewise, from the comprehensive catalog of 140 known XMPs used by Filho et al. (2013), 80 % have cometary structure or two or multiple star-forming regions. For reference, only 0.2 % of the star-forming galaxies in the Kiso survey are cometary (Elmegreen et al. 2012b). Even if surprising, XMPs seem to be the extreme case of a common relationship between morphology and metallicity followed by the bulk of the star-forming galaxies in the local universe. Reichard et al. (2009) measure lopsidedness in a sample of \(2.5 \times 10^4\) nearby galaxies from SDSS. At a fixed mass, the more metal-poor galaxies are more lopsided—see Fig. 7. Whatever process causes lopsidedness, it is associated with low-metallicity gas in the galaxies. This non-trivial observational result is naturally accommodated within the gas accretion scenario (e.g., Ceverino et al. 2012 and Sect. 2). Extreme lopsidedness is produced by off-center large starbursts, fed by gas accretion either directly or indirectly—directly if the gas arrives to the disk ready to form stars or indirectly if the gas is accumulated until disk instabilities trigger SF. Thus, low metallicity and lopsidedness come together naturally. The process has to be quite common to be responsible for the lopsidedness in the large dataset explored by Reichard et al.

Fig. 7
figure 7

Stelar mass–metallicity relation for the most lopsided (the dashed lines) and the least lopsided (the solid lines) galaxies in the sample of \(2.5 \times 10^4\) nearby galaxies from SDSS studied by Reichard et al. (2009). The three lines of each type correspond to the 25, 50, and 75 % percentiles. The most lopsided galaxies have a metallicity deficit of 0.05–0.15 dex compared to the least lopsided galaxies of the same \({M}_{\star }\). The deficit at low mass is greater than at high mass. Oxygen abundance is used to parameterize metallicity, and \({M}_{\star }\) is given in solar mass units

Kinematical distortions. Galaxies are, to first order, axisymmetric systems. However, they frequently show kinematical distortions with respect to an axisymmetric velocity pattern. When the distortions are significant but the underlying axisymmetric structure remains identifiable, the best explanation is often the recent accretion of a gas-rich object or a gas stream onto a pre-exiting galaxy. For example, polar-ring galaxies are composed of a central component (usually an early-type disk galaxy) surrounded by an outer ring or disk made of gas, dust and stars, which orbits nearly perpendicular to the plane of the central galaxy (Whitmore et al. 1990; see also Fig. 8). The polar ring itself is gas rich, with a gas fraction corresponding to \(\sim \)30 % of the baryonic mass, suggesting that polar-ring galaxies have just accreted a large amount of gas (Combes et al. 2013) and new stars are formed in situ. Polar rings can be formed through galaxy interaction and merging, but most likely through accretion from cosmic filaments (e.g., Finkelman et al. 2011; Pizzella et al. 2013; Blasco-Herrera et al. 2013). Kinematically distinct inner polar gaseous disks appear common in disk early-type galaxies; their juxtaposition with old stellar nuclei suggests that they may be remnants of gas accretion that occurred prior to the main gas accretion in the galaxy (Sil’chenko and Moiseev 2014; Corsini et al. 2012). Polar-ring metallicities of 0.1–0.4 \(Z_\odot \), lower than the metallicities in the parent galaxies, are consistent with cold accretion (Spavone et al. 2011).

Fig. 8
figure 8

SDSS color images of polar-ring galaxies from Combes et al. (2013). The scale bar is 10-arcsec long, and the rings are indicated with small arrows to guide identification. The central object is usually an early-type gas poor galaxy, but the ring itself is gas rich. Some galaxies have giant HI polar disks with very weak stellar counterpart (e.g., Moiseev et al. 2011)

Often galaxy disks show a number of kinematically distinct components like counter-rotating bulges (Prada et al. 1996), counter-rotating disk stars (Vergani et al. 2007; Coccato et al. 2011), and SF regions kinematically decoupled from the rest of the galaxy (Sánchez Almeida et al. 2013; Koleva et al. 2014). These features are expected from numerical simulations of minor mergers (e.g., Balcells and Quinn 1990; Immeli et al. 2004); however, they also arise in hierarchical galaxy formation scenarios even in the absence of merging. Algorry et al. (2014) model a disk galaxy fed by two distinct filamentary structures with opposite spins. They produce counter rotating stars that are not dragged along with the gas but mostly produced in situ. Tidal streams or little tails are also kinematically distinct components, and they turn out to be quite common in the local universe. At least 6 % of the local galaxies show distinct stream-like features, and a total of 19 % show some sort of faint tail (e.g., Miskolczi et al. 2011; Martínez-Delgado et al. 2010). They are thought to be leftovers of tidally disrupted gas-rich satellites on their way to reach the center of the global gravitational potential. A study by Matthews et al. (1998) indicated a correlation between optical and HI asymmetries in isolated galaxies, which could result from cold gas accretion.

The highly organized distribution of satellites surrounding the MW and M31 has been long noticed (e.g., Lynden-Bell 1983). The best explanation seems to be that the dwarf satellite galaxies fell into the gravitational potential along only one or two filaments (Li and Helmi 2008; Angus et al. 2011). Using a high-resolution dark-matter simulation of the local group, Libeskind et al. (2011) concluded that the satellites of both MW and M31 were accreted anisotropically onto their haloes, entering the virial radius from a specific direction with respect to the large-scale structure. These conclusions are confirmed in other simulations of M31 dwarfs (Goerdt and Burkert 2013; Sadoun et al. 2013), MW dwarfs (Nichols et al. 2011; Lovell et al. 2011), and in observations of dwarfs around NGC 3109 (Bellazzini et al. 2013).

Star-formation history of dwarf galaxies. The variation of the SFR with time is often very bursty in late type galaxies, even if they are isolated. Episodes of large star formation are intertwined with long quiescent phases. This result is inferred using fitting techniques on integrated galaxy spectra (e.g., Cid Fernandes 2007), color-magnitude diagrams of resolved stellar populations (McQuinn et al. 2010a), and statistical arguments involving active and quiescent BCDs (Sánchez Almeida et al. 2008). Convulsive SF histories fit in well the cold-flow accretion scenario. Models predict the process to be intermittent, so if gas accretion drives star formation, then the SFR is expected to be bursty (Sect. 2). A number of factors conspire to make the effect more clear in dwarfs. They are actively forming stars at present, so that the bursts are young and luminous, and they provide SF histories with good time resolution. Outflows are far more important in dwarfs, and they quench star formation forcing long inter-burst periods. Forming massive galaxies by cold-flows requires the contribution of many discrete accretion events; therefore, statistical fluctuations in their arrival time tend to cancel, giving rise to a smooth SF history. The lower the galaxy mass the less effective the statistical averaging, and dwarfs tend to have a more spasmodic SFR.

Even though individual HII regions last for a few Myr (e.g., Mas-Hesse and Kunth 1999; Harris et al. 2004), the SF episodes of a galaxy as a whole do not shut off within this timescale but they last for several hundred Myr (Dohm-Palmer et al. 1998; McQuinn et al. 2010b; Hidalgo et al. 2011). This relatively long duration of the burst is consistent with a single gas accretion event which suddenly increases the gas but which requires a much longer gas-consumption timescale to transform it into stars (\({\tau }_\mathrm{g}\sim 1\,\)Gyr; Sect. 2.1).

G dwarf problem. There is a long-known deficit of sub-solar metallicity G dwarf stars in the solar neighborhood (van den Bergh 1962; Schmidt 1963; Lynden-Bell 1975). This so-called G dwarf problem has been amply discussed in the literature, with solutions ranging from changes in the initial mass function (IMF) to inhomogeneous star formation (Caimmi 2008, and references therein). Among them, a continuous metal-poor gas inflow feeding star formation seems to be the preferred one (Edmunds 1990, 2005). The argument dates back to Larson (1972), who pointed out that star-formation maintained by metal-poor gas accretion self-regulates to produce a constant gas-phase metallicity close to the stellar yield, which implies close to the solar metallicity (Sect. 2.1). Therefore, the apparent deficit of sub-solar metallicity G dwarfs is actually an excess of solar metallicity G dwarf stars formed over time out of an ISM always near equilibrium at approximately the solar metallicity. Interestingly, the G dwarf problem is not exclusive to the MW but is known to happen in other galaxies as well (e.g., Worthey et al. 1996). The enhanced deuterium fraction in the Galaxy is also consistent with this scenario (e.g., Tsujimoto 2011), and chemical evolution models cannot produce the abundances observed in other stars or the abundance gradients without extensive and continuous accretion of fresh metal-poor gas (e.g., Schönrich and Binney 2009).

5 Scaling laws as evidence for metal-poor gas accretion

A number of observational properties characterizing large samples of local star-forming galaxies can be explained if the star-formation is driven by metal-poor gas accretion. The gas infall explanation provides a simple physical unifying mechanism, even though often it is not the only explanation of each individual observation. The very existence of general laws or trends implies that the underlying mechanism has to be something fundamental, since it affects not just a few objects but the bulk of the star-forming galaxies. Some of these general properties are discussed elsewhere in this work and will not be repeated here; in particular, the short gas-consumption timescale compared with the age of the stars (Sect. 3.1), the large metallicity of quiescent BCDs (Sect. 3.2), the metallicity–morphology relationship (Sect. 4), and the similarity between the mass in young stars and mass of gas (Sect. 3.2).

5.1 The stellar mass–metallicity–SFR relationship

Galaxies are known to follow a mass–metallicity relationship, where the larger the stellar mass the higher the metallicity (e.g., Skillman et al. 1989; Tremonti et al. 2004; Gallazzi et al. 2005). The relationship presents a significant scatter that has been recently found to be associated with the present SFR in the galaxy (Mannucci et al. 2010; Lara-López et al. 2010; Yates et al. 2012; Pérez-Montero et al. 2013; Andrews and Martini 2013; Zahid et al. 2013). Specifically, for galaxies with the same stellar mass, the metallicity decreases as the current SFR increases. This new relationship is often referred to as the fundamental metallicity relationship (FMR, Mannucci et al. 2010), and is shown in Fig. 9. The mass–metallicity relationship is commonly interpreted as due to variations of the star-formation efficiency with galaxy mass, and/or to galaxy mass-dependent metal-rich outflows (e.g., Lee et al. 2008; Ellison et al. 2008). The former implies that low-mass galaxies produce less stars for their gas, and so remain more metal poor, whereas the latter relies on the metal-rich SN ejecta to be preferentially lost to the IGM by low-mass galaxies. Neither of these two mechanisms, however, predicts the observed dependence of metallicity on the SFR. The observed anti-correlation between metallicity and SFR can be qualitatively understood if the star-formation is preferentially triggered and sustained by the inflow of metal-poor gas. The arrival of new gas simultaneously drops the ISM metallicity and increases the SFR. This idea was already advanced by Mannucci et al. (2010), and it seems to work also quantitatively as shown in the next paragraphs.

Fig. 9
figure 9

Stellar mass–metallicity–SFR relationship, or FMR, as observed by Mannucci et al. (2010). Left oxygen abundance vs \({M}_{\star }\) for galaxies with the same SFR. SFRs are color coded as indicated in the inset. Given a galaxy mass, galaxies of lower metallicity present higher SFR. Right oxygen abundance vs SFR for galaxies of the same mass. The stellar mass is color coded according to the inset. Given a SFR, galaxies of lower metallicity have lower mass. The relationship tends to saturate at the high-mass end, where all galaxies have the same metallicity independently of the mass and SFR. \({M}_{\star }\) is given in \({M}_{\odot }\) and SFR in \({M}_{\odot }\,\hbox {year}^{-1}\)

Several recent numerical and analytic works explain the FMR within this framework of gas infall forcing SF. It is important to acknowledge that such an explanation implies a time variable infall rate, which moves the galaxy system out of the stationary-state. Otherwise, in a gas-consumption timescale (\(\sim \) \(1\) Gyr), the galaxies reach an equilibrium characterized by a metallicity independent of the infall rate [see Eq. (11)]. The stationary-state metallicity depends only on parameters set by stellar physics and on the mass loading factor \(w\) [i.e, the ratio between the outflow rate and the SFR; see Eq. (3)]. Since the gas has to overcome the gravitational pull to escape, \(w\) is expected to be a strongly varying function of galaxy mass. This dependence of \(w\) on the depth of the gravitational well (as parameterized by \({M}_{\star }\)) seems to be the key ingredient giving rise to the observed mass–metallicity relationship (e.g., Garnett 2002; Finlator and Davé 2008; Peeples and Shankar 2011). Since \(Z\propto {M}_{\star }^{1/3}\) at low stellar mass, Davé et al. (2012) conclude that \(w\propto {M}_{\star }^{-1/3}\), as expected if the outflows are produced by momentum driven winds.

Brisbin and Harwit (2012) describe the FMR with an intrinsically bursty model which is always out of equilibrium. Galaxies receive metal-poor gas parcels of different masses that are instantaneously mixed up with the existing ISM. This arrival dilutes the metallicity of the gas and triggers star formation, with the two parameters set by the received gas mass and thus correlated. The authors show that at fixed \({M}_{\star }\), the observed relationship between metallicity and SFR follows the scaling to be expected from this model. The explanation works for most of the galaxies with \({M}_{\star } \le 2 \times 10^{10}\,{M}_{\odot }\), and many with masses above this threshold and large radii.

Dayal et al. (2013) explain the FMR by forcing a secular deviation from the stationary state, so that given a \({M}_{\star }\), those systems that happen to have larger gas masses are also those with higher SFR and lower \(Z\). The reason why two galaxies with same \({M}_{\star }\) have different gas masses can be pinned down to their different ages, so the youngest is the one with the largest gas mass. Both inflows and outflows are required to reproduce the observed relationship, but the outflows dominate by far.

Lilly et al. (2013) work out a model galaxy whose main properties self-regulate due to the short gas-consumption timescale. Although more sophisticated, it is very much in the spirit of the simple description given in Sect. 2.1. The model galaxy is near the stationary state, but the gas supply available to form stars is allowed to change with time. This drives the system out of the stationary state and provides a dependence of the metallicity on the SFR and mass gas. The authors successfully fit the FMR by Mannucci et al. (2010, in our Fig. 9), allowing both \(w\) and the gas-consumption timescale to vary with \({M}_{\star }\). As in the case of Dayal et al. (2013), the deviations from the stationary state are set by the galaxy age.

Yates et al. (2012) use the semi-analytical model L-Galaxies by Guo et al. (2011) to explain the FMR. Thousands of individual galaxies are taken from purely dark-matter cosmological numerical simulations. Baryons that follow the dark matter are added, implying that a non-stationary clumpy gas accretion drives the system. Mass loading factors that depend on \({M}_{\star }\) are included. The model reproduces the main observational trends, including an apparent turnover of the mass–metallicity relationship at very high stellar masses. Figure 10 shows the evolution of four prototypical model galaxies in the \(Z\) vs \(M_\star \) plane. It illustrates how the FMR naturally emerges in this seemingly complex picture. There is a global quasi-stationary drift up and to the right, as the galaxies gather mass and so decrease their outflow losses. On top of this trend, galaxies move down and up at an almost constant stellar mass. First they move down in response to the arrival of fresh gas, and then quickly recover the stationary-state metallicity and move back up. This is particularly clear in the galaxy of lowest mass in Fig. 10 (\(\log [{M}_{\star }/{M}_{\odot }]=8.55\), brown line and symbols). The stationary-state metallicity is given by the upper envelope of the \(Z\) vs \({M}_{\star }\) relationship. Obviously, the downward excursions are accompanied by bursts of star formation, giving rise to the observed FMR when many galaxies at different phases of the cycle are represented in the \(Z\) vs \({M}_{\star }\) plane.

Fig. 10
figure 10

Evolution of four model galaxies from \(z=2\) (open circles) to 0 (bullets) according to the semi-analytical models by Yates et al. (2012). Galaxies of final stellar mass \(\log ({M}_{\star }/{M}_{\odot })=8.55, 9.49, 10.91\) and 11.06 are shown in brown, orange, blue and red, respectively. The full present-day population is shown in grey for reference. Galaxies move up and to the right as they gather more mass and reduce their outflows. In addition, sudden metallicity drops are produced by the arrival of cosmic gas ready to form stars

Forbes et al. (2013) present a simple model to understand the genesis of the FMR. The scatter arises from the intrinsic scatter in the accretion rate, but may be substantially reduced depending on the timescale on which the accretion varies compared to the timescale on which the galaxy loses gas mass. They show that observational constraints on the scatter can be translated into constraints on the galaxy-to-galaxy variation in the mass loading factor, and into the timescales and magnitude of stochastic accretion onto star-forming galaxies. They infer remarkably small scatter in the mass loading factor, \(<0.1\) dex, and that the scatter in accretion rates is smaller than expected from numerical simulations.

The parameterization of the FMR by Mannucci et al. (2010), seems to hold until \(z<2\), and then it changes substantially at higher redshift (e.g., Mannucci et al. 2010; Yabe et al. 2012; Ly et al. 2014; Troncoso et al. 2014; Cullen et al. 2014). Variations are expected if the relationship is caused by cosmic gas accretion since accretion rates and IGM metallicities change over time. Thus, the variation with redshift of the FMR provides a powerful diagnostic tool to evaluate the evolution of the accreted gas along the history of the universe (Forbes et al. 2013; see also Sect. 8).

N/O is independent of SFR at a given \({M}_{\star }\). Unlike the metallicity, the ratio between the observed N and O does not seem to depend on SFR (see Pérez-Montero et al. 2013; Andrews and Martini 2013). This lack of SFR dependence is consistent with the relation between metallicity and SFR being maintained by episodic metal-poor inflows. The advent of fresh gas triggers star formation and drops the metallicity, but it does not change the pre-existing relative abundance between metals.

5.2 The stellar mass–metallicity–gas mass relationship

Bothwell et al. (2013) point out that the FMR relationship among stellar mass, metallicity, and SFR described in Sect. 5.1 is just a consequence of a more fundamental relationship where the SFR is replaced with the HI gas mass. The authors find the HI-based relationship cleaner, and without the saturation at high masses, where irrespectively of their SFR, all massive galaxies have the same metallicity (Fig. 9, left panel). A similar anti-correlation between HI mass excess and metallicity has been found by Robertson et al. (2013). Hughes et al. (2013) also find the anti-correlation between metallicity and gas mass at fixed stellar mass in a volume-limited sample of 260 nearby late-type galaxies. Interestingly, the relationship is nearly invariant to the environment when going from clusters to the field. This finding indicates that internal evolutionary processes, rather than environmental effects, shape the observed relationships.

According to the theoretical models put forward to explain the FMR in Sect. 5.1, a relationship among stellar mass, metallicity, and gas mass is to be expected. Given the FMR, it follows from the KS relation which states that the gas mass sets the SFR and vice versa [Eq. (2)]. Thus, the FMR and the relationship discussed in this section are just two renderings of the same underlying physical principle, namely, that galaxies are driven out the equilibrium mass–metallicity relationship by sudden bursts in the inflow rate. These changes increase the HI mass, increase the SFR, and decrease the metallicity of the ISM, all at once.

5.3 The mass–metallicity–size relationship

Based on some 44000 SDSS galaxies, Ellison et al. (2008) found a relation among \({M}_{\star }\), specific SFR, and galaxy size (as parameterized by the half-light radius). They found that at fixed \({M}_{\star }\), physically smaller galaxies are also more metal rich. The metallicity changes by 0.1 dex when the galaxy size changes by a factor of 2. The authors discard biases due to the finite size of the central region used to estimate metallicities, and to the Hubble type dependence of the radius. A similar relationship between size and metallicity was also found at \(z\sim 1.4\) by Yabe et al. (2012).

This non-trivial observational result is, however, a natural outcome of the gas accretion driven SF process. In the stationary state the metallicity is mainly set by the mass loading factor [\(w\) in Eq. (11)], which changes systematically with halo mass, that is to say, with the depth of the gravitational potential well from which the baryons have to escape. The mass–metallicity relationship is interpreted considering that the halo mass scales with \({M}_{\star }\) (Sect. 5.1). However, the gravitational binding energy also depends on the distance of the matter to the center of the gravitational well. At fixed mass, winds escape easier from larger galaxies. Thus, they are expected to have larger mass loading factors. If the mass loading factor depends on mass through the escape velocity, then it scales as mass/size. A factor 2 increase in size is equivalent to a factor 2 decrease in mass, and this scaling is consistent with the observed 0.1 dex metallicity drop when either the mass decreases a factor of 2 or the effective radius increases by this amount.

6 Gas accretion and star formation at high redshift

Most of the observational evidence for gas accretion put forward so far has been concentrated on the low-redshift universe. Theory predicts that cold gas accretion is particularly important at high redshift, when DM haloes are low mass and the accreted cosmic gas remains cold and ready to form stars (Sect. 2). Thus, the high-redshift universe corresponds to an epoch of galaxy assembly and high SFR. Here, we review observational evidence emphasizing the high-redshift aspects not addressed elsewhere in the paper. We include a section on the role of mergers, just to complement the statement made in Sect. 1 that mergers play only a subordinate role in galaxy growth outside dense environments.

6.1 Star-formation history of the universe

The star-formation rate over the history of the universe has been studied since the mid-90s (e.g., Lilly et al. 1996; Madau et al. 1996; Steidel et al. 1999; Ouchi et al. 2004; Madau and Dickinson 2014). It requires observing faint objects at high redshift and is thus one of the primary drivers for building larger telescopes with adaptive optics and infrared sensitivity. Recent observations of the variation of the cosmic SFR density with redshift are summarized in Fig. 11 (from Bouwens et al. 2011). This diagram includes a candidate redshift \(z\approx 10\) galaxy detected in a dropout search in the Hubble Ultra Deep Field. The diagram also includes SFR density determinations at \(z\simeq 7\) and \(z\simeq 8\) from Bouwens et al., and values from earlier studies at \(z<4\). Dust corrections are applied and are already negligible by \(z\simeq 7\) (Oesch et al. 2010; Bouwens et al. 2010, 2009). Note how the SFR steadily increases with time in the early universe until reaching a maximum at an age of 2.5 Gyr (\(z\sim \) 3–2).

Fig. 11
figure 11

SFR density (dark orange-shaded region) and luminosity density (blue-shaded region) in the universe over the last 13.2 Gyr. The left and right axes refer to the SFR and the luminosity, respectively. Various symbols correspond to various sources in the literature as detailed in the paper by Bouwens et al. (2011) from which the plot was taken

In a complementary work, Heavens et al. (2004) analyzed the fossil record of the current stellar populations in nearly \(10^5\) nearby galaxies. This allowed them to reconstruct the SFR density along the age of the universe for galaxies of different masses independently. The results are shown in Fig. 12. The inferred star-formation history differs according to the (present) galaxy mass so that the larger the stellar mass the earlier their stars were formed. High- and low-mass galaxies have very different SF histories. In particular, the global SFR density is driven by the behavior of the most massive systems (cf., Figs. 11 and 12), and galaxies with \({M}_{\star }<3\times 10^{10}\,{M}_{\odot }\) today produced their stars at constant SFR back to at least \(z\sim 3\).

Fig. 12
figure 12

SFR density as a function of look-back time (lower \(x\) axis) or redshift (upper \(x\) axis) for galaxies of different stellar masses. For clarity, the curves are offset vertically, successively by 0.5 dex, except for the most massive galaxies, which are offset by an additional 1 dex. Note the clear trend for galaxies with larger present-day stellar mass to have formed their stars earlier. The bulk of the SFR at \(z \simeq 0.5\) comes from galaxies with present-day stellar masses in the range 3–30\(\times 10^{10}\, {M}_{\odot }\). The figure was taken from Heavens et al. (2004)

Both the global history (Fig. 11) and the differences among galaxies of different masses (Fig. 12) are well reproduced by cosmological numerical simulations in which most galaxies grow by cold-flow accretion. The agreement with the global SF history (Fig. 11) can be attributed to DM halo growth as reflected in Eq. (12): at very high redshift the haloes grow slowly because of their low mass and their shallow gravitational potential. At low redshift there is little DM available. The two opposing terms conspire to yield a maximum halo growth at \(z\sim \) 2–3 [Eq. (14)]. The cosmic star-formation history is well reproduced by cosmological numerical simulations including baryons. For example, Schaye et al. (2010) systematically vary details of the modeling to determine the dominant physical processes responsible for the SF history. After a large number of simulations that comprise the OverWhelmingly Large Simulations Project, theoretical diagrams match the observations. The resulting SFR is limited at high redshift by the build-up of dark-matter haloes; it reaches a broad maximum at intermediate redshift, and then decreases at lower redshift. The decrease at late times is due to the quenching of SF by lower cooling rates in hotter and lower density gas, in addition to gas exhaustion and self-regulated feedback from stars and black holes. Similar results are provided by, e.g., White and Frenk (1991), Hernquist and Springel (2003), Somerville et al. (2008), Crain et al. (2009), and Choi and Nagamine (2009). Schaye et al. (2010) stress that without AGN feedback it is difficult to match the steep decline in the cosmic SFR below \(z=2\). However, it is not yet clear whether feedback from massive stars can solve the problem. The role of stellar feedback through winds and SNe is an active topic of research at this moment.

Galaxies of different masses follow very different SF histories (Fig. 12). Low-mass galaxies have had a more uniform SFR, a fact also well captured by simulations (e.g., Fontanot et al. 2009; Stringer et al. 2009).

6.2 The role of mergers

Gas accretion and feedback, rather than mergers, are the primary processes responsible for the evolution of the cosmic SFR density. This is clear from numerical simulations which point out that accretion of cold gas is the dominant growth mechanism by about an order of magnitude over mergers (e.g. Wang et al. 2011; Combes 2013 see also see Sect. 1). Observations seem to favor this view too.

Galaxies at \(1<z<3\) are often clumpy disks (e.g. Glazebrook et al. 1995; Abraham et al. 1996a, b; van den Bergh et al. 1996; Cowie et al. 1995; Im et al. 1999; Elmegreen et al. 2004, 2005, 2007b, 2009; Förster Schreiber et al. 2009 with large SFR in excess of 100 \({M}_{\odot }\,\hbox {year}^{-1}\) (e.g. Bauer et al. 2011). If mergers were responsible for the enhanced star formation, observations should show double nuclei and tidal features, which are indeed observed in some galaxies but not in these clumpy types (Elmegreen et al. 2007a). Unfortunately, there is no direct evidence of gas accretion in the clumpy galaxies; in one system at \(z=\)1.6, UDF 6462, the metallicity map shows an overall value of about 0.5 \(Z_\odot \) with a central concentration and an outward decrease (Bournaud et al. 2008). The negative gradient is consistent with regular inside-out star formation with no excess of metal-poor gas in the inner regions. Other high-\(z\) galaxies show positive gradients, though (see Sect. 3.2 and Queyrel et al. 2012; Jones et al. 2013).

\(\hbox {H}\alpha \) emitters, detected from a flux excess in the Spitzer/IRAC 3.6-\(\mu \hbox {m}\) band, comprise more than 70 % of the galaxies with redshifts \(3.8<z<5\). Shim et al. (2013) find that the rest-frame UV to optical morphologies for half of them do not show any signs of mergers or tidal interactions. They have large \(\hbox {H}\alpha \) equivalent widths despite their relatively old stellar population age, which suggests that \(\hbox {H}\alpha \) emitters are producing stars continuously at a constant rate, rather than through multiple bursts invoked by major mergers. Their continuous star-formation rate, relative isolation, and number density are consistent with star formation driven by gas infall.

Conselice et al. (2013) find that the observed merger rate alone cannot explain the mass growth rate of massive galaxies \(({M}_\star > 10^{11}\,{M}_{\odot })\). An additional gas accretion of \(90\,{M}_\odot \,\hbox {year}^{-1}\) is needed. Such accretion would account for 36 % of the stellar mass growth and 58 % of the star formation in the 2 Gyr period from \(1.5<z<3\). This holds for the most massive galaxies, but the need for gas accretion is even more extreme for less massive galaxies. Based on HST imaging, Kaviraj et al. (2013) find that only 27 % of the star-formation budget is hosted by major mergers. Discounting the SFR that even non-interacting galaxies have, the authors estimate an upper limit of 15 % as the contribution of major mergers to star formation in \(z\sim 2\) massive galaxies \(({M}_\star > 10^{10}\,{M}_{\odot })\).

MW-like progenitors also grew by gas accretion from \(z=2.5\) to the present, according to van Dokkum et al. (2013). They study the mass assembly of galaxies expected to have present day \({M}_\star \sim 5\times 10^{10}\,{M}_{\odot }\). In marked contrast to the assembly history of massive ellipticals, mass growth is not limited to large radii. The mass growth takes place in a fairly uniform way, with the galaxies increasing their mass at all radii. After \(z=1\) the growth in the central regions gradually stops and the disk continues to be built up. None of these features reflect the dramatic effects expected from major mergers.

Another indication disfavoring mergers comes from the increase of tadpole or cometary galaxies in high-redshift fields. These galaxies, with a bright head on a faint tail, exist in the local universe as well as at high redshift (van den Bergh et al. 1996), but they are much more common at high redshift where \(\sim \,10\,\%\) of the resolved galaxies in the Hubble Ultra Deep Field have this shape (Elmegreen et al. 2005). Local tadpoles are unusual but, surprisingly, they turn out to be very common among extremely low metallicity dwarfs. These and other properties indicate that they are disk galaxies in early stages of assembly through gas accretion (Sects. 3.2, 4). Low and high-redshift tadpoles show a continuum in their properties (Elmegreen and Elmegreen 2010; Elmegreen et al. 2012b); therefore, the physics behind them is likely to be common. High-\(z\) tadpoles may represent disks being formed by accretion too. Thus, the large number of tadpoles observed at high \(z\) is consistent with an increase in gas accretion to the detriment of mergers. Tadpoles are only a particular sub-set within the BCD family. The abundance of the BCD high-\(z\) counterparts, the clumpy-disk galaxies, also increases with increasing \(z\) (Elmegreen et al. 2005; Swinbank et al. 2009; Genzel et al. 2011; Wisnioski et al. 2012). Therefore, the arguments used for tadpoles supporting gas accretion can be extended to BCDs as well.

6.3 The cosmic web in absorption

Star formation in galaxies is self-regulated by the intimate connection between gas mass and SFR, so that the SFR plus outflows driven by feedback tend to balance the cosmic gas accretion rate (Sects. 2.1, 2.3). These inflows and outflows controlling galaxy evolution show up as intervening absorption systems along the lines-of-sight to background sources, typically QSOs. They include DLAs around galaxies \((\mathrm{N}_\mathrm{HI}>10^{20}\,\hbox {cm}^{-2})\) as well as LLS \((\mathrm{N}_\mathrm{HI}>10^{17}\,\hbox {cm}^{-2})\) and the rest of the \(\hbox {Ly}\alpha \) forest \((\mathrm{N}_\mathrm{HI}< 10^{17}\,\hbox {cm}^{-2})\) (e.g., Wolfe et al. 2005; Rafelski et al. 2011; Kim et al. 2013). Numerical simulations predict \(\hbox {Ly}\alpha \) column densities spanning the range from the \(\hbox {Ly}\alpha \) forest to DLAs, inflow velocities \(\sim 100\) \(\hbox {km}\,\hbox {s}^{-1}\), and metallicities between \(10^{-2.5}\) and \(10^{-1}\,Z_\odot \) (Sect. 2.4). All of these features are present in the observed absorption systems.

DLAs are predominantly neutral gas reservoirs with metallicities that decrease with increasing redshift. From \(0<z<5\), the relationship has a slope of \(-\)0.2 dex per unit \(z\), a large scatter (\(\pm 1\) dex at a given \(z\)), and a lower limit that extends at least to \(Z_\odot /3000\) (Rafelski et al. 2012, 2014; Cooke et al. 2011b). There are also reports of null detection at high redshift: \(Z<10^{-4.2}\,Z_\odot \) at \(z=3.4\) (Fumagalli et al. 2011a, LLS), and \(Z < 10^{-4}\,Z_\odot \) at \(z=7.1\) (Simcoe et al. 2012, LLS/DLA). The \(\alpha \)/Fe ratios of the most metal-poor DLAs are similar to those of MW halo stars with metallicities below \(Z_\odot /100\), suggesting that DLA-like clouds may have been the source of gas that formed halo stars (Cooke et al. 2011a, b). A similarly weak evolution with redshift of the metal content of the IGM had been noted by Pettini et al. (2003, see also Ryan-Weber et al. 2009), who speculated that the observed metals were created by the sources responsible for the re-ionization of the universe or, alternatively, by outflows from star forming galaxies at later times.

Ribaudo et al. (2011) reported a LLS at \(z=0.3\) with very low-metallicity gas at 37 kpc from a near solar-metallicity 0.3 \(L_\star \) star-forming galaxy. This was taken as proof of gas infalling onto the galaxy (see the discussion in Sect. 2.4). From this and other evidence from the literature, Ribaudo et al. concluded that 50 % of the LLSs have such low metallicities (a few percent \(Z_\odot \)) and are near (\(<\) \(100\) kpc) a sub-\(L_\star \) galaxy with solar metallicity. In a subsequent work by this team, also mentioned in Sect. 3.1, Lehner et al. (2013) conducted a survey of HI-selected LLSs to provide an unbiased metallicity study of the CGM at \(z<1\). Their main result is that the metallicity distribution of the LLS is bimodal, with one peak at low metallicity \((0.025\,Z_\odot )\) and the other at high metallicity \((0.5\,Z_\odot )\). The metal-poor gas has properties consistent with cold accretion streams, while the metal-rich gas likely traces winds, recycled outflows and tidally stripped gas. The behavior of the bimodal metallicity is evidence that inflows and outflows do not mix, and that outflows do not prevent inflows, in agreement with numerical simulations (Sect. 2.3).

Multi-temperature gas in galaxy haloes has been reported too. Crighton et al. (2013) detected \(\hbox {Ly}\alpha \), deuterium, OI, and other metals in the CGM of a \(z=2.5\) star-forming galaxy at an impact parameter of 58 kpc. Several components are detected, one of which has low temperature (\(<2\times 10^4\) K) and metallicity \((0.01\,Z_\odot )\), which is taken as a direct detection of a high-redshift cold accretion stream. The CGM of this galaxy seems to be highly inhomogeneous. The majority of the gas is in a cool, metal-poor and predominantly neutral phase, but the majority of the metals are in a highly ionized phase. The multi-phase nature of the haloes is revealed in the study of a LLS at redshift \(\simeq 0.36\) by Tumlinson et al. (2011). They detected high and low ionization species. The strong detected OVI seems to arise in interface material surrounding the photoionized clouds responsible for the low ionization absorption. A cold phase has also been found by Giavalisco et al. (2011) in an overdensity of galaxies at \(z=1.6\), and by Kacprzak et al. (2012b) along the projected minor axis of a star-forming spiral galaxy at z = 0.7. Low temperature is not necessarily equivalent to cold accretion. Cold gas inflow has been unambiguously observed towards 6 galaxies in the redshift range \(0.35<z<1\) by Rubin et al. (2012). In this case the metallicity is supposed to be high and so the authors infer that the material is not from the cosmic web but from dwarf satellites or galactic fountains.

When several lines-of-sight to QSOs are present near a galaxy, the halo gas can begin to be mapped. This is the case for two intermediate redshift galaxies, at z=0.48 and 0.78, which have multiply-lensed QSOs at projected distances of 50 and 33 kpc, respectively (Chen et al. 2014). MgII absorption lines are detected along each of the four sightlines in both galaxies. A comparison of the linewidths and velocities with that of their galaxy disks rules out a disk origin or a wind outflow. Instead, the MgII line kinematics are consistent either with infalling streams from the cosmic web or from tidally stripped gas.

One of the predictions of cosmic gas accretion refers to very massive galaxies and the quenching of star formation. If a galaxy becomes too massive, the cosmic web gas is shock-heated when entering the halo, and it takes a long time before the gas settles down and can be used to form new stars (Sects. 2, 2.2). This seems to be happening in an HI absorbing complex at \(z=\)0.7 with an impact parameter of 58 kpc from an elliptical galaxy with \(10^{13.7}\,{M}_{\odot }\) virial mass (Churchill et al. 2012). Ionization models suggest a cold gas structure surrounded by a hot cloud. The authors interpret the HI complex as a metal-poor filamentary structure being shock heated as it accretes into the halo of the galaxy.

A critically important result from cosmic \(\hbox {Ly}\alpha \) absorption systems is the fact that the average neutral gas density in the universe has not changed much during the last 10 Gyr. From ESO UVES spectra of 122 QSOs and data from the literature, Zafar et al. (2013) find a constant neutral gas mass density in the universe for \(0.1<z<5\), even though star formation varies significantly during that period (Fig. 11). At the peak SFR density \((z\sim 2)\), the timescale to consume all of the cosmic gas in galaxies is only 1 Gyr; therefore, the total neutral gas has to be continuously replenished, partly through galaxy outflows but mostly by recombination of ionized gas. The source of this neutral gas would be the ionized IGM that contains most of the baryons (e.g., Fukugita and Peebles 2004).

6.4 The cosmic web in emission

The cosmic web gas is also detected in emission as \(\hbox {Ly}\alpha \) blobs (LABs; Keel et al. 1999; Steidel et al. 2000; Francis and McDonnell 2006; Ouchi et al. 2009). Cold-flow streams contain partly ionized gas undergoing continuous recombination and should produce a hydrogen emission line spectrum (Sect. 2.4). Goerdt et al. (2010) determine the \(\hbox {Ly}\alpha \) flux to be expected from the cold streams that fed galaxies at high redshift. Model MW haloes at \(z=2.5\) have a peak \(\hbox {Ly}\alpha \) surface brightness of \(2\times 10^{-17}\) erg cm\(^{-2}\) s\(^{-1}\) arcsec\(^{-2}\), sizes from 50 to 100 kpc, and luminosities between \(10^{43}\) and \(10^{44}\) erg s\(^{-1}\). These characteristics agree with the LABs, primarily observed at redshifts \(2<z<3\). The number of known LABs is still not very large. For example, a narrow-band imaging survey with the Subaru/Suprime-Cam revealed 14 LAB candidates with a mayor axis diameter larger than 100 kpc (Matsuda et al. 2011). Their shapes range from circular to filamentary. The LAB sample shows a possible morphology–density relationship: filamentary LABs are in average density environment while circular ones reside in both average and overdense environments. Matsuda et al. point out that the more filamentary LABs may relate to cold gas accretion and the more circular ones may relate to large-scale gas outflows.

The cosmic web gas also emits through fluorescence of \(\hbox {Ly}\alpha \) photons originally produced by a relatively nearby source such as a powerful starburst galaxy or a luminous QSO (Cantalupo et al. 2012). Figure 13 shows the \(\hbox {Ly}\alpha \) image of the UM287 nebula at \(z=2.3\) taken from Cantalupo et al. (2014). In the figure the nebula appears broadly filamentary and asymmetric, extending mostly on the eastern side of QSO \(a\) up to a projected distance of about 55 arcsec or 460 kpc, which is well beyond the virial radius of any plausibly associated dark-matter halo. Therefore the nebula traces intergalactic gas. Fluorescent \(\hbox {Ly}\alpha \) photons have also been observed by Rauch et al. (2011) as an elongated structure at \(z=3.3\) with a peak surface brightness around \(10^{-17}\) erg cm\(^{-2}\) s\(^{-1}\) arcsec\(^{-2}\). Several of these \(\hbox {Ly}\alpha \) emitting structures without continuum counterparts have been found by Cantalupo et al. (2012) near a hyperluminous QSO at \(z=2.4\).

Fig. 13
figure 13

\(\hbox {Ly}\alpha \) image of the UM287 nebula. The location of the radio quiet QSO UM287 is labeled with \(a\). The color map and the contours indicates, respectively, the \(\hbox {Ly}\alpha \) surface brightness (upper color scale) and the signal-to-noise ratio per square arcsec aperture (lower color scale). The extended emission spans a projected angular size of 55 arcsec or 460 kpc, which is well beyond the virial radius of any plausible associated dark-matter halo and therefore traces intergalactic gas. The object marked with \(b\) is an optically faint QSO at the same redshift \(z\sim 2.3\). The large distance between the two QSOs and the very broad morphology of the nebula argue against the possibility that it originates from an interaction between the two QSO host galaxies. The work and the figure are from Cantalupo et al. (2014)

7 Fraction of the star formation sustained by cosmic gas accretion

So far we have been citing evidence for gas accretion driving SF. The question arises as to what is the actual contribution of this cosmic web gas to the observed SF; that is, what is the fraction of SFR in gas that has not previously been inside other stars compared to SFR in gas that has been reprocessed in the galaxy? From a theoretical point of view, the fraction of recently accreted gas involved in star formation must be very high. Equation (10) shows that in a quasi-stationary state more than half of the gas mass participating in any typical star-formation event comes directly from cosmological infall; it is not gas ejected from previous star-formation episodes in the galaxy. Theory also tells us that the fraction depends very much on the galaxy tendency to lose mass through winds, so that the larger the losses the higher the fraction of cosmological gas needed to maintain the SF. The fraction reaches 90 % for a mass loading factor \(w=5\) typical of a galaxy with \({M}_{\star }\simeq 10^9\,{M}_{\odot }\) (see Sect. 2.3). This section collects a few estimates of this fraction, i.e., of the percentage of star formation sustained by gas accretion. The list is not exhaustive but the number is limited mainly because there are only a few estimates of this parameter in the literature. In general, observations support the theoretical expectations, but the issue is far from settled.

Kaviraj (2014) estimates the contribution of minor mergers to the cosmic SF budget but, in our context, minor mergers are equivalent to gas accretion events. Neither observations nor numerical simulations can easily distinguish a gas-rich merger from a starless gas clump (Sect. 2). Kaviraj computes the fraction of the SFR associated with each Hubble type using a sample of 6500 SDSS-Stripe 82 galaxies. He assumes that all SF in early types is due to an external gas supply, because most of their stars were formed so long ago that the debris from those stars render very little gas at this moment. Early types provide only 14 % of the current SFR despite the fact that they account for 50 % of the stellar mass (Fig. 14). If two galaxies have the same mass and the same environment, then they should have the same cosmic gas accretion rate, independently of their Hubble type. Under this premise, he finds that at least 21 % of the SF activity in late types is due to accretion. Adding up the contributions from early and late types, he concludes that at least 35 % of the star formation is due to external accretion. This figure represents a lower limit since it assumes that early and late types have available similar gas supplies, which underestimates late-type gas resources.

Fig. 14
figure 14

Cosmic star formation budged at \(z<0.07\) split by morphological type. It is corrected for Malmquist bias; therefore, they represent the SF in a fixed volume. Early-type galaxies (E/S0) account for 14 % of the SFR although they contain 50 % of the stellar mass. Taken from Kaviraj (2014)

Conselice et al. (2013) study the mass growth of massive galaxies \({M}_\star >10^{11}{M}_{\odot }\) at \(1.5<z<3\). They estimate the evolution of stellar mass in these systems from the observed SFRs and the amount of stellar and gas mass added due to observed major and minor mergers. The measured gas mass is insufficient to maintain the inferred star-formation history, and the needed additional gas mass cannot be accounted for by gas delivered through minor and major mergers or by recycling of stellar ejecta. The estimates show that during this epoch, and for these massive galaxies, 50 % of the baryonic mass assembly results from gas accretion and unresolved mergers, and 25 % is put into place through existing stars from mergers, with the remainder of the mass in the form of gas brought in with these mergers. As for SF during this epoch, 66 % is the result of gas accretion.

Brisbin and Harwit (2012) model the FMR (Sect. 5.1) assuming that external gas infall produces the observed star formation. All galaxies with \({M}_{\star }<2\times 10^{10}\,{M}_{\odot }\) and many with masses above this threshold follow the model. They conclude that most of the star-forming galaxies with stellar masses \({M}_\star < 2 \times 10^{10}\,{M}_{\odot }\), and many with \({M}_\star > 2 \times 10^{10}\,{M}_{\odot }\), appear to be fed by low-metallicity gas infall.

8 What we understand, and what we do not, and pathways to follow up

Numerical simulations predict that the accretion of metal-poor gas from the cosmic web drives the growth of disk galaxies. They describe galaxies as open systems where gas inflows and outflows determine the gas available to form stars and therefore the global properties of the stellar populations. Observational evidence for gas accretion in galaxies is also numerous although indirect. The gas that falls in or goes out is tenuous, patchy, partly ionized, multi-temperature, and large scale; therefore, it is hard to show in a single observation. A multi-wavelength multi-technique approach is often needed to formulate a compelling case for gas flows associated with SF. Among the many examples given in this paper, we have selected three cases for the sake of illustration: (1) the short gas-consumption timescale compared to the long SF record in most galaxies (Sect. 3.1), (2) the metallicity–SFR relationship, so that at a given stellar mass, the larger the current SFR the lower the metallicity of the gas producing stars (Sect. 5.1), and (3) the large amount of gas hundreds of kpc away from galaxies but with properties related to the closest neighboring galaxy (Sects. 3.1 and 6.3).

The global picture of the interplay between cosmic gas accretion and star formation seems to be understood at a basic level (Sect. 2). In the long term, the gas accretion rate has to balance the SFR since the gas available to form stars is consumed quickly. This balance is self-adjusted by the galaxy modifying the mass of gas available to form stars which, through the KS relation, sets the SFR. The details of the process remain to be worked out, though. They depend on the coupling between physical processes that involve completely different physical scales: from cosmic web structures to molecular clouds and AGN engines.

Many ingredients needed to complete the observational picture remain to be gathered and understood. For example, the large scale of the gas in the cosmic web should be imaged. Emission has been detected with 10-m class telescopes in \(\hbox {Ly}\alpha \) at high redshift, but it may also be observable in \(\hbox {H}\alpha \) in the local universe. Using SFR as a proxy for gas accretion rate, star-forming galaxies can be used to map the gas accretion rate in the universe, near and far. The FMR provides a diagnostic potential that has not been fully exploited yet. Assuming that it is set by cosmic gas infall triggering SF (Sect. 5.1), it allows us to measure various key parameters in galaxy formation including mass loading factors and metallicity of the accreted gas. This is a venue to be explored very much in the vein of the work by Forbes et al. (2013). The neutral gas inflow rate directly observed as HVCs in the MW is one order of magnitude smaller than that required to maintain the SFR (Sect. 3.1). This poses a problem. Several possibilities have been explored (e.g., Sancisi et al. 2008; Joung et al. 2012) but the issue has not been settled yet. Details of the interaction between a cold metal-poor gas stream and a galaxy disk remain to be modeled. Predictions on how this interplay excites starbursts and their metallicities are needed to secure our understand of the FMR (Sect. 5.1). Outflows from dwarfs seem to be the main source of metals in the IGM. However, the mixing processes of these outflows with the IGM are poorly captured by numerical simulations. The cooling of halo gas onto supernova debris in galactic fountains has also been suggested as a source of the metal-poor gas driving SF in the MW and other galaxies (Sect. 2.3). Can this possibility be proved or disproved? Cosmic web gas might also be detected through the Sunyaev–Zeldovich effect imprinted on the Cosmic Microwave Background; this is a promising technique under development now (e.g. Génova-Santos et al. 2013 and references therein).

These and other future research programs will contribute to our understanding of cosmic accretion. They will eventually complete the picture that has been emerging over the last few years, in which cosmic gas accretion plays a fundamental role in sustaining star formation in disk galaxies.