key: cord-0271779-ehn4n3k4 authors: Irodotou, Dimitrios; Fragkoudi, Francesca; Pakmor, Ruediger; Grand, Robert J.J.; Gadotti, Dimitri A.; Costa, Tiago; Springel, Volker; G'omez, Facundo A.; Marinacci, Federico title: The effects of AGN feedback on the structural and dynamical properties of Milky Way-mass galaxies in cosmological simulations date: 2021-10-21 journal: nan DOI: 10.1093/mnras/stac1143 sha: b112e743e5a1940773c8775242f04edd2fb5f790 doc_id: 271779 cord_uid: ehn4n3k4 Feedback from active galactic nuclei (AGN) has become established as a fundamental process in the evolution of the most massive galaxies. Its impact on Milky Way (MW)-mass systems, however, remains comparatively unexplored. In this work, we use the Auriga simulations to probe the impact of AGN feedback on the dynamical and structural properties of galaxies, focussing on the bar, bulge, and disc. We analyse three galaxies -- two strongly and one unbarred/weakly barred -- using three setups: (i) the fiducial Auriga model, which includes both radio and quasar mode feedback, (ii) a setup with no radio mode, and (iii) one with neither the radio nor the quasar mode. When removing the radio mode, gas in the circumgalactic medium cools more efficiently and subsequently settles in an extended disc, with little effect on the inner disc. Contrary to previous studies, we find that although the removal of the quasar mode results in more massive central components, these are in the form of compact discs, rather than spheroidal bulges. Therefore, galaxies without quasar mode feedback are more baryon-dominated and thus prone to forming stronger and shorter bars, which reveals an anti-correlation between the ejective nature of AGN feedback and bar strength. Hence, we report that the effect of AGN feedback (i.e. ejective or preventive) can significantly alter the dynamical properties of MW-like galaxies. Therefore, the observed dynamical and structural properties of MW-mass galaxies can be used as additional constraints for calibrating the efficiency of AGN feedback models. Observational evidence suggests that bars exist in the centres of over half of local spiral galaxies (Eskridge et al. 2000; Aguerri et al. 2009; Nair & Abraham 2010; Buta et al. 2015; Erwin 2018) . From a theoretical perspective, bars can form in isolated galaxies via discs instabilities (Hohl 1971; Ostriker & Peebles 1973; Efstathiou et al. 1982) or in interacting discs through tidal forces (Noguchi 1996; Łokas et al. 2014) , and subsequently grow in mass and size by redistributing angular momentum (Athanassoula 2003) and capturing disc stars (Athanassoula & Misiriotis 2002; Kim et al. 2016) . Numerous studies have identified significant correlations between galactic and bar properties, which reveal causal connections between the structural properties of galaxies, but also take part in a complex interplay with other components. Energetic feedback is the natural culprit for shutting off the formation of stars via (at least) two modes, namely the quasar and the radio mode, which are differentiated by their distinct effect. The former is responsible for directly ejecting gas, whereas the latter for preventing gas from cooling effectively (e.g. Dekel & Birnboim 2006; Fabian 2012; Gabor & Bournaud 2014; Costa et al. 2018 Costa et al. , 2020 Zinger et al. 2020) . This is the reason why AGN feedback has been considered a mechanism responsible for the quenching and formation of some early-type galaxies (ETGs). For example, Dubois et al. (2016) ; Penoyre et al. (2017) and Frigo et al. (2019) showed that AGN feedback is important in order to produce massive slow-rotating ETGs (Emsellem et al. 2007 ) since it prevents them from developing young fast-rotating stellar discs. In lower mass haloes (∼ 10 12 M ), AGN feedback has been regarded as ineffectual, and is therefore often not included in simulations (e.g. Colín et al. 2016; Roca-Fàbrega et al. 2016; Zhu & Li 2016) . However, as we will show below, MW-mass galaxies can also be affected by powerful AGN which plays a fundamental role for their properties (see Su et al. 2021 , and references therein) and regulates the formation of their constituent stellar components and gas reservoirs (Hani et al. 2019; Valentini et al. 2020) . Recent studies have explored the properties of bars in cosmological simulations (e.g. Algorry et al. 2017; Peschken & Łokas 2019; Rosas-Guevara et al. 2020; Reddish et al. 2021; Rosas-Guevara et al. 2021 ). Furthermore, a series of works by Bonoli et al. (2016) ; Spinoso et al. (2017) and Zana et al. (2019) have studied in more detail the link between AGN feedback and bars. Bonoli et al. (2016) showed that adding AGN feedback to the E simulation, promoted the formation of a bar in a MW-mass galaxy, by suppressing the growth of a massive spheroidal component at the centre, whose presence would otherwise stabilise the disc and delay bar formation (Combes et al. 1990a; Athanassoula 2013) . However, theoretical studies have also shown that, after the bar has formed, a classical bulge is expected to amplify the transfer of angular momentum from the bar to the bulge which results in the bar losing angular momentum, slowing down, and becoming stronger (Athanassoula 2003; Saha et al. 2012) . Thus, classical bulges can both delay bar formation and fuel bar growth after the bar has been able to form. While there has been recent work exploring the bar-AGN feedback connection (e.g. Bonoli et al. 2016; Spinoso et al. 2017; Zana et al. 2019; Rosas-Guevara et al. 2020 , there are still a number of open question related to how AGN feedback, and in particular how different modes of this feedback (e.g. ejective versus preventive) affect the dynamics of disc galaxies. In this work, we therefore study the impact of AGN feedback on the structural and dynamical properties of MW-mass galaxies, by exploring in detail the effects of two different modes of AGN feedback in the A simulations, the socalled quasar and radio mode. In particular, we assess to what extent the A AGN implementation affects the growth and properties of the disc, bar, and bulge. For that purpose, we selected three galaxies -two strongly and one very weakly barred -from the A project (Grand et al. 2017 ) and re-simulated each one with two different AGN feedback setups whilst keeping their initial conditions and other physical processes identical to the fiducial model. The A simulations 1 provide an ideal testbed for our analysis, since they produce realistic barred galaxies with prominent boxy/peanut and pseudo-bulges (Gargiulo et al. 2019; Blázquez-Calero et al. 2020a; Fragkoudi et al. 2020 Fragkoudi et al. , 2021 . 1 https://wwwmpa.mpa-garching.mpg.de/auriga/ This paper is organised as follows. In Section 2, we briefly describe the A model and its AGN feedback implementation along with the simulations we use for this study. In Section 3, we present the = 0 morphologies and properties of the galaxies, and analyse the radial profile of the bar strength and that of the stellar distribution. Finally, we estimate the relative contribution of the bar, bulge, and disc component to the total stellar mass by performing photometric 2D decompositions. In Section 4 and Section 5, we analyse the effects of, respectively, the quasar and radio modes of AGN feedback on the temporal evolution of the galaxies. Finally, in Section 6 we discuss our findings in the context of previous results in the literature and summarise our results in Section 7. The A project 2 is a suite of cosmological magnetohydrodynamical zoom-in simulations of isolated MW-mass haloes (Grand et al. 2017 ). These were selected from the dark-matter-only E Ref-L100N1504 cosmological volume (Schaye et al. 2015 ) and re-simulated at higher resolution with the -body, magnetohydrodynamics code A (Springel 2010; Pakmor et al. 2011 Pakmor et al. , 2016 Weinberger et al. 2020) . The simulations incorporate a detailed galaxy formation model which includes primordial and metal-line cooling (Vogelsberger et al. 2013 ), a hybrid multi-phase star formation model (Springel & Hernquist 2003) , supernova feedback in the form of an effective model for galactic winds and mass and metal return from AGB stars and SNIa Grand et al. 2017 ), a redshift dependent and spatially uniform UV background (Faucher-Giguère et al. 2009; Vogelsberger et al. 2013) , magnetic fields (Pakmor & Springel 2013; Pakmor et al. 2014 Pakmor et al. , 2017 Pakmor et al. , 2018 , and a black hole formation and feedback model which we describe in more details below. In this work, we use nine A haloes: three fiducial runs, first presented in Grand et al. (2017) , namely Au-06, Au-17, and Au-18, plus two additional model variants for each one which were simulated for the needs of this study. These variants are as follows: • the NoR (i.e. no-radio) variants have black hole particles (which grow via gas accretion and mergers) and black hole feedback through the quasar mode, but the radio mode feedback is turned off. • the NoRNoQ (i.e. no-radio-no-quasar) variants have their black hole particles, and both quasar mode and radio mode feedback, removed. For this study we use two galaxies, Au-17 and Au-18, which are strongly barred at = 0 and have been extensively studied in previous works (e.g. Grand et al. 2019; Blázquez-Calero et al. 2020b; Fragkoudi et al. 2020; Grand et al. 2020; Fragkoudi et al. 2021 ). In addition, we analyse Au-06 which can be considered unbarred or weakly barred depending on the threshold used (see Section 3.1 for our definition of bar strength), which allows us to draw conclusions about the effects of AGN feedback on unbarred and weakly barred cases, as we discuss in Section 6.3. Throughout this work we use the level-4 resolution (based on the A project nomenclature, Springel et al. 2008 ) which corresponds to dark matter and baryonic particles masses of 3 × 10 5 M and 5 × 10 4 M , respectively. The gravitational co-moving softening length for stellar and dark matter particles is set to 500 ℎ −1 cpc and is set to a fixed value of 250 ℎ −1 pc from = 1 onwards. This is equal to the minimum co-moving softening length allowed for gas cells, while their maximum physical softening length can not exceed 1.85 kpc. For more details on the simulations we refer the reader to Grand et al. (2017) . In the following subsection we describe the AGN feedback prescription in the A simulations. Black holes come into existence by converting the densest gas cell into a collisionless sink particle in Friends-of-Friends (FoF) groups whose mass exceeds 5 × 10 10 ℎ −1 M . The initial (seed) mass is set to 10 5 ℎ −1 M which can increase either by acquiring mass from nearby gas cells or by merging with other black hole particles Vogelsberger et al. 2013 ). The former is described by an Eddington-limited Bondi-Hoyle-Lyttleton accretion (Hoyle & Lyttleton 1939; Bondi & Hoyle 1944; Bondi 1952 ) along with a term to account for the radio mode accretion (see below). Hence, the total black hole accretion rate can be expressed by where the term Edd. represents the Eddington accretion rate which is defined as where is the gravitational constant, BH is the black hole mass, pr is the proton mass, r = 0.2 is the black hole radiative efficiency parameter, T is the Thomson cross section, and is the speed of light. Finally, for both modes the energy ejected from the black hole is given by where BH is given by equation (1) and f = 0.07 is the fraction of radiated energy that thermally couples to the gas. For the quasar mode this energy is injected isotropically as thermal energy into neighbouring gas cells; while for the radio mode (Sijacki et al. 2007) it takes the form of bubbles (with size 0.1 times the virial radius) which are stochastically inflated at random locations in the halo 3 up to a maximum radius of 0.8 times the virial radius. In equation (1), the term BHL represents the Bondi-Hoyle-Lyttleton accretion rate which is defined as where and s are the density and sound speed, respectively, of the surrounding gas, and BH is the velocity of the black hole relative to the gas. 3 Following an inverse square distance profile around the black hole. In equation (1), the term radio represents the radio mode accretion rate which is defined as This term follows a scheme in which first the X-ray luminosity of the halo ( X ) is converted to a radio mode luminosity ( radio ), which is then used to define the radio mode accretion rate. This scheme establishes a self-regulated feedback mechanism by following the process described below. We first measure the X-ray luminosity on a per FoF halo basis by following the observed X-ray luminosity-temperature relation (Pratt et al. 2009 where ( ) and 0 are the Hubble parameter and Hubble constant, respectively, = 6 × 10 44 erg s −1 , and 0 = 5 Kev. Then we follow Nulsen & Fabian (2000) who developed a theory for spherically symmetric accretion of hot gas onto super-massive black holes at the centres of large haloes. This theory connects the accretion rate back to the state of the gas at large distances away from the black hole based on the formula where = 2.5, = 5/3 is the adiabatic index of the gas, B is the Boltzmann constant, vir is the virial temperature, H is the mean mass per gas cell, Λ( vir ) is the cooling function, , e , and H are the mean gas, electron number, and hydrogen number densities, respectively, M = 0.0075 is the Mach number of the gas far away from the black hole, and BH is derived from the observed BHrelation where is the velocity dispersion of stars in the galactic bulge. Lastly, we assume a radio power associated with this radio mode accretion which can be written as where X is the X-ray luminosity of the halo introduced in equation (6) and we define the ratio which tends to increase for larger halos and towards later times. In this section, we investigate the effects of the AGN feedback (or the lack of it) on the = 0 stellar surface densities and bar strengths (Section 3.1) and on the total stellar mass (Section 3.2) and its distribution (Section 3.3). contain results for the fiducial halo, the NoR, and the NoRNoQ variant, respectively. Each row contains a face-on (top panel) and an edge-on (bottom panel) projection. A notable difference between each fiducial halo and its two variants is the distribution of stellar particles in the central regions which reflects dynamically distinct components. For example, we can see that removing AGN feedback from a weakly barred galaxy (Au-06) gives rise to the formation of a bar, which when viewed edge-on reveals a prominent peanut bulge (see Laurikainen & Salo 2016 , for a review). This characteristic X-shaped feature has been studied in numerous observed (Whitmore & Bell 1988; Mihos et al. 1995; Bureau et al. 2006; Laurikainen & Salo 2017 ) and simulated galaxies (Combes & Sanders 1981; Combes et al. 1990b; Pfenniger & Friedli 1991; Martinez-Valpuesta et al. 2006 ) and its origin has been connected with either vertical resonance orbits with 2:1 4 frequency ratio (Quillen 2002; Quillen et al. 2014; Parul et al. 2020) or buckling instabilities (Raha et al. 1991; Merritt & Sellwood 1994) . To be able to quantitatively compare the bar strength between the different setups, we follow Athanassoula et al. (2013) and calculate the Fourier components of the face-on stellar density as where is the cylindrical radius, is the mass, is the azimuthal angle of stellar particle , and the sum goes over all stellar particles. Hence, the bar strength is obtained from the maximum value of the = 2 relative Fourier component as and in this work we define a strongly-barred galaxy as one having 2 ≥ 0.3 (Fragkoudi et al. 2020 ) and a weakly-barred as one having 0.2 ≤ 2 < 0.3. We term Au-06 a very weakly barred galaxy since, as we show below, its bar strength reaches values just above 0.2. In addition, we visually check the morphology of each galaxy in order to ensure that a bar structure exists and that the 2 values are not artificially high due to mergers/interactions. Fig. 2 shows the radial profile of the relative amplitude of the = 2 Fourier component at = 0 (top row) along with the evolution of the bar strength (bottom row). In each row the left-hand, middle, and right-hand panels contain results for Au-06, Au-17, and Au-18, respectively. The black, orange, and purple curves show the fiducial halo, the NoR, and the NoRNoQ variant, respectively. In the top row, the vertical dashed black, orange, and purple lines show the radius of the maximum of the 2 profile for the fiducial halo, the NoR, and the NoRNoQ variant, respectively. In the bottom row, the black, orange, and purple arrows point at the bar formation time (which we define as the time at which 2 crosses the weak or strong bar threshold and never drops below it for more than two snapshots) of the fiducial halo, the NoR, and the NoRNoQ variant, respectively. Au-17 and Au-18 -which are both strongly barred galaxiesshow a significant increase on their bar strength when the quasar mode feedback is turned off (i.e. in their NoRNoQ variants), whilst the NoR variants show small deviations from the fiducial haloes. In addition, we see that all NoRNoQ variants form persistently strong bars before the corresponding fiducial halo and the NoR variant, hence the NoRNoQ bars are both stronger and form earlier, as indicated by the arrows in the bottom row of Fig. 2 . Therefore, Fig. 2 suggests that the lack of AGN quasar mode not only can enhance the strength of a bar (as is the case for Au-17 and Au-18) but it can also turn a very weakly-barred galaxy (Au-06) into a strongly-barred one (Au-06NoRNoQ). While the bar strength is increased in the NoRNoQ variants, we find that the length of the bar in these runs decreases. There are several methods one can use to estimate the length of the bar (e.g. Athanassoula & Misiriotis 2002) ; here we use a proxy for the bar length the radius of the maximum relative = 2 Fourier component ( 2 ). While this method underpredicts the true length of bars (e.g. Hilmi et al. 2020) in this work we are only interested in comparing the bar length between different variants of the same halo, and for such purposes the maximum of 2 is sufficient. As can been seen by this method, all NoRNoQ runs produce shorter bars than their fiducial and NoR counterparts. However, as discussed by Erwin (2005) and Gadotti (2011) larger galaxies contain larger bars. Hence, in order to check the robustness of this conclusion and any potential dependence of bar length on disc scale length or morphology (Athanassoula & Martinet 1980; Elmegreen & Elmegreen 1985; Martin 1995) , in Section 3.3 we provide an additional estimate of the bar length (based on photometric decomposition) where we normalise it by the galaxy size. In order to further investigate the co-evolution of bars and black holes, we explore the relation between bar formation and black hole mass evolution (see also Section 4 and Section 5 for the evolution of the AGN feedback energy). We see that both galaxies with AGN feedback and their NoR variants end up at = 0 in good agreement with observations. In addition, we find no obvious relation between black hole mass and bar formation time, in agreement with past theoretical and observational studies (e.g. Goulding et al. 2017; Rosas-Guevara et al. 2020 ). However, as we further discuss in Section 6, we intend to explore in depth how bars affect the growth of black holes in A galaxies, in a future study. In each row the left-hand, middle, and right-hand panels contain results for Au-06, Au-17, and Au-18, respectively. The black, orange, and purple curves show the fiducial halo, the NoR, and the NoRNoQ variant, respectively. In the top row, the vertical dashed black, orange, and purple lines show the radius of the maximum of the 2 profile for the fiducial halo, the NoR, and the NoRNoQ variant, respectively. In the bottom row, the black, orange, and purple arrows point at the bar formation time (see the text for more information) of the fiducial halo, the NoR, and the NoRNoQ variant, respectively. All NoRNoQ variants have stronger (i.e. higher 2 values) and shorter bars than the fiducial and NoR variants and they develop them earlier. As expected, there is a clear trend which shows that all fiducial haloes have lower stellar masses than their NoR variants which in turn have lower stellar masses than their NoRNoQ variants. Arguably, the NoR and NoRNoQ variants move (almost) vertically in the stellarhalo mass plane hence these galaxies end up further away from the abundance matching predictions (Behroozi et al. 2010; Moster et al. 2010) . It is worth noting that, as has been already reported by Grand et al. (2017) (see their Section 5.3), even the fiducial haloes lie above the abundance matching relation, since the AGN feedback can be insufficient in suppressing early star formation. However, having galaxies more massive than what the abundance matching relation dictates can in fact lead to bars which rotate fast (i.e. have a corotation/bar length ratio less than 1.4) which is more consistent with what is found in observations (Fragkoudi et al. 2021 ). Investigating how this additional stellar mass in the NoR and NoRNoQ variants (compared to the fiducial haloes) is distributed in the galaxy is essential in order to understand its dynamical and structural properties. It is well known that massive discs are prone to disc instabilities and bar formation (Efstathiou et al. 1982; Mo et al. 1998; Yurin & Springel 2015; Irodotou et al. 2019 ). On the other hand, a substantial central component tends to delay or even suppress bar formation (Athanassoula 2004 (Athanassoula , 2013 Kataria & Das 2019) . In order to identify which of the above two mechanisms is the dominant one in our galaxies, we analyse below the distribution of stellar mass and calculate the relative contribution of the bar/bulge/disc to the total stellar mass by performing a 2D three component decomposition. The circles, triangles, and squares represent Au-06, Au-17, and Au-18, respectively. The black, orange, and purple colours represent the fiducial halo, the NoR, and the NoRNoQ variant, respectively. The dashed diagonal line shows the baryon conversion efficiency (see the text for more information) and the dotted curve the stellarhalo mass relation from Guo et al. (2010) . For all galaxies the NoRNoQ variant has a more massive stellar component than the NoR, which in turn is more massive than the fiducial galaxy. Fig . 5 shows the radial stellar surface density profiles at = 0. The top, middle, and bottom rows contain results for Au-06, Au-17, and Au-18, respectively. The left-hand, middle, and right-hand columns contain results for the fiducial halo, the NoR, and the NoRNoQ variant, respectively. We only consider stellar particles within 0.1 200 along the disc plane (vertical dashed grey line) and ± 5 kpc in the vertical direction. The total fitted profile (black curve) is a combination of a Sérsic (orange curve) and exponential (purple curve) profile and it was carried out using a non-linear least squares method Grand et al. 2017) . The steepening of the stellar surface density profiles in the very centre as we move from the fiducial to the NoR and NoRNoQ variants indicates the higher concentration of mass in the centre. This behaviour reveals that there is an excess of central mass in these variants which is not present in the fiducial haloes. The fitting data appearing in Table 1 further illustrates this point. As shown in Section 3.2, when either the radio mode or both AGN modes are turned off, the resulting galaxy becomes more massive, as expected. This is reflected in the increase of the stellar mass inferred both from the Sérsic (sixth row) and the exponential (ninth row) profiles, respectively. However, the relative contribution of the disc to the total stellar mass ( / ) presented in the last row shows that all NoRNoQ variants' / ratios decrease. In other words, their central components (i.e. the ones fitted with a Sérsic profile) not only become more massive but also have higher relative contributions to the total stellar mass (see also Appendix C). At the same time these components also decrease their effective radii. Hence, the lack of AGN feedback results in both more massive and more concentrated central distributions of mass. A similar conclusion is hard to draw for the NoR runs since they do not seem to have a consistent behaviour (Au-06NoR, Au-17NoR, and Au-18NoR have, respectively, higher, the same, and lower / with respect to their fiducial haloes). The left-hand, middle, and right-hand columns contain results for the fiducial halo, the NoR, and the NoRNoQ variant, respectively. We only consider stellar particles within 0.1 200 along the disc plane (vertical dashed grey line) and ± 5 kpc in the vertical direction. The total fitted profile (black curve) is a combination of a Sérsic (orange curve) and exponential (purple curve) profile and it was carried out using a non-linear least squares method Grand et al. 2017) . The NoR and NoRNoQ variants have higher concentration of stellar mass in the central regions compared to their fiducial halo. Regarding the disc components (i.e. the ones fitted with an exponential profile), we find that the scale lengths of Au-17 and Au-18 -which are both strongly barred galaxies -increase when the radio mode feedback is turned off since their circumgalactic medium (CGM) gas can cool more efficiently and settle in a more extended disc. A similar trend was found by Grand et al. (2017) (see their Section 4.3) who re-simulated Au-22 with its AGN feedback turned off after = 1, and showed that AGN feedback can suppress the formation of a large stellar disc. However, we see that Au-06 -our very weakly barred galaxy -does not follow the same trend as its NoR variant has a smaller disc (see also discussion below). In order to understand the effect of AGN feedback on the structure of MW-mass galaxies, it is important to identify in which components these additional stellar particles belong to. Do they form a classical or a pseudo-bulge, or are they part of a bar? To address this Table 1 . The fitting parameters from Fig. 5 . The rows represent 1) model names (three fiducial runs, namely Au-06, Au-17, and Au-18, plus a no-radio and a no-radio-no-quasar variant for each one); 2) total stellar mass as defined in Fig. 5 ; 4) Sérsic index; 5) effective radius; 6) inferred Sérsic mass; 8) scale length; 9) inferred disc mass; 10) disc-to-total stellar mass ratio. (Erwin 2015) to perform a 2D bar/bulge/disc decomposition and quantify the change in the relative contribution of each component between the different variants. Since our intention is to compare the fiducial A haloes with their NoR and NoRNoQ variants, we use images that accurately represent the mass distribution, not necessarily ones that mimic observations. Therefore, we fit each galaxy with a combination of the following profiles (see Table 2 ): (i) An elliptical 2D exponential function for the stellar disc component, with the major-axis intensity profile given by where 0 is the central surface brightness, is the distance from the image centre, and ℎ is the scale length. (ii) A 2D analogue of the Ferrers ellipsoid for the bar component where the intensity profile is given by where controls the sharpness of the truncation at the end of bar and 2 is defined as where and describe the position on the image, and are the semi-major and semi-minor axes, respectively, and 0 defines the shape of the isophotes (zero, negative, and positive values result in pure ellipses, disky, and boxy ellipses, respectively; see Athanassoula et al. 1990 ). We note that the intensity is constant on the ellipses and goes to zero outside a specific semi-major axis (sma) value ( bar ). (iii) An elliptical 2D Sérsic function for the bulge component with the major-axis intensity profile given by where e is the surface brightness at the half-light radius ( e ), is the Sérsic index, and n is calculated for > 0.36 via the polynomial approximation of Ciotti & Bertin (1999) and the approximation of MacArthur et al. (2003) for ≤ 0.36. The decomposition parameters are presented in Table 2 and the corresponding plots in Appendix A. The only galaxy with a prominent round central component (low ellipticity) is Au-06NoR (see Fig. A1 ). Hence, we choose an exponential plus a Sérsic profile to accurately model this galaxy; for the remaining galaxies we use an 6 https://www.mpe.mpg.de/∼erwin/code/imfit/ exponential plus a Ferrers profile since they do not appear to have a central spheroidal component. In general, our results are in agreement with the study of Blázquez-Calero et al. (2020a) . However, we find systematically larger disc scale lengths (by a factor of 1.2-1.5) that may be due to the slightly different methodologies employed in producing the images to be fitted and in the fitting itself. For example, Blázquez-Calero et al. (2020a) fit all galaxies in their sample with three components (exponential+Sérsic+Ferrers). As already mentioned in Section 3.1, Au-06 is a weakly barred galaxy which becomes a strongly barred one (i.e. 2 > 0.3) when its AGN feedback is absent. This finding is further supported by its 2D decomposition, since we see that Au-06NoRNoQ's bar is longer and has higher contribution to the total galaxy mass compared to Au-06. Furthermore, even though Au-06NoRNoQ is more massive than Au-06 (see Fig. 4 ) we find that the former has smaller disc scale length than the latter. Hence, we report that when the AGN feedback of our weakly barred galaxy is turned off it results in a galaxy with longer and stronger bar (see Fig. 2 ) while its stellar disc shrinks. 7 On the contrary, for Au-17 and Au-18 (which are both strongly barred galaxies) we find that both the absolute ( bar ) and the normalised ( bar /ℎ) bar lengths of the NoRNoQ variants are shorter than those of the fiducial haloes. Moreover, these variants also have lower / ratios compared to their fiducial runs. In addition, we see that the absence of AGN feedback results in more extended discs which are also more massive, as reported in Section 3.2. In summary, we find that Au-06NoRNoQ develops a bar which is longer than Au-06's, in contrast to Au-17NoRNoQ and Au-18NoRNoQ which form shorter bars than their fiducial haloes. Furthermore, we report that by completely removing the AGN feedback our galaxies become more prone to forming strong bars (i.e. with 2 > 0.3), thus the increased concentration of stellar mass in the centres of the NoRNoQ variants in Fig. 5 does not represents a classical bulge-like population (see also Section 6). These results reveal a significant effect of ejective AGN feedback on the structure of MW-mass galaxies which has been previously thought to be negligible Roca-Fàbrega et al. 2016; Zhu & Li 2016) . This effect is particularly important for large-scale simulations, since different AGN implementations can change the morphology and dynamics of galaxies and consequently the corresponding statistical predictions Table 2 . The fitting parameters from I . The rows represent 1) model names (three fiducial runs, namely Au-06, Au-17, and Au-18, plus a no-radio and a no-radio-no-quasar variant for each one); 3) scale length; 4) disc/total fraction; 6) Sérsic index; 7) effective radius; 8) bulge/total fraction; 10) ellipticity; 11) bar length; 12) bar/total fraction. Horizontal bar symbols indicate that the corresponding profile was not used in the corresponding galaxy. As we saw in the previous section, the different AGN feedback variants give rise to different structural and dynamical properties. In this section, we explore how the quasar mode feedback affects our galaxies' star formation rate histories (Section 4.1) and gas properties (Section 4.2). Fig. 6 shows the star formation rate histories along with the normalised SFR difference between a variant and the fiducial halo defined as The top, middle, and bottom rows contain results for Au-06, Au-17, and Au-18, respectively. The left-hand, middle, and right-hand columns contain results inside spherical apertures with radii 0 < /kpc ≤ 1, 1 < /kpc ≤ 5, and 5 < /kpc ≤ 15, respectively. Each row contains the star formation rate histories (top panel) and the normalised SFR differences (bottom panel). The black, orange, and purple lines represent the fiducial, the NoR, and the NoRNoQ variant, respectively. As expected the NoRNoQ variants have on average the highest star-formation rates since the removed AGN feedback allows the gas to cool quicker and form stars more efficiently (see also the third row of fig. 17 of Grand et al. 2017 ). This effect is more prominent near the centre (0 < /kpc ≤ 1) for all haloes, which shows that the quasar mode has a significant effect on star formation in the inner regions. In the outer disc ( /kpc > 1), the NoR and NoRNoQ variants follow in most cases similar trends, suggesting that the quasar AGN feedback mode has lower impact on the star formation rates away from the centre compared to the radio mode. However, AGN feedback is not the only mechanism that can affect star formation (see also Section 6). As seen in Section 3.1, all NoRNoQ variants have the strongest bars throughout their lifetime and multiple studies that analysed the effects of bars on star formation concluded that (especially strong) bars can have an impact on central star formation (Gavazzi et al. 2015; Fragkoudi et al. 2016; Spinoso et al. 2017; Khoperskov et al. 2018) . Bars drive gas towards the centre due to their non-axisymmetric potential which exerts strong torques on the gas (Shlosman et al. 1989; Peeples & Martini 2006; Cole et al. 2014) . Consequently, as this gas accumulates at the centre it triggers the formation of stars, and the stronger the bar the more centrally concentrated the star formation (Athanassoula 1992; Jogee et al. 2005; Wang et al. 2020 ). In the previous subsection, we saw that the quasar mode feedback reduces the SFR in the central kiloparsec. Here, we explore how the quasar mode affects star forming gas cells that surround the black hole. Fig. 7 shows the gas temperature as a function of galactocentric distance at = 0.05 (see also Appendix B) colour-coded by the star formation rate of each gas cell (non-star-forming gas cells appear grey). The top, middle, and bottom rows contain results for Au-06, Au-17, and Au-18, respectively. The left-hand, middle, and righthand columns contain results for the fiducial halo, the NoR, and the NoRNoQ variant, respectively. In all fiducial haloes and NoR variants there is an almost complete lack of gas cells at the very centre. On the other hand, all NoRNoQ variants not only have central gas cells but in all cases these cells also have the highest star formation rates, and form a characteristic hornlike feature on the gas temperature-distance plane. Furthermore, we see that the inner region ( < 1 kpc) of all fiducial haloes and NoR variants is typically populated by very hot ( > 10 6 K), non-starforming gas cells which are not present in the NoRNoQ variants. These two findings show that the quasar mode AGN feedback heats up and expels the gas cells near the centre, thus it is responsible for suppressing the central star formation. In order to better understand the interplay between the star forming gas cells and the quasar feedback mode, we analyse the evolution of the effective quasar mode energy (i.e. the feedback energy that is able to be absorbed by gas cells. 8 ) 8 Star forming gas cells follow an effective equation of state (eEoS) which describes a cell's thermodynamical properties by connecting its pressure to its density (Springel & Hernquist 2003) . As described in Section 2.1 the AGN feedback in the A simulations has two modes which both inject energy to gas cells. However, this energy will only be absorbed by cells that cool Au − 18 0 < R/kpc 1 1 < R/kpc 5 5 < R/kpc 15 Figure 6 . Star formation rate histories along with the normalised SFR difference between a variant and the fiducial halo (see the text for more information). The top, middle, and bottom rows contain results for Au-06, Au-17, and Au-18, respectively. The left-hand, middle, and right-hand columns contain results inside spherical apertures with radii 0 < /kpc ≤ 1, 1 < /kpc ≤ 5, and 5 < /kpc ≤ 15, respectively. Each row contains the star formation rate histories (top panel) and the normalised SFR differences (bottom panel). The black, orange, and purple lines represent the fiducial, the NoR, and the NoRNoQ variant, respectively. The AGN feedback suppresses star formation more in the centre than in the disc. Gas temperature as a function of galactocentric distance at = 0.05 (see also Appendix B) colour-coded by the star formation rate of each gas cell (non-star-forming gas cells appear grey). The top, middle, and bottom rows contain results for Au-06, Au-17, and Au-18, respectively. The left-hand, middle, and right-hand columns contain results for the fiducial halo, the NoR, and the NoRNoQ variant, respectively. The quasar mode AGN feedback expels gas cells and reduces star formation rates in the central regions. Fig. 8 shows the evolution of the ratio (black curve) between the volume occupied by all gas cells and that by the non-star-forming ones inside a sphere with radius BH 9 (red curve). The left-hand, middle, and right-hand columns contain results for Au-06, Au-17, and Au-18, respectively. Each column contains on the top and bottom row the fiducial halo and the NoR variant, respectively. The black and red sufficiently i.e. that are not in the star-forming regime, while cells that are on the eEoS (i.e. have non-zero star forming rates), will instantaneously radiate away any thermal energy injection (Weinberger et al. 2018 ). 9 BH is the physical radius enclosing the 384 ± 48 nearest gas cells around the black hole. We remind the reader that the quasar mode energy is injected in all cells which are within a sphere with radius BH . curves and shaded regions show the median and 16th-84th percentile range, respectively. We can see that at various times there is a significant fraction of non-star-forming cells within the black hole's vicinity (i.e. within BH ) which allow the quasar mode feedback to be effective. In the A model, black holes eject energy before the cooling is treated and if cooling is inefficient to cool a gas cell down to the eEoS in one timestep, its star-formation rate is set to zero. Hence, the existence of non-star-forming cells indicates that during the next timestep the black hole feedback energy will be absorbed by those cells and not immediately get radiated away. For that reason, the ratio between the volume occupied by all gas cells and that by the non-star-forming ones can be used as a proxy to estimate the effectiveness of the quasar mode feedback in the A simulations. . Evolution of the ratio (black curve) between the volume occupied by all gas cells and that by the non-star-forming ones inside a sphere with radius BH (red curve). The left-hand, middle, and right-hand columns contain results for Au-06, Au-17, and Au-18, respectively. Each column contains on the top and bottom row the fiducial halo and the NoR variant, respectively. The black and red curves and shaded regions show the median and 16th-84th percentile range, respectively. The region around the black hole is populated by more non-star-forming cells when the AGN feedback is present. Fig. 9 shows the evolution of the quasar mode feedback energy rate. The left-hand, middle, and right-hand panels contain results for Au-06, Au-17, and Au-18, respectively. The black and orange curves show results for the fiducial halo and the NoR variant, respectively. The dashed curves show the total quasar mode energy as calculated by the model (see Section 2.1 for more details) and the solid curves show the effective quasar mode energy. We define the effective quasar mode energy as the energy which is able to couple to the gas cells, i.e. which is not lost immediately due to radiative cooling by gas cells on the eEoS. We obtain this effective quasar mode energy by multiplying the total quasar mode energy with the volume ratios of non-star forming gas-to-total gas within a sphere with radius BH , presented in Fig. 8 . For Au-06 the quasar mode energy rate calculated by the model has an almost flat evolution with time while the effective one decreases for < 1 and becomes roughly an order of magnitude lower than the calculated. This trend holds both for the fiducial halo and the NoR variant. On the other hand, Au-17's and Au-18's quasar mode energy rates increase as we go to lower redshifts and are systematically higher than that of their NoR variants. Hence, we see that when the radio mode of our strongly barred galaxies is turned off, the quasar mode becomes on average less effective because the volume around the black hole is now occupied more by star forming gas cells (see Fig. 8 ). This indicates that the radio mode has an indirect impact on the gas in the inner disc via influencing the effectiveness of the quasar mode. In conclusion, we report here that the quasar mode feedback has a significant effect on the gas in the inner regions of MW-mass galaxies. Even though it is not capable of fully quenching our galaxies (as it does for massive ETGs, Martig et al. 2009; Rosito et al. 2019) , it has a significant impact on their morphology and dynamics. Having presented the effects of the quasar mode feedback on galactic properties, in this section, we explore how the radio mode feedback affects galaxies in the A simulations. We remind the reader that the radio mode feedback in A is implemented in a way in which it affects the CGM of the galaxy by stochastically inflating bubbles at random locations to heat up the gas. Fig. 10 shows on the left-hand plot the edge-on projection of the gas temperature for all gas cells inside a 200×200×4 kpc 3 box at = 0. The top, middle, and bottom rows contain results for Au-06, Au-17, and Au-18, respectively. The left-hand, middle, and righthand columns contain results for the fiducial halo, the NoR, and Cold gas Warm gas Hot gas In each stacked bar, the yellow, orange, and red bars represent the fractions of cold ( < 2 × 10 4 K), warm (2 × 10 4 K < < 5 × 10 5 K), and hot ( > 5 × 10 5 K) gas, respectively. The height of each bar represents the 1 Gyr time-averaged value of each ratio. The lack of AGN feedback reduces the hot gas mass and volume ratios. the NoRNoQ variant, respectively. The right-hand plot shows the volume-weighted (top row) and mass-weighted (bottom row) fractional breakdown of gas into different temperature regimes inside 200 . In each stacked bar, the yellow, orange, and red bars represent the fractions of cold ( < 2 × 10 4 K), warm (2 × 10 4 K < < 5 × 10 5 K), and hot ( > 5 × 10 5 K) gas, respectively. The height of each bar represents the 1 Gyr time-averaged value of each ratio. By visually inspecting the left-hand plot we notice that as we move from the fiducial runs to the NoR and NoRNoQ variants the haloes appear to have lower temperatures due to the lack of radio mode AGN feedback. In addition, we see that when we remove the radio mode feedback (i.e. in the NoR variants), the haloes have lower hot gas mass ratios than the fiducial haloes. When we also remove the quasar mode feedback (i.e. in the NoRNoQ variants) the hot gas fraction is further reduced. Furthermore, the NoRNoQ variants have the highest cold gas volume ratios but not necessarily the highest cold gas mass fractions (see below). These features reflect the effect of the radio mode feedback on the gas and indicate that the lack of AGN produces cooler haloes. As discussed in Section 3.3, this results in more extended stellar discs since as shown in Fig. 6 the gas in the outer disc ( /kpc > 1) is able to cool quicker and form stars more efficiently. Lastly, the unexpected decrease in the cold gas mass fractions in Au-06NoR and the NoRNoQ variants of Au-06 and Au-18 can be explained by the enhanced star formation rates reported in Fig. 6 , which result in more frequent star formation feedback that prevents the gas from cooling. Fig. 11 shows the evolution of the radio mode feedback energy rate. The left-hand, middle, and right-hand panels contain results for Au-06, Au-17, and Au-18, respectively. The black curves show the radio mode energy as calculated by the model (see Section 2.1) and the grey curves show the effective quasar mode energy as presented in Fig. 9 . We see that the evolution of the radio mode feedback energy rate shows similar trends with the evolution of the quasar mode shown in Fig. 9 : Au-06 shows a slightly decreasing trend below ∼ 1, whilst Au-17's and Au-18's radio mode feedback energy rates increase as we go to lower redshifts. However, the radio mode is -by roughly an order of magnitude -less energetic than the quasar mode. In summary, as discussed in Section 4.1 and shown in Fig. 10 and Fig. 11 , the radio mode feedback is less powerful and more responsible for heating up the halo whilst the quasar mode has higher impact and mainly affects the inner regions gas of MW-mass galaxies. In this section we briefly discuss our findings and put them in the context of previous studies. In Section 3, we showed that the AGN feedback in the A simulations has a significant effect on the structural and dynamical properties of MW-mass galaxies. In particular, including the quasar and radio mode AGN feedback leads to weaker and longer bars, that form later, or do not form at all (see Fig. 2 ). This finding motivated us to explicitly explore in Section 4 and Section 5 how the quasar (i.e. ejective) and radio (i.e. preventive) mode feedback, respectively, affect the formation and properties of the bar, bulge, and disc. As presented in Fig. 6 and also shown in Grand et al. (2017) , the preventive mode does not have a significant effect on the inner galaxy, but rather suppresses star formation in the outer disc. On the other hand, the ejective mode feedback acts to significantly suppress star formation in the central region of the galaxy. Therefore, turning off this mode of feedback leads to galaxies being more baryon-dominated in the inner regions. However, upon carrying out a 2D bar/bulge/disc decomposition we found that this additional mass is in a disc-like rather than a spheroidal component, which results in a more barunstable disc in which bars form earlier (see Fig. 2 ). A previous study that explored the bar-AGN connection (Bonoli et al. 2016) found that the addition of AGN feedback in the E simulation (i.e. E BH) promotes the development of a bar, since it suppresses the formation of a massive spheroidal bulge at the centre. However, the conclusions we drew in Section 3.3 on the basis of Fig. 5 , Table 1 , and Table 2 indicate that in the A simulations the removal of AGN feedback results in low Sérsic index components at the centre, which do not represent a classical bulge-like population (see also Appendix C). As shown in Fig. 7 , the lack of AGN feedback allows for gas cells -which appear to be able to maintain some angular momentum -to survive in the central regions and settle in a disky component. Given that the dominant feedback mode in the central region is the quasar mode (see Section 2 for a description) and that this mode has been implemented in a similar way (Di Springel et al. 2005) both in the A and the E BH simulations, one would expect to find similar effects of AGN feedback on the formation and properties of bars. However, as described above, we find different results in the two studies, which may be due to a number of different factors. This could include aspects such as different merger histories of the galaxies under study (e.g. a more violent merger history for the E BH galaxy), the different hydrodynamical schemes employed in the simulations (Scannapieco et al. 2012; Roca-Fàbrega et al. 2021) or more complex aspects of the physics (sub-grid) modelling employed in the simulation, such as the star formation and feedback (e.g. Zana et al. 2019 , discussed the importance of the feedback employed in the simulations on the dynamical properties of barred galaxies). Further work would be needed to identify the exact reasons. As briefly discussed in Section 4.1, non-linear interactions between bar-driven gas flows, star formation, and AGN feedback occur in barred galaxies. The non-axisymmetric potential generated by a bar exerts torques on the gas (Shlosman et al. 1989 ) which flows towards the centre, intensifies central star formation (see Fig. 6 ), and also accretes onto the black hole. The latter phenomenon will trigger AGN feedback which will heat up and expel the neighbouring gas cells (see Fig. 7 ) and, according to our findings, would subsequently weaken the bar (see Fig. 2 ). Therefore, it becomes apparent that there is a non-trivial feedback cycle which involves bar properties, gas inflows, and AGN activity: as the bar pushes gas to the centre it triggers AGN feedback which could result in weaker bars and consequently less bar-driven gas inflows. Hence, the impact of AGN feedback on the bar-related gas flows via the formation of a weaker bar can be considered as an additional, indirect AGN feedback mechanism which we intent to study in more detail in a future work. Furthermore, whilst in this work we showed that galaxies with and without radio mode feedback form their bars at different times (i.e. AGN feedback affects the dynamical properties of MW-like galaxies), Fig. 3 revealed that different variants end up in similar regions on the black hole mass -stellar mass plane at = 0. This is an important result if we consider that the black hole mass -stellar mass relation is frequently used when calibrating the free parameters of sub-grid models -especially the efficiency of the black hole accretion/feedback model -in large scale cosmological simulations (e.g. Schaye et al. 2015; Volonteri et al. 2016; Pillepich et al. 2018; Davé et al. 2019; Habouzit et al. 2021) . Therefore, we argue that besides fundamental properties like the size, mass, and star formation rate of galaxies; structural parameters, such as the formation time and properties of bars, contain valuable information which can provide additional constraints when calibrating the efficiency of AGN feedback models, since the morphology of MW-mass galaxies can be highly affected by the choice of parameters and modes of AGN feedback (i.e. ejective or preventive). This work mainly focused on the effects of AGN feedback on two strongly (Au-17 and Au-18) and one very weakly barred galaxy Figure 11 . Evolution of the radio mode feedback energy rate. The left-hand, middle, and right-hand panels contain results for Au-06, Au-17, and Au-18, respectively. The black curves show the radio mode energy as calculated by the model (see Section 2.1) and the grey curves show the effective quasar mode energy which corresponds to the black lines shown in Fig. 9 . The radio mode feedback is at all times weaker than the quasar mode feedback. (Au-06), which can be considered an unbarred galaxy by some barstrength classification methods. For Au-06 we showed that when we removed its AGN feedback a strong, well-developed bar formed and we could clearly call Au-06NoRNoQ a strongly barred galaxy (see Fig. 2 ). A few questions that naturally arise are: Was Au-06 a special case? Would all very weakly barred/unbarred galaxies behave the same? If not, what are the factors that will dictate the fate of unbarred galaxies that lack AGN feedback? Our study showed that when we remove the AGN feedback our galaxies become more baryon-dominated and consequently more bar-unstable, and indeed as Au-06 demonstrated, a weakly barred/unbarred galaxy can become strongly barred. However, whether or not an unbarred galaxy that lacks AGN feedback will form a bar strongly depends on how close that galaxy is to bar instability to begin with, which we cannot reliably assess in advance (e.g. Athanassoula 2008) . Thus, in order to be able to generalise our results to all unbarred galaxies we need to investigate in a systematic way the effects of AGN feedback on unbarred galaxies. Fully exploring this parameter space is beyond the scope of this paper but we intend to further investigate the effects of AGN feedback on all A galaxies in a future study. In this work, we study the impact of the radio (i.e. preventive) and quasar (i.e. ejective) AGN feedback modes on the structural and dynamical properties of barred galaxies. More explicitly, we assess to what extent the A AGN implementation affects the properties of the bar/bulge/disc, and consequently of the galaxy as a whole. For that purpose, we selected three A galaxies -two strongly and one very weakly barred -and re-simulated each one with two different AGN feedback setups: one with no radio mode feedback (NoR) and one with neither the radio mode nor the quasar mode (NoRNoQ). Our main conclusions are as follows: • Different stellar patterns (e.g. bars and boxy/peanut bulges) emerge in the central regions of galaxies with different AGN feedback modes (see Fig. 1 ). Hence, we find that the AGN feedback in A simulations is able to shape the morphology and affect the structural properties of MW-mass galaxies. This is in contrast to some previous studies which considered AGN feedback to have negligible effect on MW-mass haloes, and thus excluded it from their sub-grid models. • While the radio mode feedback does not directly influence the formation and the properties of the bar (it does indirectly by altering the effectiveness of the quasar mode, see Fig. 9 ), the quasar mode can have a significant impact on the structural and dynamical properties of barred A galaxies. We find that the NoRNoQ variants develop stronger bars (i.e. 2 > 0.3) which form earlier than the bars of the fiducial haloes and the NoR variants (see Fig. 2 ). • For all galaxies the stellar masses increase as we move from the fiducial haloes to the NoR and NoRNoQ variants (see Fig. 4 ). This results from the enhanced star formation rates -especially in the centre -due to the reduced AGN feedback (see Fig. 6 ). • While there is an increase of mass concentration in the centre of the NoR and NoRNoQ variants (see Fig. 5 ), this is not found to be in a high Sérsic classical-bulge like component. This result suggests that gas cells which survive and/or accrete in the central regions (due to the lack of the AGN feedback) are able to maintain some angular momentum and settle in a disc component. • We find that the quasar and radio mode feedback affect galaxies in the A simulations in different ways. The quasar mode feedback mostly influences star formation in the central kiloparsec (see Fig. 6 ), by heating up and expelling the gas within the central regions of the galaxy (see Fig. 7 ), i.e. within a sphere with radius BH . Even though most of the gas within that sphere is on the effective equation of state -and thus able to radiate away the energy injected by the quasar mode of the AGN -there is a non-negligible fraction of gas cells which are able to couple to the quasar mode feedback (see Fig. 8 and Fig. 9 ). • The radio mode feedback mostly affects the ability of gas in the halo to cool (see Fig. 10 ). Therefore, the radio mode has most of its effect on star formation in the outer parts of the galaxy at late times (see Fig. 6 ) and in general leads to galaxies with more extended discs (see Fig. 1 and Fig. 5 ). We conclude that AGN feedback can regulate the structural and dynamical galactic properties both directly (by suppressing central star formation) and indirectly (by heating up the halo), and differently affects strongly and weakly barred galaxies. Hence, the way AGN feedback is implemented can play a fundamental role in the properties and morphology of MW-mass galaxies. In addition, we propose that observational studies of the morphology of MW-mass galaxies along with the detailed analysis of their bars can be used as method to quantify the efficiency of ejective AGN feedback. . The bottom four panels show from left to right the ellipticity, position angle, pixel density, and intensity of the -band image (black) and model (red) as a function of the semi-major axis. In Fig. B1 and Fig. B2 we reproduce Fig. 7 for = 0.00 and = 0.02, respectively, to show that even though in all three plots the horn-like features discussed in Section 4.2 consistently appear in all NoRNoQ variants; at = 0.00 Au-17NoR also shows the same feature (i.e. has gas cells on the eEoS). This behaviour shows that despite the fact that its quasar mode is on, it is not ejecting energy in this specific snapshot so star forming gas cells exist in the centre as they do in all NoRNoQ variants. Table C1 shows the fitting parameters of the process described in Section 3.3 but instead of = 0 (see Table 1 ), here we decompose every version of a halo (i.e. the fiducial halo, the NoR, and the NoRNoQ variant) at the earliest time one of the versions formed a bar. Since as we showed in Fig. 2 the NoRNoQ variants form bars earlier than their fiducial haloes and NoR variants, in practice we decompose every version of a particular halo at the time the NoRNoQ variant of that halo formed a bar. This allows us to investigate (i) why do the NoRNoQ variants form bars earlier than their fiducial haloes and the NoR variants, and (ii) what are the structural differences between the NoRNoQ variants and their fiducial haloes and NoR variants at the time the NoRNoQ variants form bars. In Table C1 , we can see that the NoRNoQ variants have the most massive Sérsic and exponential components (as expected since these variants have the highest total stellar masses) and at the same time the lowest / ratios 10 (i.e. highest / ratios). In addition, if we only take into account haloes that are barred at = 0 (i.e. all haloes except for Au-06NoR), we see that the effective radii of the NoRNoQ variants are the smallest. Therefore, these central components apart from more massive are also more centrally concentrated whilst maintain- Table C1 . Similar to Table 1 but instead of = 0 the fitting was performed at the time the NoRNoQ variant of each halo formed a bar. The rows represent 1) model names (three fiducial runs, namely Au-06, Au-17, and Au-18, plus a no-radio and a no-radio-no-quasar variant for each one); 2) lookback time at which the decomposition was performed; 4) Sérsic index; 5) effective radius; 6) inferred Sérsic mass; 8) scale length; 9) inferred disc mass; 10) disc-to-total stellar mass ratio. ing low Sérsic indices. These results agree with what we reported in Section 3.3 and discussed in Section 6, and indicate that these central components are more disc-like components which promote bar instabilities, rather than high-Sérsic index, dispersion-dominated bulges which would have suppressed the formation of the bar. Dark Matter in Galaxies. p Bars and secular evolution in disk galaxies: Theoretical input Coevolution of Black Holes and Galaxies. p Galaxies and their Masks Secular Evolution in Disk Galaxies Observed Properties of Boxy/Peanut/Barlens Bulges The authors would like to thank the anonymous referee for their useful comments which contributed to improve this work. DI would like to acknowledge his family members for their financial support and the European Research Council via ERC Consolidator Grant KETJU (no. 818930). In addition, he gratefully acknowledges the hospitality of the Max Planck Institute for Astrophysics in Garching, Germany, during part of this work, and thanks Jessica May Hislop for valuable discussions. RG acknowledges financial support from the Spanish Ministry of Science and Innovation (MICINN) through the Spanish State Research Agency, under the Severo Ochoa Program 2020-2023 (CEX2019-000920-S). FAG acknowledges financial support from FONDECYT Regular 1211370 and from the Max Planck Society through a Partner Group grant. FAG gratefully acknowledges support by the ANID BASAL project FB210003. FM acknowledges support through the program "Rita Levi Montalcini" of the Italian MUR.This work used the DiRAC@Durham facility managed by the Institute for Computational Cosmology on behalf of the STFC DiRAC HPC Facility (www.dirac.ac.uk). The equipment was funded by BEIS capital funding via STFC capital grants ST/K00042X/1, ST/P002293/1, ST/R002371/1, and ST/S002502/1, Durham University and STFC operations grant ST/R000832/1. DiRAC is part of the National e-Infrastructure.We thank the developers of A (Astropy Collaboration et al. The fitting process begins by producing face-on images for each halo and gaining a first insight into each galaxy's parameters. We do that as follows:(i) We rotate all stellar particles such that the bar is along the horizontal axis. (ii) We create face-on grey-scaled -band images. (iii) We use a Gaussian filter with FWHM = 2 to blur the images, in order to appropriately simulate the effects of seeing in real observations. (iv) We use P (Bradley et al. 2019) to perform isophotal ellipse fitting to the images and estimate the intensity, length, and ellipticity of the bar ( 0 , bar , ), bulge ( e , e , ), and disc ( 0 , ℎ, ) which we provide to I as an initial set of parameters for the corresponding profiles. Fig. A1, Fig. A2, and Fig. A3 contain 2D bar/bulge/disc fits for Au-06, Au-17, and Au-18, respectively. In each figure the top, middle, and bottom plot show the fiducial halo, the NoR, and the NoRNoQ variant, respectively. In each plot the top four panels show from left to right the -band image, model, input/model, and residual produced by