scieee AI-readable full text Open interactive document viewer

Assessing model-based carbon and oxygen abundance derivation from ultraviolet emission lines in AGNs

Pérez Montero, Enrique,Amorín, R.,Pérez-Díaz, B.,Vílchez Medina, José Manuel,García-Benito, Rubén

Abstract

This work has been partly funded by projects Estallidos7 PID2019-107408GB-C44 (Spanish Ministerio de Ciencia e Innovacion), and the Junta de Andalucia for grant EXC/2011 FQM-7058. This work has been also supported by the State Agency for Research of the Spanish MCIU 'Centro de Excelencia Severo Ochoa' Program under grant SEV-2017-0709. EPM also acknowledges the assistance from his guide dog Rocko without whose daily help this work would have been much more difficult. RA acknowledges financial support from ANID Fondecyt Regular 1202007. RGB acknowledges financial support from grant PID2019-109067-GB100.

Full text

MNRAS 521, 1556–1569 (2023) https://doi.org/10.1093/mnras/stad621 Advance Access publication 2023 March 02 Assessing model-based carbon and oxygen abundance deri v ation from ultraviolet emission lines in AGNs E. P ´ erez-Montero, 1 ‹R. Amor ´ ın , 2 , 3 B. P ´ erez-D ´ ıaz , 1 J. M. V ´ ılchez 1 and R. Garc ´ ıa-Benito 1 1 Instituto de Astrof ´ ısica de Andaluc ´ ıa, CSIC, Apartado de correos 3004, 18080 Granada, Spain 2 Instituto de Investigaci ´ on Multidisciplinar en Ciencia y Tecnolog ´ ıa, Universidad de La Serena, Raul Bitr ´ an 1305, La Serena, Chile 3 Departamento de Astronom ´ ıa, Universidad de La Serena, Av. Juan Cisternas 1200 Norte, La Serena, Chile Accepted 2023 February 23. Received 2023 February 23; in original form 2022 October 24 A B S T R A C T We present an adapted version of the code HII-CHI-MISTRY-UV to derive chemical abundances from emission lines in the ultraviolet, for use in narrow line regions (NLR) of active galactic nuclei (AGN). We evaluate different ultraviolet emission line ratios and how different assumptions about the models, including the presence of dust grains, the shape of the incident spectral energy distribution, or the thickness of the gas envelope around the central source, may affect the final estimates as a function of the set of emission lines used. We compare our results with other published recipes for deriving abundances using the same emission lines and show that deriving the carbon-to-oxygen abundance ratio using C III ] λ1909 Å and O III ] λ1665 Å emission lines is a robust indicator of the metal content in AGN that is nearly independent of the model assumptions, similar to the case of star-forming re gions. Moreo v er, we show that a prior determination of C/O allows for a much more precise determination of the total oxygen abundance using carbon UV lines, as opposed to assuming an arbitrary relationship between O/H and C/O, which can lead to non-negligible discrepancies. K ey words: galaxies: acti ve –galaxies: abundances –galaxies: evolution –galaxies: ISM – galaxies: nuclei – galaxies: Seyfert. 1 INTRODUCTION Active Galactic Nuclei (AGN) host one of the most powerful energy sources in the Universe. The intense radiation field emanating from the hot accretion discs around supermassive black holes in galactic centres produces very bright emission lines from the surrounding gas. From this, various physical properties and chemical abundances in these regions can later be inferred up to a very high redshift, which can serve as indicators of the evolution of the universe at different cosmic epochs. The UV region is of outstanding importance in this context. Several bright emission lines produced by AGNs, such as N V , He II , C IV , O III ], and C III ], which are sensitive to the ionization conditions and physical properties (i.e. electron density and temperature) of the warm ISM (e.g. K e wley, Nicholls & Sutherland 2019 ), can be identified in the λ∼1000–2000 Å region. While this range at z ࣠ 2 is typically explored using the Hubble Space Telescope ( HST ; e.g. Rigby et al. 2018 ; Berg et al. 2022 ), these lines are redshifted to restoptical wavelengths at z ∼2–4. Therefore, deep optical spectroscopic surv e ys with ground-based telescopes of 8–10 m class (e.g. Steidel et al. 2003 ; Shapley et al. 2003 ; Lilly et al. 2007a ; Kurk et al. 2013 ; Le F ` evre et al. 2015 ; McLure et al. 2018 ) are typically efficient at detecting the largest samples of UV line emitters (e.g. Steidel et al. 2014 ; Maseda et al. 2017 ; Amor ´ ın et al. 2017 ; Nakajima et al. 2018a ; Le F ` evre et al. 2019 ; Feltre et al. 2020 ; Saxena et al. 2020 , 2022 ; Schmidt et al. 2021 ; Llerena et al. 2022 ).  E-mail: [email protected] Classical methods for determining chemical abundance are instead mostly based on rest-optical emission lines (e.g. Maiolino & Mannucci 2019 ). Ho we ver, for galaxies at z ∼2–3, these are redshifted to the near-infrared (NIR) and detections are often limited to the few bright lines (e.g. Steidel et al. 2014 ; Shapley et al. 2015 ). Joint analysis of the observed rest-UV and rest-optical emission spectra with predictions from detailed photoionization models for both star-forming galaxies (e.g. Gutkin, Charlot & Bruzual 2016 ; P ´ erez-Montero & Amor ´ ın 2017 ; Byler et al. 2018 ) and AGNs (e.g. Feltre, Charlot & Gutkin 2016b ; Nakajima et al. 2018b ; Dors et al. 2019 ; Hirschmann et al. 2019 ; Mignoli et al. 2019 ) thus emerge as powerful diagnostics for the ionization and chemical abundances of galaxies (e.g. Patr ´ ıcio et al. 2016 ; Vanzella et al. 2016 ; Amor ´ ın et al. 2017 ; Byler et al. 2020 ) and pave the way for similar analyses at higher redshifts with the JWST (e.g. Che v allard et al. 2019 ; Rigby et al. 2021 ). The deri v ation of the metal content in the Narrow Line Region (NLR) of AGN galaxies from optical collisionally excited lines (CELs) is much more complex than in the case of star-forming regions, since the direct method (i.e. based on the prior determination of the electron temperature) can significantly underestimate the derived oxygen abundances (e.g. Dors et al. 2015 ), which are often considered as proxies for gas metallicity in galaxies. Instead, there are several studies dealing with the determination of different elemental abundances in AGN based on pure photoionization models (e.g. Storchi-Bergmann et al. 1998 ; Castro et al. 2017 ; Thomas et al. 2019 ) or on models assuming shocks in combination with photoionization (e.g. Dors et al. 2021 ). © 2023 The Author(s) Published by Oxford University Press on behalf of Royal Astronomical Society Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 Model-based abundances in AGN from UV 1557 MNRAS 521, 1556–1569 (2023) In the case of UV emission lines, since direct determination of chemical abundances in AGN is still not reliable, many of the various approaches pursued are also based on photoionization models, including detailed models for individual objects (e.g. Davidson 1977 ; Osmer 1980 ; Gaskell, Shields & Wampler 1981 ; Uomoto 1984 ; Hamann & Ferland 1992 ; Ferland et al. 1996 ; Dietrich & Wilhelm-Erkens 2000 ; Hamann et al. 2002 ; Shin et al. 2013 ; Feltre, Charlot & Gutkin 2016a ; Yang et al. 2017 ). For a large number of objects, other authors propose calibrations of some UV emission line ratios sensitive to chemical abundance in these detailed models (e.g. Dors et al. 2014 , 2019 ), or compare them in model-based diagnostic diagrams (e.g. Nagao, Maiolino & Marconi 2006 ; Matsuoka et al. 2009 , 2018 ). Another strategy suitable for use in large surv e ys is to use a Bayesian-like comparison between the adequate emission line ratios and the predictions from large model grids (e.g. Mignoli et al. 2019 ). This method has the advantage of better quantifying uncertainties and easily specifying the assumptions required when the number of emission lines input is limited. For example, the use of photoionization models, which include various combinations of C/O and O/H has great significance for estimating gas-phase metallicity in cases where very few C lines (e.g. C IV λ1549 Åand C III ] λ1909 Å) UV emission lines can be measured. In this work, we present an adapted version of the code HII-CHI- MISTRY-UV (hereafter, HCM-UV , P ´ erez-Montero & Amor ´ ın 2017 ), originally developed for deriving O/H and C/O from UV emission lines in star-forming regions, for application to the NLR of AGN. The code is based on HCM (P ´ erez-Montero 2014 ), which deals with optical emission lines for deriving O/H and N/O ratios in star-forming regions, and has been extended for use in the NLR of AGN in P ´ erez- Montero et al. ( 2019 ). The abo v e work has shown that when applied to star-forming galaxies, the abundances provided by the HCM version using optical emission lines are in complete agreement with those provided by the direct method, while for AGNs they are in agreement with the expected metallicities at the centres of their host galaxies (Dors et al. 2020 ). This new version of the HCM-UV code is potentially useful for constraining the metallicity of the NLR of AGN up to very high redshift, and also provides a solution to the constraint imposed by using carbon emission lines to derive oxygen abundances, since it also estimates C/O. The paper is organized as follows: In Section 2 , we describe the method for deriving chemical oxygen and carbon abundances in the NLR of AGN from their UV emission lines, based on the code HCMUV . In the same section, we describe our grids of photoionization models and we discuss their validity under different assumptions and for using different sets of emission lines. In Section 3 , we apply the method to a sample of compiled data on UV lines for NLR in AGNs, and in Section 4 , we discuss the results and compare them with other published calibrations based on the same available emission lines. Finally, in Section 5 , we summarize our results and draw our conclusions. 2 DESCRIPTION OF THE METHOD The method discussed in this paper is the adaptation of the code HCMUV , originally developed for use with star-forming objects (P ´ erez- Montero & Amor ´ ın 2017 ), to the NLR of AGN. The extension of different versions of the code for use on AGN has already been done for optical lines by P ´ erez-Montero et al. ( 2019 ) and for infrared lines by P ´ erez-D ´ ıaz et al. ( 2022 ). In this section, we discuss the model grids that the code uses to estimate O/H, C/O, and the ionization parameter (log U ) in these objects, as well as the defined observables based on the most typical UV emission line flux ratios that the code uses to derive these properties using a Bayesian-like methodology. Finally, we discuss how different assumptions for the models and the emission lines used affect the results. The version of the code described here (v. 5.0) along with other versions prepared for use in other spectral domains, is publicly available. 1 2.1 Description of the models The entire grid of models used in HCM-UV was calculated using the photoionization code CLOUDY v.17.01 (Ferland et al. 2017 ), which assumes a point-like central ionization source surrounded by a gas distribution. The models partially correspond to those of the optical version of the code described in P ´ erez-Montero et al. ( 2019 ), taking into account a spectral energy distribution (SED) with two components: one for the Big Blue bump peaking at 1 Ryd, and the other represented by a power law with spectral index αx = −1 for the non-thermal X-rays. For the continuum between 2 keV and 2500 Å, we considered a power law with two possible values for the spectral index αox = −0.8 and −1.2. The first value fits better the emission line fluxes in tailored models by Dors et al. ( 2017 ), while the second value fits better the average value found by Miller et al. ( 2011 ) in a sample of Seyfert-2 galaxies. For the gas, we assumed a filling factor of 0.1 and a constant density of 500 cm −3 , as is typical in the NLRs around type 2 AGNs (Dors et al. 2014 ). As discussed in P ´ erez-Montero et al. ( 2019 ) for the optical version of the code, assuming a higher value by 2 ×10 3 cm −3 does not lead to large deviations in the obtained results. Different grids were calculated considering the criterion of stopping the models and measuring the resulting spectrum as a function of the fraction of free electrons ( f e ) in the last zone (i.e. the outermost with respect to the ionizing source). In some grids, we considered a fraction of 98 per cent and in others a fraction of 2 per cent. All chemical abundances were scaled to oxygen according to the solar proportions given by Asplund et al. ( 2009 ), except for nitrogen and carbon, which are in solar proportion, but whose relation to oxygen was left in the models as an additional free input parameter. Finally, we considered models with a dust-to-gas ratio that assumes the default value of the Milky Way, and also other models that do not consider the existence of dust mixed with the gas. Although a larger variety in the assumptions of dust composition and proportions would be more realistic, since these cannot be constrained from the input emissionline fluxes, these have not been more deeply explored in our grid of models, a v oiding an unnecessarily high number of models in our grids. Overall, the models in each grid cover the range of 12 + log (O/H) from 6.9 to 9.1 in bins of 0.1 dex, and values of log (C/O) from −1.4 to 0.6 in bins of 0.125 dex. In addition, all models consider values of log U from −4.0 to −0.5 in bins of 0.25 dex. This gives a total number of 5865 models for each of the resulting grids. Considering additionally the two possible values of αOX ( −0.8 and −1.2), the two possible values of f e in the outermost zone (2 or 98 per cent) and the existence or absence of dust grains mixed with the gas, we obtain a number of 8 different calculated grids. 1 In the webpage http:// www.iaa.csic.es/ ∼epm/ HIICHI- mistry.html Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 1558 E. P ´ erez-Montero et al. MNRAS 521, 1556–1569 (2023) Figure 1. Relationship between emission line ratio C3O3 and log (C/O) for model sequences with different values of input parameters (left for fixed 12 + log (O/H) = 8.7, and right for fixed log U = −2.0). The solid lines represent models for αOX = −1.2, f e in the outermost zone of 98 per cent and considering dust grains. The other lines change only one parameter with respect to this sequence. The dashed line represents models with αOX = −0.8, the dot–dashed line represents models with f e of 2 per cent, and the thin line represents models without grains. In the left-hand panel, the black dashed line represents the linear fit for models of star-forming galaxies that are in P ´ erez-Montero & Amor ´ ın ( 2017 ). 2.2 The HCM-UV code adapted for AGNs The version of the code we describe here for its use for NLRs in AGNs follows a procedure similar to that used in other versions for other spectral regions, such as the optical (P ´ erez-Montero 2014 ) or the IR (Fern ´ andez-Ontiveros et al. 2021 ). In all cases, the code performs a Bayesian-like calculation that compares certain emission line fluxes and their errors with the results of the models in each grid. Here, we discuss the results obtained with the model grids described abo v e. Ho we ver, this ne w version of the code allo ws the user to use alternative grids as input models that have the same format as the default models. The abo v e comparison performed by HCM-UV to calculate the corresponding final mean values uses as weights for each model the χ2 values of some defined specific emission line ratios that are sensitive to the properties we want to derive, as described in P ´ erez-Montero ( 2014 ). The uncertainties of the derived abundances and U are calculated as the quadratic addition of the weighted standard deviation and the dispersion of the results after a Monte Carlo simulation, using the input errors as random perturbations around the nominal introduced values for each emission flux. The list of UV emission lines allowed as input by HCM-UV , for both SF and AGN, includes: Ly αat λ1216 Å, C IV λ1549 Å, O III ] λ1665 Å, and C III ] λ1909 Å. In addition, the code provides the ability to input optical emission lines H βand [O III ] λ5007 Åto obtain estimates of abundances using emission line ratios that are sensitive to electron temperature, as is the case with 5007/1665 (P ´ erez-Montero & Amor ´ ın 2017 ). Unlike the previous version for star-forming galaxies, this version also includes the emission lines [N V ] at λ1239 Åand He II at λ 1640 Å, since the use of these lines in combination with the other carbon emission lines in the UV can be used to provide estimates of the total oxygen abundance in AGNs, as described in Dors et al. ( 2019 ). In any case, these two lines can also be used as input to the calculation of abundances in star-forming galaxies, since the presence of these lines can be considered a strong discriminating factor in the excitation of the gas when only massive stars are considered. 2.2.1 C/O derivation Following the same procedure as defined for SF objects, the code computes C/O in a first iteration, taking advantage of the fact that the emission line ratio C3O3 depends very little on U . This observable can be defined as already used by P ´ erez-Montero & Amor ´ ın ( 2017 ) for star-forming galaxies to derive C/O: C3O3 = log I(C III ]1909) I(O III ]1665) (1) In Fig. 1 , we show the relation between this parameter and C/O for model sequences with αOX = −1.2 and assuming f e = 98 per cent and grains at various log ( U ) at a fixed 12 + log (O/H) = 8.7 (lefthand panel) and for various C/O values at a fixed log ( U ) = −2.0 (right-hand panel). We also show additional sequences of models with αOX = −0.8, with f e = 2 per cent, and without dust grains to assess how varying these parameters affects this relation. Fig. 1 shows that despite a slight dependence on O/H, U , or αOX , there is a well defined linear relationship between the C3O3 parameter and C/O. Only models without grains seem to predict a slightly lower slope compared to all other sequences. Compared to the linear relation derived in P ´ erez-Montero & Amor ´ ın ( 2017 ) for models of star-forming galaxies, the sequences of the models for AGN are very close, albeit with a slightly lower slope, similar to that obtained for AGN without grains. We conclude that C3O3 appears to be a robust indicator of C/O for AGN galaxies using UV emission lines, and that the code can subsequently be used for estimation. After estimating C/O and its error, the code constrains the model grid to seek a solution for O/H and U in a second iteration. This procedure ensures that C lines can be used without any prior arbitrary assumption about the relationship between O/H and C/O if the latter can be inferred. If C/O cannot be estimated because some of the required lines are not available, the code assumes an expected relationship between O/H and C/O, as is the case for star-forming regions. By default, the code assumes a solar C/N ratio and adopts the empirical relation between O/H and N/O derived in P ´ erez-Montero ( 2014 ) for star-forming objects. Ho we ver, in the current updated version of the code, other relationships can be considered. Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 Model-based abundances in AGN from UV 1559 MNRAS 521, 1556–1569 (2023) Figure 2. Relationship between emission line ratio C34 using the Ly αline and total oxygen abundance for different model series at fixed log (C/O) = −0.4 (left-hand panel) and log U = −2.0 (right-hand panel). The solid lines represent models for αOX = −1.2, f e in the outermost zone of 98 per cent and considering dust grains. The other lines change only one parameter in relation to this sequence. 2.2.2 O/H and U derivation Among the various emission line ratios used in the second iteration to calculate the χ2 weights, the code uses parameter C34, defined as follows: C34 = log I(C IV 1549) + I(C III ]1909) I(H i ) . (2) This parameter was also used for star-forming objects in P ´ erez- Montero & Amor ´ ın ( 2017 ). In this case, I( Hi ) refers to the intensity of the hydrogen recombination emission lines. The closest and brightest object in this spectral range is Ly αat λ1216 Å, but the code also allows the use of H βat λ4861 Å, although in this last case, the extinction correction becomes much more critical. In Fig. 2 , we show the relation between this parameter, taking the Ly αintensity for the parameter, and O/H for some sequences of models from the grid at fixed log (C/O) = −0.4 (left-hand panel) and log U = −2.0. (right-hand panel), with αOX = −1.2, f e = 98 per cent in the last zone and with dust grains. It is noted that the relationship between this parameter and the total oxygen abundance in certain sequences can be bi v alued, since it increases for low values of O/H, remains almost constant and finally starts to decrease when the metallicity is very high. This behaviour is in contrast to that observed in models for star-forming galaxies, where a monotonic increase in the parameter with metallicity is observed throughout the range studied, as discussed in P ´ erez-Montero & Amor ´ ın ( 2017 ). Ho we ver, the metallicity range where the turno v er of the curve is observed depends on the assumed C/O and U , and can be nearly linear for log U = −1.0. In f act, these tw o parameters have a very large influence on the relation of the parameter to the metallicity. Despite the large dependence of this parameter on U or C/O, the models predict a negligible deviation if we consider another harder SED with αOX = −0.8. Ho we ver, the assumption of absence of dust grains seems critical, since C34 shows a much more pronounced bi v alued behaviour when no grains are considered, with very lower values at high metallicities, since Ly αis much more affected by dust extinction. In addition, the inclusion of very low excitation zones also affects the behaviour of this parameter, since Ly αis much more strongly absorbed, so that C34 is much higher for the same O/H. This is consistent with the fact that Ly α1216 λÅis often absorbed by the neutral gas around the ionized gas nebulae and is therefore difficult to detect in many objects. An alternative is to define the same parameter as a function of the line He II at λ1640 Å, which is also used in Dors et al. ( 2019 ). This takes advantage of the fact that this line is often well detected with high excitation in AGN and has less absorption by the surrounding neutral gas. The corresponding observable based on the same lines can be defined as follows, C34He2 = log I(C IV ]1549) + I(C III ]1909) I(He II 1640) , (3) which is also used for the NLR of AGNs galaxies by Dors et al. ( 2014 ) named C43. Ho we ver, in this work, we refer to it as C34He2 to distinguish it from our C34 parameter defined abo v e. The relation between C34He2 and O/H depending on the model is shown in Fig. 3 for the same model series at fixed C/O = −0.4 (left-hand panel) and fixed log U = −2.0 (right-hand panel) and for a value of αOX = −1.2, f e = 98 per cent and with dust grains. Furthermore, as in the previous plots, we show additional sequences with αOX = −0.8, with f e = 2 per cent in the last zone and also without dust grains. As shown, the parameter has a similar trend to that observed for C34: it increases with increasing metallicity, although it enters saturation and begins to decrease at very high O/H values. The metallicity at which this conversion is expected to occur is so dependent on U that it is less pronounced for higher U values. This additional dependence of O/H on U strengthens the basis of the procedure in the code by which these two parameters are calculated simultaneously in this second iteration. The relation between C34He2 and O/H does not appear to change significantly when other harder values of αOX are considered and, as expected, when a larger thickness of the nebula is assumed in the models, since He II , unlike Ly α, is not absorbed by neutral gas. Ho we ver, the models without grains predict much more different values of the parameter for the same O/H value, since the internal extinction of the gas affects the opacity of lines with high excitation, such as C IV ] or He II , leading to higher values of the parameter, in contrast to C34. Another observable that the code can use in this second iteration is also defined and used by Dors et al. ( 2019 ) to derive O/H based on the highly excited emission lines that can be observed in the UV spectra of AGNs. It is the N5He2 parameter, which can be defined Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 1560 E. P ´ erez-Montero et al. MNRAS 521, 1556–1569 (2023) Figure 3. Relationship between C34/He2 emission line ratio and total oxygen abundance for different model sequences at fixed log (C/O) = −0.4 (left-hand panel) and fixed log U = −2.0 (right-hand panel). The solid lines represent models for αOX = −1.2, f e in the outermost zone of 98 per cent and considering dust grains. The other lines change only one parameter with respect to this sequence. Figure 4. Relationship between the emission line ratio N5/He2 and 12 + log (O/H) for model sequences with different values of the input parameters at fixed log (C/O) = −0.4. The solid lines represent models for αOX = −1.2, f e in the outermost zone of 98 per cent and considering dust grains. The other lines change only one parameter with respect to this sequence. The dashed line represents models with αOX = −0.8, the dot–dashed line represents models with f e of 2 per cent, and the thin line represents models without grains. as follows, N5He2 = log I ([ NV ]1239) I ( He II 1640) . (4) In Fig. 4 , we show the relation between this parameter and O/H for model sequences at fixed C/O = −0.4 and varying log U , assuming an AGN SED with αOX = −1.2, a final zone with f e = 98 per cent, and grains. Additional sequences also consider other values for these input parameters. Similar to C34 and C34He2, the N5He2 parameter also shows a strong dependence on U and a bi v alued relationship with oxygen abundance. The parameter has a lower value for lower U , but on the contrary, it does not appear to change the metallicity of the turno v er point. Moreo v er, since it depends on the lines with high excitation, it is more sensitive to the shape of SED, so it has lower values when we vary αOX = −0.8 and does not change significantly for a lower value of f e in the last zone of the models. Finally, the absence of dust grains is not negligible, but the difference is not as large as in the case of C34, due to the same cause. Moreo v er, since N is also a secondary element, N5He2 has a strong dependence on N/O, which can be partially reduced by assuming that C/N remains unchanged in the models, although this is not fully justified since the stellar mass range of the nucleosynthetic production of these two elements is not exactly the same (Henry, Edmunds & K ¨ oppen 2000 ), but can be similarly affected by processes of hydrodynamic gas exchange (Edmunds 1990 ). Changing N/O independently of C/O, in the grids of models, would allow us in principle to explore in more detail the impact of N/O on the final metallicity deri v ation, but the absence of any UV emission-line ratio strictly dependent on N/O, does not allow us to incorporate it to the code and would unnecessarily enlarge the number of models in each grid. As commented, the dependence on C/O of the emission line ratios defined abo v e to deriv e O/H can be reduced by the prior determination of C/O in the first iteration using the C3O3 parameter. As for the excitation, the dependence of the v arious observ ables on it can also be reduced by the C3C4 emission line ratio defined as follows, C3C4 = log I(C III ]1909) I(C IV ]1549) . (5) This ratio is already used by the code for star-forming objects and also by Dors et al. ( 2019 ) for the case of NLRs in AGNs. This ratio was already proposed by Davidson ( 1972 ) as an indicator of excitation in gas nebulae, although Dors et al. ( 2014 ) point out that it also depends on metallicity for low values of log U . The relation of this emission line ratio with the ionization parameter is shown in Fig. 5 for different arbitrary model sequences at fixed log (C/O) = −0.4 (left-hand panel) and fixed 12 + log (O/H) = 8.7 (right-hand panel) and assuming αOX = −1.2, f e = 98 per cent and with grains. As in the previous cases, models with harder SED are also shown with αOX = −0.8, with f e = 2 per cent and also without grains in the figures. As can be seen, higher values of C3C4 indicate lo wer v alues of U for most sequences, except for very high values of O/H, which sho w a bi v alued behaviour. This is a weaker effect compared to the relationship found for the O32 parameter for AGNs using the same models in the optical (P ´ erez-Montero et al. 2019 ), which exhibits bi v alued behaviour at all values of O/H with a maximum value for log U = −2.5. This monotonically decreasing relationship between Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 Model-based abundances in AGN from UV 1561 MNRAS 521, 1556–1569 (2023) Figure 5. Relationship between emission line ratio C3C4 and ionization parameter for different model sequences at fixed log (C/O) = −0.4 (left-hand panel) and fixed 12 + log (O/H) = 8.7 (right-hand panel). The solid lines represent models for αOX = −1.2, the ratio of free electrons in the outermost zone of 98 per cent and considering dust grains. The other lines change only one parameter with respect to this sequence; the black dashed line represents the quadratic fit of Dors et al. ( 2019 ). The vertical dashed magenta line marks the distance assumed for the C3C4 parameter to account for dust in the models for subsequent analysis. C3C4 and U makes it easier for the code to use the grid of models for all values of U . This trend does not change noticeably when we consider a value for αOX = 0.8 or a lower f e for the termination criterion. On the other hand, the C3C4 parameter is very sensitive to the presence of dust grains mixed with the gas. Neglecting the presence of dust in the models results in much lo wer v alues for C3C4. Indeed, the relationship that emerges from these models without dust is similar to the quadratic fit of Dors et al. ( 2019 ), where the authors do not consider dust grains in their models. For this reason, some authors, such as. Nagao et al. ( 2006 ) or Dors et al. ( 2019 ), do not include dust in their models because many of the analysed objects hav e v ery lo w v alues of C3C4. Ho we ver, according to the model sequences shown in Fig. 5 , models with dust cannot be excluded for values of the C3C4 parameter > −0.3, a threshold marked with a red line in the left-hand panel of the figure. In any case, other possible explanations for this very low values of C3C4 cannot be excluded and deserv e future inv estigation, such as the possible existence of photon leaking, already observed in some extreme star-forming galaxies (e.g. Schaerer et al. 2022 ). 2.3 Testing the method with model emission lines To verify the results of our model-based method, we used as input to the code the same emission line intensities predicted by the models to check that we obtain the same chemical abundances and ionization parameters used for them. For this purpose, we also included a 10 per cent uncertainty in the predicted model-based fluxes to simulate the effect of an additional source of error on the estimates. As explained above, the code uses the error of the flux as the standard deviation of a normal distribution of cases around the nominal value to perform a series of iterations that also reveal the associated uncertainty in the results. In the panels of the first row in Fig. 6 , we show the input abundances and U assumed in the models of the grid for αOX = −1.2, a termination criterion when f e = 98 per cent is reached, and with dust grains. These values are compared with the results of the HCM-UV code when the same conditions are assumed and all lines accepted by the code are used. As can be seen, the agreement is excellent for most of the studied ranges (i.e. both the mean offset and the standard deviation of the residuals are less than 0.01 dex), so that both the abundances and the log ( U ) values can be determined using only the emission line intensities. Only for 12 + log (O/H) < 7.5 does the code tend to find solutions that are about 0.1 dex above the correct input value for each model, but still within the error limits (i.e. 0.17 de x). F or v ery high values of log ( U ) (i.e. > −0.8), the code also tends to find results that are below the correct values, with deviations greater than the errors obtained (with a mean of 0.2 dex), but for the rest of the examined range, there is agreement that is better than the associated errors. We also investigate the potential impact in the results of changing the assumed conditions in the library used by HCM-UV . Thus, we ran the code assuming the same conditions as abo v e, but using as input the emission lines predicted by the models when we assume a value αOX = −0.8, and leaving the other parameters equal to those assumed by the code. The corresponding comparisons are shown in the second line of Fig. 6 . In the case of O/H, the mean deviation is larger than the median uncertainty (0.18 dex) only at very low values, although there is also a systematic deviation for O/H > 8.0, in the sense that the code determines O/H values that are 0.1–0.2 dex below the correct values. In contrast to O/H, the mean deviation for C/O is al w ays lower than the obtained uncertainty (0.11 dex) in all ranges. This confirms that C/O can be determined more reliably than O/H when a different ionizing SED is assumed. Ho we ver, the U estimate is more affected by the shape of the SED as it is significantly o v erestimated, especially in the range −3 < log U < −1. In the third line of Fig. 6 , we show the comparisons when we change the truncation criterion in the models used as input to a fraction of free electrons = 2 per cent and leave the other parameters the same. Opposite to the input, the code still considers the same conditions as those assumed in the first case (i.e. with 98 per cent fraction of free electrons in the last model). In this case, when the code assumes a different higher f e value, the main offset occurs at high O/H values, where the code finds solutions about 0.3 dex below the correct input value, proving the importance of the relative intensity of the HI lines to derive metallicity. On the other hand, no large deviation is found for the C/O derivative, but in the case of U the code systematically finds much lower values for log U > −1.0. Finally, in the bottom row of Fig. 6 , we show the comparisons between the input values for models that do not consider dust and the v alues deri ved by the code assuming dust is present. As sho wn, in this situation, the code o v erestimates O/H with a mean offset Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 1562 E. P ´ erez-Montero et al. MNRAS 521, 1556–1569 (2023) Figure 6. Comparisons between the chemical abundances and U assumed in the model grid and the same quantities calculated by HCM-UV when the predicted emission lines are used as input. The panels in the left column show the comparison for 12 + log (O/H), the middle column for log (C/O), and the right column for log U . In all cases, HCM-UV AGN models with αOX = −1.2, f e = 98 per cent and considering grains. In the panels of the first ro w, we sho w the results when the same conditions are assumed for the input; in the second, we change αOX to −1.2; in the third row, we consider f e = 2 per cent; and finally, in the bottom row, without dust grains. The solid red line represents the 1:1 relation in all panels. Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 Model-based abundances in AGN from UV 1563 MNRAS 521, 1556–1569 (2023) Table 1. Median deviations and root mean squares (RSME) of residuals between theoretical abundances and log ( U ) values (AGN model inputs) and estimates from HCM-UV using different sets of emission lines and for different grids. Set of lines Models  OH RSME OH  CO RSME CO  U RSME U All lines All + 0 .01 0 .21 + 0 .02 0 .14 −0 .01 0 .26 Ly α, N V ], C IV ], He II , O III ] λ1665 Å, C III ] All + 0 .08 0 .25 −0 .05 0 .14 + 0 .03 0 .11 N V ], C IV ], He II , O III ] λ1665 Å, C III ] All + 0 .08 0 .25 −0 .05 0 .14 + 0 .03 0 .11 N V ], C IV ], He II , C III ] All + 0 .36 0 .57 – – + 0 .11 0 .34 N V ], C IV ], He II , C III ] O/HC/O const. + 0 .01 0 .15 – – + 0 .01 0 .13 C IV ], He II , C III ] All + 0 .32 0 .64 – – + 0 .04 0 .46 C IV ], He II , C III ] O/HC/O const. + 0 .03 0 .33 – – −0 .03 0 .31 N V ], He II All + 0 .27 0 .66 – – + 0 .08 0 .48 N V ], He II O/HC/O const. + 0 .00 0 .52 – – −0 .00 0 .42 larger than the mean uncertainty (i.e. 0.17 dex) for O/H < 8.0, but underestimates it for O/H > 8.5, albeit with a large spread in each case. For C/O, the deviation between the solutions and the theoretical values is al w ays within uncertainty (about 0.2 de x), e xcept for very lo w v alues for C/O. It is also noted that there is a systematic tendency to find higher C/O values for high input values of C/O, but these deviations are al w ays within errors. Finally, in the case of U , we find better agreement, although the deviations are large for the highest values of U . From these comparisons, it appears that the C/O ratio is more robust than the O/H ratio when the assumed conditions in the models v ary relati ve to those assumed by the code. In the case of O/H, this is especially the case at high metallicities when the assumption about the presence of dust grains is incorrect, while for U , the largest discrepancies are found at very high values in all the comparisons tested. Finally, for log U < −1.5, all discrepancies are found within the derived uncertainties. 2.4 Results as a function of different sets of input emission lines Another important aspect in the e v aluation of our code arises from the fact that it can provide solutions for different sets of emission lines. To this end, in this subsection, we compare the theoretical and resulting abundances, again using as inputs to the code different sets of emission line fluxes with an additional 10. The corresponding mean offsets and standard deviation of the residuals obtained from the code for O/H, C/O, and log U compared to the theoretical values assumed by the models are shown in Table 1 , for different combinations of emission lines that can be given as input to the code, and for different constraints on the model grid used. As shown, when all lines allowed by the code are specified, the mean offsets of the results are better than the mean scatter in all cases. This comparison is the same as that in the first line of Fig. 6 . This comparison is slightly worse when the optical line [O III ] at λ 5007 Å, which is allowed by the code relative to O III λ1665 Åis not provided, but the results still agree better than the associated uncertainties. A similar result is obtained if the emission line Ly α at λ1216 Åis remo v ed, since He II can be used instead. This has no influence on the C/O determination. On the other hand, if the O III ] λ1665 Åis not provided, HCM-UV cannot calculate the C3O3 ratio for the C/O estimate. In this case, very large deviations and errors result for both O/H and log U when the full model grid is used for calculation. In this scenario, the code must assume a certain O/H–C/O ratio to get a better solution for O/H when C-lines are used. As shown in Table 1 , both the mean offsets and the standard deviation for O/H and log U are much better under this additional assumption. Ho we ver, it is important to remember that this relation may be somehow arbitrary or valid for a particular galaxy population and not valid for a particular object. In any case, even assuming such a relationship in the absence of the lines required for the previous derivation of C/O, much better results are obtained if the lines C III ], C IV ], and N V ] are used simultaneously with respect to He II rather than calibrating them individually and in combination. The abo v e results again highlight the importance of a prior determination of the C/O content in order to obtain an accurate determination of the total metal content of the gas, and are in agreement with the results already obtained using the same approach for star-forming galaxies in P ´ erez-Montero & Amor ´ ın ( 2017 ). 3 APPLICATION TO GALAXY SAMPLES We compiled from the literature strong UV narrow emission line fluxes for a sample of AGN consisting of Seyferts 2 (10), quasars (33), quiet radio galaxies (2), highz AGN (1), and highz radio galaxies (96). We take advantage of previous compilation work, (e.g. Nagao et al. 2006 ; Dors et al. 2019 ) of strong UV emission lines in AGN, namely N V λ1239 Å, C IV λ1549 Å, He II λ1640 Å, and C III ] λ1909 Å, but we also include information on the Ly αand [O III ] λ1665 Å emission lines when their measurements are given in the original references. Table 2 shows all the information we found for our sample, as well as the original references. The Seyferts 2 (S2) sample consists of 9 objects taken directly from Nagao et al. ( 2006 ) and one additional galaxy, IZw 92, from Kraemer et al. ( 1994b ). The sample of highz radio galaxies (HZRG) w as tak en directly 2 from the compilation presented by De Breuck et al. ( 2000 ), supplemented by 8 sources observed by Bornancini et al. ( 2007 ) and 9 galaxies analysed by Matsuoka et al. ( 2009 ). Our sample of quasars (QSO) consists of three different types of galaxies: Type II type quasars (11), 10 of them listed by Nagao et al. ( 2006 ) plus J142331.71 −001809.1, recently analysed by Onoue et al. ( 2021 ); extremely red quasars (21) from the compilation of Villar Mart ´ ın et al. ( 2020 ); and one intermediate Type I–II quasar, observed by Lin et al. ( 2022 ). We added to the abo v e list of objects 2 quiet radio galaxies (QRG) observed by Matsuoka et al. ( 2018 ), and a highz A GN (zA GN) whose broad and narrow components were identified by Tang et al. ( 2022 ). Some of the compiled observations were already corrected for Galactic extinction in the original publications. These corrections were not very large [i.e. E ( B −V ) ∼0.01–0.1] due to their relative position on the sky, and do not lead to changes in the resulting 2 From the original list of 167 sources, we omit nine sources observed by Matsuoka et al. ( 2009 ) that provide better accuracy, and 79 sources that do not have enough UV spectroscopic information to be used as input to HCM-UV . Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024 1564 E. P ´ erez-Montero et al. MNRAS 521, 1556–1569 (2023) Table 2. List of UV fluxes for our sample of AGN. Name z Type Ly αN V1239 Å; C IV1549 Å; He II1640 Å; O III ]1665 Å; C III]1908 Å; Ref. (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) NGC 1068 0.004 S2 713 ±100 224 ±41 520 ±80 187 ±29 22 ±8 240 ±35 NA06,SNI86 I ZW 92 0.029 S2 121.2 ±40.3 –25.2 ±8.4 3.84 ±1.28 – – KRA94 CDFS-901 2.578 QSO 3.71e −3 ±6e −5 6.5e −4 ±8e −5 1.97e −3 ±1e −4 1.87e −4 ±9.3e −5 ∗–3.3e −4 ±9e −5 NA06,SKO04 CXO52 3.288 QSO 1.89e −2 ±4e −4 6e −4 ±1.2e −4 3.5e −3 ±2e −4 1.7e −3 ±2e −4 9e −5 ±3e −5 2.1e −3 ±2e −4 NA06,STE02 S82-20 1 3.062 QSO 36.10 ±0.21 1.34 ±0.12 8.67 ±0.05 1.52 ±0.04 0.38 ±0.04 2.04 ±0.04 LIN22 TXS J2334 + 1545 2.480 HZRG 3.1e −2 ±5e −3 7e −4 ±3e −4 ∗1e −3 ±1e −3 – – 8e −3 ±3e −3 BRE00,BRE01 TN J1941-1951 2.667 HZRG 3.7e −2 ±4 −3 –9e −3 ±1e −3 4e −3 ±1e −3 –2e −3 ±1e −3 BOR07 COSMOS 05162 3.524 QRG 7.68e −2 ±1.3e −3 3.89 −3 ±1.95e −3 ∗1.19e −2 ±8e −4 2.6e −3 ±3e −4 – 4.05e −2 ±6.5e −3 MAT18 COSMOS 10690 3.100 QRG 8.1e −3 ±4.1e −3 ∗4.5e −3 ±2.3e −3 ∗2.25e −3 ±6.8e −4 8.2e −4 ±4.1e −4 ∗–1.7e −3 ±5e −4 MAT18 Note. Column (1): name of the galaxy. Column (2): redshift. Column (3): spectral type. Columns (4)–(9): UV emission line fluxes and their errors in 1e −14 erg s −1 cm −2 . Column (10): references: AS88 (Allington-Smith et al. 1988 ), BER81 (Bergeron, Maccacaro & Perola 1981 ), BES99 (Best, R ¨ ottgering & Lehnert 1999 ), BES00 (Best, R ¨ ottgering & Longair 2000 ), BOR07 (Bornancini et al. 2007 ), BRE00 (De Breuck et al. 2000 ), BRE01 (De Breuck et al. 2001 ), CIM98 (Cimatti et al. 1998 ), GK95 (Gopal-Krishna et al. 1995 ), KI93 (Kinney et al. 1993 ), KRA94 (Kraemer et al. 1994a ), LAC94 (Lacy et al. 1994 ), LAC99 (Lacy et al. 1999 ), LIL88 (Lilly 1988 ), LIL07 (Lilly et al. 2007b ), LIN22 (Lin et al. 2022 ), MAL83 (Malkan & Oke 1983 ), MAT09 (Matsuoka et al. 2009 ), MAT18 (Matsuoka et al. 2018 ), MCC90 (McCarthy et al. 1990a ), MCC90b (McCarthy et al. 1990b ), MCC91 (McCarthy 1991 ), MCC91b (McCarthy et al. 1991 ), NA06 (Nagao et al. 2006 ), ONO21 (Onoue et al. 2021 ), RAW96 (Rawlings et al. 1996 ), ROB88 (De Robertis, Hutchings & Pitts 1988 ), R O T97 (Roettgering et al. 1997 ), SIM99 (Simpson et al. 1999 ), SNI86 (Snijders, Netzer & Boksenberg 1986 ), SPI95 (Spinrad, Dey & Graham 1995 ), STE99 (Stern et al. 1999 ), STE02 (Stern et al. 2002 ), SZO (Szokoly et al. 2004 ), TAN22 (Tang et al. 2022 ), THU84 (Thuan 1984 ), VM99 (Villar-Mart ´ ın et al. 1999 ), VM20 (Villar Mart ´ ın et al. 2020 ), WAD99 (Waddington et al. 1999 ). ∗stands for emission lines provided by their upper limit. 1 Emission lines given as luminosity in units 10 43 erg s −1 . The complete version of this table is available at the CDS. emission-line fluxes larger than the error limits. On the other hand, we assumed that these objects were not corrected for internal extinction, so we performed this correction only for those objects with C3C4 > −0.3, which cannot be considered as dust free. This criterion, shown in Fig. 5 , is consistent with the predictions from models in which the absence of internal extinction is the only way to achieve the very low C3C4 values observed for certain objects (Nagao et al. 2006 ; Dors et al. 2019 ). For higher C3C4 values, on the other hand, the absence of extinction does not seem to be justified in either the emission line flux correction or the photoionization models. Therefore, for the rest of the compiled galaxies, we assumed an average visual extinction of A V = 1 mag and an e xtinction la w of Cardelli, Clayton & Mathis ( 1989 ). Anyw ay, we check ed that the assumption of other common extinction laws does not imply a variation in the resulting chemical abundances larger than the reported errors when only UV emission lines are used as an input, as in our sample. For the case of a simultaneous use of both optical and UV lines, this correction would be more critical, but a more accurate estimate of the extinction correction could also be performed using the Balmer decrement. Some of the listed fluxes for faint emission lines (e.g. N V λ1239 Å, [O III ] λ1665 Å) are given as upper limits (noted in Table 2 ). Ho we ver, they are treated as real lines, assuming the upper limit equi v alent to 3 σ, where the code considers as input the flux with a nominal value of 2 σwith an error of 1 σ(i.e. an upper limit of 3 is introduced as 2 ±1), to reduce the probability that they are just noise, although with a restriction for values > 3 σ(i.e. larger than the upper limit) in our Monte Carlo simulations). We applied the HCM-UV code to this sample, assuming an AGN SED with αOX = −1.2 and a stopping criterion in the models for f e = 98 per cent. The choice of these input parameters is arbitrary and corresponds mainly to the same conditions used for the optical version of the code in P ´ erez-Montero et al. ( 2019 ), with an αOX value closer to the median derived by Miller et al. ( 2011 ). Anyway, the effects of changing these parameters on the results are discussed in Section 2 . The only difference is that we only considered dust in the models for the objects whose lines were corrected for internal extinction, in agreement with the criterion based on C3C4, while for the rest, we used only the grids of the models without dust. The resulting O/H, C/O, and log U values are provided in electronic form along with the corresponding derived errors, as shown in Table 3 . 4 DISCUSSION 4.1 O/H and U distributions In Fig. 7 , we show the derived metallicity in the compiled sample as a function of redshift for the objects marked for different categories. We see no clear correlation with redshift, but a large scatter in the range of metallicity 7.77 < 12 + log (O/H) < 8.97, with a mean of 8.52 ( ∼2/3 Z ), which is slightly higher for the objects assumed to be dusty (i.e. 8.55) than for the objects we assume to be dust free (8.46). The main trend observed in this distribution would not be then very different assuming different input conditions in the models chosen to derive the abundances. In Table 4 , we show the mean O/H values obtained for each galaxy class. While these values do not allow us to draw firm conclusions, since these types are very unevenly populated and some of them could be very heterogeneous in their properties, they can provide some clues. F or e xample, at v ery low z, Seyfert-2 galaxies have abundances around the mean of the whole sample, even if their mean is slightly subsolar. This is almost congruent with the sample of radio galaxies at high z, whose mean redshift is higher than that of the smaller Seyfert 2 subsample. On the other hand, for the other types of galaxies at high z, very dif ferent v alues of O/H are found, as in the case of quasars, with a mean O/H value significantly lower [i.e. 12 + log (O/H) = 8.35] than the mean of the whole sample. Ho we ver, for the other three defined classes, the number of compiled objects is so small that no statistically significant conclusion can be drawn. In Fig. 8 , we show the relationship between the C3C4 parameter as obtained from the compiled emission line fluxes and the value of log U as obtained from HCM-UV . As described in previous sections, we considered all objects with C3C4 < −0.3 to be possibly dust free, as discussed by Nagao et al. ( 2006 ) or Dors et al. ( 2019 ). In Table 4 , we also give the fraction of objects in each category that fall within Downloaded from https://academic.oup.com/mnras/article/521/1/1556/7068104 by Inst. Astrofisica Andalucia CSIC user on 14 May 2024