Open Access
Issue
A&A
Volume 690, October 2024
Article Number A113
Number of page(s) 19
Section Stellar atmospheres
DOI https://doi.org/10.1051/0004-6361/202450494
Published online 02 October 2024

© The Authors 2024

Licence Creative CommonsOpen Access article, published by EDP Sciences, under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

This article is published in open access under the Subscribe to Open model. Subscribe to A&A to support open access publication.

1 Introduction

The past decades have shown tremendous progress in our understanding of low-mass star formation. The progress reaches from identifying morphological stages in the formation process and spectral accretion signatures to spatially resolved imaging of protoplanetary disks and a detailed modeling of both single and cluster star formation (see, e.g., Inutsuka et al. 2023 for reviews of these subjects). This wealth of observations and models is not yet available for massive stars. The reasons are well known and include the short formation timescales involved and the assembly of massive stars happens in highly obscured molecular clouds.

Moreover, the formation of massive stars is rare and therefore distant. Furthermore, the physical processes are complex due to radiative and mechanical feedback in the late stages of assembly (Krumholz et al. 2009; Kuiper et al. 2010) and inevitable (close) binary or higher order multiple formation (Sana et al. 2012; Bordier et al. 2022).

Fortunately, progress has also been impressive in our understanding of the formation of massive stars. Developments in the past decade seem to indicate that massive stars are formed through disk accretion similar to their lower-mass counterparts (e.g Shu et al. 1987; Cesaroni et al. 2006; Krumholz et al. 2009). An increasing number of (interferometric) observations confirm the presence of accretion disks in several wavelength regimes (e.g. Beltrán & de Wit 2016; Caratti o Garatti et al. 2017). Furthermore, disk and companion formation is supported by the most advanced numerical simulations (e.g Bate 2018; Oliva & Kuiper 2020, 2023).

One route toward furthering our knowledge of the formation of massive stars is to identify the central sources of individual systems prior to or just at the arrival on the main sequence. As described above, this is extremely difficult because the sources are deeply embedded and emit the bulk of their radiation in the ultraviolet and optical wavelength domains, where extinction has the strongest impact. Holgado et al. (2020) and Schootemeijer et al. (2021) emphasized the difficulty of detecting these stars as they find a significant dearth of massive stars near the zero-age main sequence (ZAMS) in their surveys. Characterizing the outcome of the formation of massive stars in terms of, for instance, the location of the ZAMS, rotational velocities, mass-loss rates (if winds have developed), multiplicity statistics, magnetic field strengths, and remnant disk properties (if any), is of great value for probing the formation mechanism. Moreover, these properties are important because they constitute the initial conditions of the subsequent evolution.

The youngest massive star-forming clusters are most suitable for this approach. One such young cluster is NGC 6618 located in Messier 17 (M17). M17 is a well-studied giant H II region with a luminosity of ~2.4 × 106 L (Povich et al. 2007). It is located at a distance of 167518+19$1675_{ - 18}^{ + 19}$ pc based on Gaia-DR3 data (Stoop et al. 2024). The H II region is surrounded by a giant molecular cloud with a gas content of approximately 6 × 104 M (Povich et al. 2009). The cluster has a rich stellar population with ~20 O-type stars and over 100 B-type stars (Hanson et al. 1997; Hoffmeister et al. 2008; Stoop et al. 2024). A unique feature of M17 is that photospheric features have been detected along with hallmarks of circumstellar disks despite the severe extinction towards the sources (Ramírez-Tannus et al. 2017, hereafter RT17). This has allowed the spectroscopic characterization of several of the sources and the confirmation of their pre-main-sequence (PMS) nature. The detected circumstellar disk features include CO-bandhead emission in several sources (Hanson et al. 1997, also RT17). For some stars, this CO-bandhead emission has been modeled in detail, confirming the presence of hot dense gas close to the star (Poorta et al. 2023). This agrees with circumstellar hydrogen and dust-emission modeling that was undertaken for two sources (Backs et al. 2023).

The presence of PMS stars suggests that the cluster is young. Age estimates yield ~0.5 Myr (Hoffmeister et al. 2008) and ~1 Myr (Hanson et al. 1997; Povich et al. 2009) based on the fraction of stars with IR-excess emission and isochrone fits. Stoop et al. (2024) find an age of 0.65 ± 0.25 Myr by tracing runaway stars back to their origin in NGC 6618 with Gaia DR3, and Getman et al. (2014) find an average age of ~1.3 Myr based on the X-ray luminosity of potential subclusters. For the latter study, the X-ray method yields individual subcluster ages in the range of 0.7 to 2.4 Myr.

We study the stellar properties of a diverse population of 18 young high- and intermediate-mass stars in M17. The goals are to reassess the cluster age, to establish the empirical location of the ZAMS for massive stars, to constrain initial spin velocities, and, finally, to estimate the mass-loss properties, especially to establish whether PMS stars have already developed a stellar wind. When we limit the importance of these properties to star formation, the initial rotational velocity holds clues, for instance, for the angular momentum gain regulation by gravitational torques (Lin et al. 2011) or for the magnetic coupling between the star and the inner disk (Duez & Mathis 2010). The stellar wind, along with the photospheric radiation field, may ablate circumstellar disks (Kee & Kuiper 2019), and on larger spatial scales, it plays a role in the self-regulation of massive star formation and the star formation efficiency of their host cloud (Lancaster et al. 2021; Rosen 2022).

To reach our goals, we analyzed spectra obtained with the Very Large Telescope/X-Shooter of our target stars using stellar atmosphere models. The line-of-sight extinction is estimated by fitting spectral energy distributions (SED). This paper is set up as follows. First, we introduce the observations and data in Section 2. We describe the quantitative spectral analysis method in Section 3. The results of the fitting are given in Section 4 and are then discussed in Section 5. Our main conclusions are summarized in Section 6.

Table 1

List of the analyzed M17 sources.

2 Targets and data

We briefly describe the sample and data. For a complete overview of the spectroscopic data, we refer to Ramírez-Tannus et al. (2024)

2.1 Sample

Table 1 lists the sources we analyze in this paper. The sample was selected such that it contained some of the most massive stars in M17 and a population of PMS stars (Hanson et al. 1997; Broos et al. 2013; Ramírez-Tannus et al. 2017). The sample was selected to be diverse, and it is not complete. The spectral types range from O4.5 to B9. Together with the strongly varying extinction toward the sources, this results in a sample spanning over seven V-band magnitudes. Table 1 also indicates the detected excess emission for the stars with circumstellar disks. Some stars show thermal infrared (IR) continuum emission by dust and gas line emission, others only show IR excess emission. For most stars, no excess emission was detected.

2.2 Spectra

The data consist of multi-epoch X-shooter spectra obtained from May to September 2019 with additional archival data from 2012 and 2013. We only use the UVB and VIS spectral arms of X-shooter here, which were set to slit widths of 1″ and 0.9″, respectively. This yields a resolving power of 5100 from ~3500 to 5500 Å and 8800 from 5500 to 10 000 Å.

The data were reduced using the ESO pipeline esorex 3.3.5 (Modigliani et al. 2010). Relative flux calibrated data were obtained using spectrophotometric standards from the ESO database, and telluric corrections were made with Molecfit 1.5.9 (Kausch et al. 2015). In the case of B243, B268, and B275, a special reduction was done to correct for severe nebular contamination (see van Gelder et al. 2020; Derkink et al. 2024).

The signal-to-noise ratio of the spectra varies strongly between stars because their brightnesses are different, but it also varies as a function of wavelength as a result of the strong extinction toward the stars. Therefore, the signal-to-noise ratio can be 10–20 at the shortest wavelengths, but may reach >100 in the VIS arm.

2.3 Photometry

Accurate photometric data are required in order to constrain the luminosity and line-of-sight extinction toward the sources (see Section 3.2). We adopted the photometry presented in RT17. For the stars that are not covered in RT17, we used the photometric data from SIMBAD1, with UVB data from Reed (2003), JHK data from 2MASS (Skrutskie et al. 2006), and mid-infrared data from Spitzer IRAC (Benjamin et al. 2003). For all stars, a Gaia G-band point was also added (Riello et al. 2021).

3 Methods

We aimed to determine accurate stellar atmosphere properties of the sample of (pre-)main-sequence sources in M17. To do this, we fit FASTWIND (Santolaya-Rey et al. 1997; Puls et al. 2005) stellar atmosphere models to the normalized stacked spectra. The genetic algorithm KIWI-GA2 (Brands et al. 2022) was used as the optimization method to find the best-fitting parameters and their uncertainties. Section 3.1 describes the stacking process of the multi-epoch spectra. The extinction determination is described in Section 3.2 and the normalization process is explained in Section 3.3. Finally, FASTWIND and KIWI-GA are described in Sections 3.4 and 3.5, respectively.

3.1 Data stacking

The multi-epoch spectra presented in Ramírez-Tannus et al. (2024) were stacked to improve the signal-to-noise ratio. We stacked the relative flux-calibrated spectra to preserve the uncertainties on the data and to minimize potential biases from manipulating the data. First, we used the radial velocities determined by Ramírez-Tannus et al. (2024) to shift the observed spectra to the same rest frame. Then the spectra were placed in the same wavelength binning using linear interpolation. Since the observing conditions can vary between the different observation epochs, the continuum levels of the relative flux calibrated spectra did not always match. This can be problematic when a weighted mean for the stacked spectrum is to be determined. Therefore, the continuum levels were matched first. This was done by dividing one observed spectrum by the other. This resulted in a featureless residual that represents the difference between the continuum levels. The residual was then fit using a linear function. In some cases, an issue occurred in the flux calibration, resulting in a nonlinear residual. When this occurred, a seventh-order polynomial was fit instead. The relative flux calibrated spectrum was multiplied by the fit to the residual so that it matched the other observed spectra. This procedure was repeated for each observed spectrum, such that the continuum levels of all epochs matched. The flux-matched spectra were then stacked using weights defined as wλ,i=σλ,i1inσλ,i1,${w_{\lambda ,i}} = {{\sigma _{\lambda ,i}^{ - 1}} \over {\mathop \sum \nolimits^ _i^n\sigma _{\lambda ,i}^{ - 1}}},$(1)

with σλ,i· the uncertainty on the flux at wavelength (bin) λ and epoch i, and n the number of observing epochs. The weighted mean flux was determined as F¯λ=inwλ,iFλ,i,${\bar {\cal F}_\lambda } = \sum\limits_i^n {{w_{\lambda ,i}}{{\cal F}_{\lambda ,i}},} $(2)

and the corresponding uncertainties as σλ=inwλ,i2σλ,i2.${\sigma _\lambda } = \mathop {\mathop \sum \nolimits^ }\limits_n^i w_{\lambda ,i}^2\sigma _{\lambda ,i}^2.$(3)

This resulted in a higher signal-to-noise ratio in the relative flux-calibrated spectrum compared to the individual single-epoch spectra. The stacked spectrum was then dereddened as the extinction properties are essential in the determination of the stellar luminosity (see Section 3.2). This also aided in the normalization process (see Section 3.3) and in the potential identification of IR-excess emission.

3.2 Determining extinction and luminosity

Accurate knowledge of the line-of-sight extinction is required to determine the stellar luminosity. Additionally, it aids in the normalization process because the shape of the spectrum is more predictable. The extinction was determined by fitting a stellar model SED multiplied by an extinction curve to the photometric SED. The stellar model SEDs we used are from Castelli & Kurucz (2004) for the approximate temperature of the star based on their spectral type3. The model SEDs were convolved with the filter profile of the respective photometric filters. For stars with near-IR excess, only photometric data points with wavelengths shorter than the onset of the excess emission were considered (see Section 4.1).

We used the extinction curve of Fitzpatrick (1999), with the total-to-selective extinction, RV, and the total visual extinction, AV, as free parameters. RV was fit because the stars are located in a dense star-forming region, in which its value may be higher than the canonical value of RV = 3.1 (see e.g. Schultz & Wiemer 1975). In the SED fitting, we also used a third free parameter, c, which represents the approximate radius of the star when it is scaled with the distance to M17. The fitting was done in a two-step approach. First, the best-fit parameters were determined with an optimization routine in the SCIPY package for PYTHON, then a 2D brute-force grid search in RV and AV was applied around the best-fit parameters to verify their values, uncertainties, and correlation.

The best-fitting extinction curve was then used to determine the absolute J-band magnitude, which served as the luminosity anchor: The SED calculated by FASTWIND was compared to this luminosity anchor to determine the stellar radius. Longer wavelengths are less strongly affected by extinction. We chose to use the J band as it is the longest wavelength filter that is not affected by the IR-excess emission from circumstellar material.

3.3 Normalization and data-clipping process

The observed relative flux-calibrated stacked spectra were normalized before the fitting process. Normalization was made after stacking to minimize the biases and irregularities caused by the normalization process, and it was applied locally around the modeled features, which are listed in Section 3.5. A linear function was fit to continuum points selected by eye, and the spectrum was divided by this linear fit.

As a result of the high extinction and because the stars reside in an H II region, the spectra contain many interstellar features. These were removed to prevent them from affecting the fitting process. The clipped features include diffuse interstellar bands (DIBs), nebular hydrogen and helium lines, disk emission lines, stellar lines that are not included in the model, and instrumental artifacts. The clipping was done manually by inspecting the spectra. DIBs were mostly identified by their similar behavior in all spectra, but also by consulting the list of DIBs from Hobbs et al. (2009).

3.4 Fastwind

We determined the stellar photosphere and wind properties simultaneously, maintaining a uniform fitting approach for the full sample. Our stellar model of choice was the nonlocal thermal equilibrium (non-LTE) stellar atmosphere code FASTWIND (Santolaya-Rey et al. 1997; Puls et al. 2005; Sundqvist & Puls 2018), version 10.6. FASTWIND treats both the stellar atmosphere and the trans-sonic outflow. The atomic model is split into explicit and background elements, the combination of which is used to treat the impact of a multitude of lines on radiation transport and back-heating (so-called line blocking and line blanketing). Only the radiative transfer for the explicit elements is treated in the comoving frame. In our FASTWIND version, these explicit elements are H, He, C, N, O, and Si, and thus, we can produce synthetic line profiles only for these elements. Not all ionization stages were included for the explicit ions (to reduce computation cost). For this reason, some of the cooler stars have prominent lines that cannot be modeled. The formal solution of the radiative transfer equation is limited to specific requested lines or sets of lines. These sets or blends of lines we refer to as “complexes”.

3.5 Fitting approach and genetic algorithm

The stellar properties we studied are the effective temperature of the star, Teff; the surface gravity, g; the mass-loss rate, Ṁ; the projected surface rotational velocity, v sin i; the helium surface abundance, yHe, and the surface abundance of C, N, O, and Si. This results in a total of nine free parameters. The micro-turbulent velocity was held fixed at 10 km s−1. This value may be on the high side for late B-type stars, which might affect the abundance determinations (e.g. Liu et al. 2022). We did not include a macroturbulent velocity field, which accounts for motions in the photosphere other than thermal motion, microtur-bulent velocities, and rotation. The flow velocity profile is given by a standard β-type velocity law, with β = 1. Optical diagnostic features have limited sensitivity to the terminal velocity v of the outflow, and therefore, it cannot be constrained. We used measurements of Hawcroft et al. (2023) and the spectral type to estimate the v values. We assumed that optically thin clumps may be present in the outflow, characterized by a clumping factor fc1 = 10.

The nine free parameters were to be fit simultaneously due to several correlations between the parameters. The exploration of this parameter space can be computationally expensive. Therefore, the optimization of parameter values was done using KIWI-GA (Brands et al. 2022), building on the work of Mokiem et al. (2005); Tramper et al. (2011). This is a genetic algorithm (GA) and wrapper tailored to FASTWIND. The GA starts with randomly and uniformly sampling a specified parameter space. This random sampling is the first generation of models, after which the next generations are determined based on the fitness of the models in the generations before them. This works by combining the parameters of two of the best-fitting models up to that moment, and the better-fitting models have a higher probability to reproduce. The parameter values are mixed. Some values come from the one parent model, and others from the other model. Parameters can also mutate, in which case their value does not match either of the parents’ values. Two types of mutation are included, which we call “broad” and “narrow”. The broad mutation has a low probability and samples the new parameter value from a broad Gaussian distribution spanning a significant part of the parameter space. The narrow mutation has a higher probability and is sampled from a narrow Gaussian distribution. Both distributions are centered around the value inherited from the parent. These mutations ensure a proper exploration of the parameter space. Details of all the meta-parameters regarding the fitting algorithm can be found in Brands et al. (2022).

KIWI-GA is designed to fit a set of normalized spectral diagnostic features. We opted to fit the same set of features for all stars, regardless of their temperature or spectral type. This was done to ensure that differences between stars are not the result of the line selection. The features were selected based on their strength, lack of contamination from unknown lines and features, and established reliability as a diagnostic in the temperature range probed by our stars. The full list of diagnostic features is given in Table 2. Because the line selection is uniform for all stars, some fit lines are absent from the observed spectrum. As the selected lines are free of blends with lines that are not modeled, this should not be a problem. For example, the selected He II complexes show only noise or modeled features (of other species) in the cooler (late-B) stars. Therefore, it should not impact the fitting process adversely.

The uncertainties on the model parameters are based on their fitness, which was assessed using either a χ2 statistic or a root-mean-square-error-of-approximation statistic (RMSEA; Steiger 1998). If the reduced χ2 of the best-fit model was below 1.5, the former was used, and otherwise, the RMSEA was used as it is designed to produce reasonable uncertainties if the models do not perfectly reproduce the observations. More details of the RMSEA uncertainty determination can be found in Brands et al. (in prep.). Regardless of the method, the uncertainties should be considered estimates of the 1σ confidence intervals.

Table 2

Diagnostic features used in the fitting process.

Table 3

Extinction properties and luminosity anchor, Jabs.

4 Results

We present the main results of our fitting efforts below. Section 4.1 shows our findings regarding the line-of-sight extinction properties. The atmosphere and wind analysis results are described in Section 4.2, and some parameters are highlighted. Poorer fits are mentioned in Section 4.3.

4.1 Extinction

The results of the SED fitting are listed in Table 3 along with the approximate onset wavelength of the IR excess. The IR excess of six stars mandates the exclusion of data points at wavelengths beyond the IR cutoff specified in Table 3 from the extinction fits. The visual line-of-sight extinction to the sources varies from 3.6 to 10.6 magnitudes, and the total-to-selective extinction varies from 2.7 to 5.7. Only for B213 and B215 did we find an RV value below 3. This could be due to the limited photometric data available. Additionally, the V-band photometry for B213 appears to be significantly brighter than the rest of the photometric data. Both stars, and particularly B215, show a strong correlation between AV and RV (see Appendix B). Full SEDs along with the dered-dened SEDs and correlations between AV and RV are provided in Appendix B.

4.2 Atmosphere fits

Fig. 1 show the best model fits to the diagnostic line profiles and their uncertainties for B311. The other overviews of the other stars are available online4. The confidence intervals of the fit parameters are shown in the bottom two rows. A condensed overview of best-fit line profiles and their uncertainties is shown in Appendix A. The corresponding stellar parameters are listed in Table A.1. The sample consists of stars with a wide range of temperatures and signal-to-noise ratios. The best-fit temperatures span from ~11kK to ~46kK and the luminosities from 102 L to 3 × 105 L. Below, we discuss the main findings of the fitting efforts per parameter.

thumbnail Fig. 1

Overview of the fit to B311. The top part shows the fits to each diagnostic. The vertical black bars indicate the normalized observed spectra, and the green line shows the best-fit model. The length of the black bars indicate the 1σ uncertainty on the data, and the shaded region shows the 1σ confidence interval of the model spectrum. The name of the diagnostic feature is given at the bottom of each panel. The bottom part shows the parameter distributions sampled by KIWI-GA. The fit parameters are displayed in the top left corner. The shade of the points is a measure of the generation: darker points are sampled in later generations. The vertical yellow line shows the best-fit value, the darker yellow shaded region shows the 1σ confidence interval, and the lighter yellow shaded region shows the 2σ confidence interval.

4.2.1 Temperature and gravity

The surface temperature and gravity are mostly determined by the hydrogen and helium lines and by the line-strength ratios between them, with additional constraints from the C, N, O, and Si lines. Throughout the sample, the temperature is well constrained, with larger relative uncertainties at lower temperatures. This is likely due to a lower number of diagnostic lines available and to the lower signal-to-noise ratio of the fainter stars. Gravity determinations are robust, with well-constrained values in the range log 𝑔 = 3.60–4.24, which result in spectroscopic masses that are consistent with their evolutionary masses (see also Appendix C). The gravity determination of B272 is an outlier in the sample, with log 𝑔 = 4.86, which is significantly higher than for the other stars. This is likely due to the poor quality of the spectrum of this star.

4.2.2 Mass-loss rates

The mass-loss rate determination is mostly based on the wind emission in Hα and to a lesser extent in Hβ; He II 4686 adds a mass-loss constraint for the O-type stars. For the hotter more luminous stars, the mass-loss rate determinations are robust and reliable. However, at a lower luminosity (L ≲ 104 L), the winds are weaker and therefore harder to constrain. We present the mass-loss rates and their uncertainties as produced by our fitting routine and the corresponding statistics. We stress that the inferred mass-loss rates may be strongly affected by systematic uncertainties. The values should be treated with care as the sensitivity to this parameter is limited at these weak wind strengths. Best-fit values can change significantly through small inconsistencies in the data. We note that we did not consider mass-loss rates M < 10−10 M yr−1 in our modeling and assumed a wind clumping factor of fcl = 10.

4.2.3 Rotation rates

The projected rotation rate, υ sin i, of the stars is typically well constrained. Cooler stars and stars with a low signal-to-noise ratio have a less accurate υ sin i. This is particularly true for stars with a gaseous circumstellar disk or significant nebular contamination, as in these cases, the central part of the strongest lines had to be clipped from the data. Two stars, CEN55 and B272, show a best-fit υ sin i of 5 km s−1, which is the lowest value we considered. These lines might be affected by nebular lines that are blended with the stellar line profiles (see Section 4.3.1 and Section 4.3.2). Additionally, the low-quality spectrum of B272 might affect the derived rotation rate.

4.2.4 Abundances

The helium abundances of the stars are typically well determined, with increasing uncertainties toward lower temperatures because the helium features are less pronounced. However, it has been challenging to constrain the surface abundance of C, N, O, and Si because only a few strong diagnostic features are available in our uniform modeling approach, the signal-to-noise ratio of some of the spectra is low, and the rotation rate of many of the stars is high. Combined with the correlation and degeneracy of the abundances with some of the other atmosphere parameters, this resulted in large uncertainties for most stars. The exception to this is B311, which has a high signal-to-noise ratio and a low projected rotation rate. This star has well-constrained abundances, the best-fit values of which agree very closely with the values presented in Asplund et al. (2009). This is further discussed in Section 5.5.

4.3 Anomalous fits

Some best-fit solutions appear to be anomalous and should be interpreted with caution. We list these cases here.

4.3.1 CEN55

We find a good fit for this star for a very low projected rotation rate, υ sin i. However, because of the narrow stellar line profiles, the nebular contributions to the He I lines are hard to distinguish from the stellar lines. Therefore, the fit might be contaminated, resulting in an odd helium surface abundance. The highest helium abundance considered in our parameter space is the best fit, but it is not expected to be enhanced as the stars in M17 have just formed.

4.3.2 B272

B272 has the highest V -band magnitude in the sample. The spectra have a poor signal-to-noise ratio throughout most of our wavelength range. Similar to CEN55, this star has a best-fit value of υ sin i = 5 km s−1 and a significantly enhanced helium abundance. We also find a high surface gravity of log 𝑔 = 4.68, which is significantly higher than expected for a star of this luminosity and temperature. The spectroscopic mass corresponding to this is 34.4 M, which is also higher than expected (see Appendix C).

4.3.3 B181

B181 shows stronger He II lines than were found in the best- fit model. This may suggest that the temperature of the star is underestimated. However, temperatures that match the He II line strengths fall within the confidence interval. A higher temperature would place this star closer to the ZAMS.

5 Discussion

The young age of M17 allowed us to investigate near-ZAMS properties of a sample of stars covering masses from about 2–30 M. For the most massive stars, we can identify the empirical location of the ZAMS, and for the full sample, we can place constraints on (pre-)ZAMS rotational velocities and massloss rates. We first assess the evolutionary status of the sample (Section 5.1) to establish stellar ages and masses, and we highlight a correlation between these two properties (Section 5.2). Next, we discuss their present-day and (future) ZAMS surface rotation (Section 5.3). We compare our results to those of RT17 in Section 5.4. Then, we briefly discuss the surface abundances (Section 5.5) and line-of-sight extinction (Section 5.6). Finally, we discuss the mass-loss properties (Section 5.7). We summarize our results in Section 6.

thumbnail Fig. 2

Hertzsprung-Russell diagram of the sample of M17 stars. The stars are separated into three categories, depending on their circumstellar emission features. Pink pentagons stars show both emission from a gaseous disk and IR excess emission from hot circumstellar dust. Orange indicates stars that only show IR excess, and purple indicates that no circumstellar material was detected here or by RT17. The MIST PMS evolutionary tracks are overplotted in gray, and the masses are labeled on the left. We show the ZAMS in black (on the left) and the birthline (on the right) (Dotter 2016; Choi et al. 2016). The isochrones (with t=0 at the birthline) are shown with the dashed colored lines. The thin dashed gray lines show the isoradius lines to guide the eye. The names of the stars are displayed on the points and are visible when zooming in.

5.1 Evolutionary status of the sample

Figure 2 shows the locations of the stars in the Hertzsprung- Russell diagram (HRD). The MESA Isochrones and Stellar Tracks (MIST) PMS evolutionary tracks (Dotter 2016; Choi et al. 2016) based on MESA models (Paxton et al. 2011) are overplotted for masses ranging between 3 and 50 M . We first examine the population of stars that are more massive than 13 M. As we show below, they are all severely extincted, with AV ranging from 3.6 to 10.6 mag. This would essentially render them invisible at optical wavelengths if not for the use of an 8m class telescope. Five out of six stars agree very well with the predicted location of the ZAMS, and one star (B181) is positioned slightly to the red. We might be finding massive stars (20–50 M) on the ZAMS in contrast to Holgado et al. (2020) and Schootemeijer et al. (2021) because we considered highly extincted objects. As the PMS evolution proceeds fast for these sources (it takes them ∼105 yr at most to reach the ZAMS) and the moment of corehydrogen ignition signifies the transition from the blueward to redward evolution, this empirically confirms the location of the ZAMS in this mass range. In the tracks at hand, the ZAMS is reached when the hydrogen-burning luminosity exceeds 99.99% of the total luminosity (Dotter 2016).

Our sample does not contain stars with masses in the range 7–13 M . While the sample was not actively selected to avoid this mass range, it is conceivable that stars of these masses are lacking as a result of our selection criteria. In selecting targets, we aimed to include the brightest sources and also PMS sources. Stars in the mass range 7–13 M were likely not bright enough or not red enough to be selected. A uniform sampling may have been further hindered because the extinction varies for each line of sight.

Stars with masses between about 3 and 7 M have not yet reached the main sequence. This is in line with previous studies, which indicated that the stars are in the final phase of their formation (e.g. Ramírez-Tannus et al. 2017). Stars with doublepeaked line emission disks are located farthest from the main sequence, suggesting that these are the least evolved objects in the sample and have not yet lost their accretion disk. The three stars with IR excess emission are located close to or on the main sequence, indicating that in some cases, circumstellar dust can persist until the end of the formation process. However, this is not ubiquitous because most stars, including less evolved stars, do not show any excess emission.

5.2 Age determination

The isochrones in Fig. 2 already give an indication of the cluster age. However, a more accurate estimate may be obtained from determining the ages of the individual stars. To do this, we interpolated the evolutionary tracks and determined the range of ages that fall within the uncertainties on L and Teff of the stars. Through the same method, the evolutionary masses of the stars were determined. Table 4 lists the results. For stars that have reached the main sequence, the age uncertainties will be relatively large as evolution proceeds on a nuclear timescale. For stars on the PMS, the characteristic timescale at which they move along the tracks is the much shorter Kelvin-Helmholtz timescale. Therefore, we excluded the main-sequence sources from the cluster age determination. This results in a cluster age of 0.40.2+0.6$0.4_{ - 0.2}^{ + 0.6}$ Myr. The age distribution of PMS stars in our sample is shown in Fig. 3. This result matches the dynamical age of 0.65 ± 0.25 Myr derived from tracing O- and early B-type runaway stars back to NGC 6618 (Stoop et al. 2024) very well and also matches the approximate estimates by Hanson et al. (1997); Hoffmeister et al. (2008); Povich et al. (2009).

The ages we derived based on PMS evolution are measured from the birthline, which in the MIST tracks is defined to be the locus at which the central stellar temperature reaches 105 K. At the birthline, the stars have accreted their final mass. We remark that although ages in PMS tracks are usually measured starting from the birthline, the definition of the birthline is somewhat ambivalent. It is often associated with the star becoming visible at optical light, linking it with the end of the main accretion phase, that is, when the dusty natal cloud from which the star obtains its mass is depleted or dispersed. Computations applying this alternative definition reported that massive stars reach the ZAMS while still accreting material (Hosokawa & Omukai 2009; Hosokawa et al. 2010). Palla & Stahler (1990) involved the size of the proto-star in the definition of the birthline. It is therefore important to realize that estimated age may vary as a result of different initial conditions and definitions of the birthline (Hosokawa et al. 2011; Kunitomo et al. 2017).

The MIST tracks allow us to determine the time remaining for the stars to reach the ZAMS. This timescale is independent of the definition of the birthline and mainly depends on further Kelvin-Helmholtz contraction. It is given in Fig. 4 and reveals that the most massive stars are closest in time to reaching the main sequence. Lower-mass stars have longer to go.

However, we not only find a correlation between the time remaining to reach the ZAMS and stellar mass, but also between age and stellar mass. This is shown in Fig. 5, which shows a trend for the PMS sources of a decreasing PMS age for increasing mass. This trend is consistent with the older ages found for the low-mass stars by Getman et al. (2014). All stars appear to have completed ~70% of the time needed to reach the ZAMS, which is remarkable. This implies that in absolute time, low- mass stars cross the birthline first. A similar trend is found when using PARSEC (Bressan et al. 2012) PMS evolutionary tracks instead of MIST tracks.

In the context of this finding, we recall that the accretion timescale of a higher-mass star might be longer than that of a lower-mass star. The considered PMS evolutionary tracks assume that all mass is accreted before the birthline is crossed. The time required to collect this mass from the start of the collapse of the cloud is not included. This time might explain the relation between age and mass shown in Fig. 5.

The formation process of massive stars is complex. We considered a simplified scenario here in which stars accrete their mass and cross the birthline after they reach their final mass. Shu (1977) showed that the mass-accretion rate scales with the (third power of the) sound speed in the collapsing natal cloud. A constant cloud temperature then implies the same mass-accretion rate for all forming stars. When we assume an average accretion rate of M ~ 5 × 106 M, we obtain the accretion timescale as shown by the bottom black line in Fig. 6. After this accretion phase, the stars contract to the main sequence through their PMS evolutionary tracks. The time this takes is given by the red shaded region. For the adopted accretion rate, all stars (except for B86, which appears to be older) would have started to form, that is, started to accrete material, at the same time ~1.5 Myr ago. At this accretion rate, it would not be possible to form the highest- mass stars. For example, it would take nearly 10 Myr to form the most massive star in our sample, B111. This suggests that for the highest-mass objects, the accretion mechanics may be different, for instance, due to higher local gas cloud temperatures.

Regarding the star-forming history, we mention the possibility that multiple populations might be present in M17. Getman et al. (2014) identified different subclusters within M17 that, using an X-ray luminosity based age determination method, may span ∼2 Myr in age. An age spread does not directly explain the mass–age relation, but it signals that the sample might be more complex. Furthermore, Busquet et al. (2016) and Díaz-Márquez et al. (2024) reported high degrees of fragmentation in the dark cloud G14.225–0.506, which is located in the M17 complex. This suggests that new star formation might be taking place, and stars might only start to accrete matter now. Possibly in favor of a longer accretion and formation timescale for higher mass stars, Povich et al. (2016) reported a dearth of O-type stars in this dark cloud, given the large observed population of intermediate-mass PMS stars. They noted that the cloud contains enough mass to produce massive star clusters. Forming high-mass stars might still be deeply embedded in the cloud.

Table 4

Derived properties of stars in M17 based on evolutionary tracks.

thumbnail Fig. 3

Distribution of PMS ages of the stars in M17 since they passed the birthline. The solid black line indicates an approximate kernel density estimate based on the best-fit ages and their confidence intervals. The thin dashed lines indicate the contribution of the individual sources. Higher-mass stars (M > 10 M) that have reached the main sequence are excluded.

thumbnail Fig. 4

Time remaining for stars to reach the ZAMS as function of mass for the PMS stars in M17. The markers are identical to those in Fig. 2.

5.3 Surface rotation

We did not include a macroturbulent velocity profile in our analysis. As a result, the rotational velocities we find are likely upper limits. The young age of M17 allows us to determine the spin properties of its (massive) stars close to or at the ZAMS. Table 4 lists the present-day projected surface rotation velocity in terms of the critical rotation velocity, υcrit . The latter is determined based on their current radius and mass and is defined as vcrit=GMR.${v_{{\rm{crit}}}} = \sqrt {{{GM} \over R}}.$(4)

Many of our target stars have yet to reach the ZAMS. To calculate the projected rotation rate at the ZAMS, we contracted the stars from their current radii to their ZAMS radii in accordance with their corresponding MIST evolutionary tracks. We assumed that the radial density structure of the stars is represented by the solution of the Lane-Emden equation with a polytropic index n = 1.5. Furthermore, we assumed solid-body rotation and angular momentum conservation. The resulting ZAMS radius and projected surface rotation velocity are also listed in Table 4. The values for the stars that have already arrived on the main sequence remain unchanged.

Figure 7 shows the distribution of projected rotation velocity in terms of the critical rotation velocity for both current radii (in orange) and expected ZAMS radii (in purple). For the current radii, we used the measured values as listed in Table 4, which agree closely with their corresponding evolutionary radii. The sample is split into two parts. In the top panel, the six stars that are more massive than 10 M are shown. All of these have arrived on the ZAMS, with only B181 expected to do so within as little as several tens of thousands of years. However, as the confidence interval of the position of B181 overlaps the ZAMS, we considered it as a main-sequence star. In the bottom panel, the 12 stars that are less massive than 10 M are presented. They have not yet reached the main sequence, and further spin-up because of Kelvin-Helmholtz contraction is relevant for them. The υZAMS distributions of both sets are strikingly different. The massive stars have a velocity distribution up to ~0.3 υcrit and the intermediate-mass star distribution has velocities up to ~0.6 υcrit. Similar differences exist between the spin distributions of well-established main-sequence O-type (Ramírez-Agudelo et al. 2013; Holgado et al. 2022) and B-type (Dufton et al. 2013; Huang et al. 2010) stars. This may suggest differences in the mechanism through which these two groups of stars gain angular momentum during their formation. Although the sample is small, the fairly low spin rates of the O-type stars at birth is consistent with the hypothesis that the high-velocity tail of spin rates reported in large studies of presumed-to-be-single main- sequence O-star populations (Ramírez-Agudelo et al. 2013) is actually due to binary interaction, which results in spun-up systems for which the mass donor cannot be detected (de Mink et al. 2013; Ramírez-Agudelo et al. 2015).

In the intermediate-mass sample, the sources with a gaseous disk (B243, B268, and B275) in particular will spin up considerably. B275 stands out in that it shows a projected equatorial rotation velocity equal to the critical velocity after contraction to the ZAMS. This is possible, but rare, because the star would have to be seen exactly edge on for it not to exceed the critical spin. However, B275 has a gaseous circumstellar disk and is still relatively far from the ZAMS. Therefore, we should be cautious to assume that the stellar angular momentum will remain conserved, as interaction with its disk may still alter the stellar angular momentum. These same caveats also apply to B243 and B268, which are also relatively distant from the ZAMS and have hot circumstellar gaseous disks.

thumbnail Fig. 5

PMS age as function of mass measured from the moment the stars pass the birthline. The black line indicates the total time it takes to reach the ZAMS, starting from the birthline, and the dashed gray line shows 70% of that time. The markers are the same as in Fig. 2.

thumbnail Fig. 6

Time since the beginning of the main accretion phase for different stellar masses. The gray area marks the main accretion phase with a constant accretion rate for all masses. The red area shows the PMS phase in which the star contracts to the main sequence. Blue indicates the main sequence. The dashed gray line indicates 70% of the PMS phase, as in Fig. 5. The data points indicate the time it would have taken the stars to first accrete their mass and then contract to their current state.

thumbnail Fig. 7

Distribution of the projected equatorial rotational velocities divided by the critical rotation. Top panel: Higher-mass stars that have reached the ZAMS. Bottom panel: Lower-mass stars that have not yet reached the ZAMS. The value of 3 sin i/υcrit is shown for both the current rotation rate and the expected rotation rate when they reach the main sequence.

5.4 Comparison with RT17

RT17 performed a similar study of the young stellar content of M17, including a FASTWIND/GA fit for nine stars. Our sample of 18 stars includes all of these nine objects. A point to note is that we adopted the Gaia distance of 167518+19$1675_{ - 18}^{ + 19}$ pc from Stoop et al. (2024), while RT17 used 1980120+140$1980_{ - 120}^{ + 140}$ pc from Xu et al. (2011). By itself, this decreases the luminosity of the sources by about 30%.

Although the spectral analysis takes the same approach, important differences exist. First, the quality of our spectra is superior as we typically stacked three spectra of the quality used by RT17. This allowed us, second, to include abundances of CNO and Si, which are also diagnostics of photospheric properties. Third, RT17 used a bolometric correction on the extinction-corrected absolute V magnitude, whereas we inferred the radius of the star from anchoring our synthetic SED with the absolute J magnitude (given in Table 3).

We limit the comparison to pointing out systematic trends and do not detail the differences for each of the sources separately. For all stars, our Teff values are consistent within the uncertainties with those from RT17. Our luminosities are a factor of two lower on average, with the smallest change being ∼10 percent and the largest a factor of about four. This results in lower evolutionary masses. Only for B215 do we find a higher luminosity, mainly because of the significantly higher extinction (AV = 9.14 versus AV = 7.6). The extinction to this source is highly uncertain due to limited photometry, however (see Section 5.6 and Appendix B). This is further enhanced by the higher temperature found in our analysis (29 000 K in our study versus 23 500 K by RT17). The improved data quality has been particularly beneficial for the determination of the surface gravity, resulting in considerably smaller uncertainties. This leads to an improved correspondence between the spectroscopic mass, that is, the mass resulting from the gravity and stellar radius, and the evolutionary mass, that is, from a comparison with the MIST evolutionary tracks. A comparison is presented in Appendix C.

We find projected equatorial rotation velocities that are systematically higher by about 30km s−1. The higher rotation rates could be the result of stacking spectra for which the radial velocity has not been properly corrected. However, the typical radial velocity shifts are up to 20 km s−1, which is smaller than the systematic difference we find.

The difference in υ sin i is significantly larger than 30 km s−1 for B268 and B275. This is likely due to circumstellar and interstellar contamination. The contamination was clipped from the data, resulting in a gap in the center of many line profiles that hampers the determination of the rotation. The impact of this clipping is stronger for the data that were available to RT17. The visual extinction AV agrees well for all sources except for B215, as mentioned above. The RV values are also consistent between this work and RT17, but the uncertainties are relatively large and the scatter between the two works is large as well.

5.5 Abundances

This study has not been optimized for determining surface abundances. However, we treated the abundances as free parameters to aid the fitting process and constrain them where possible. As pointed out in Section 4.2.4, for most stars, the abundance constraints are poor, with the exception of B311. For this O8.5 Vz star, a high signal-to-noise spectrum is combined with a slow projected surface rotation of υ sin i = 30−25 km s−1, which reveals many distinct narrow lines. This is beneficial for abundance determinations (see Fig. 1).

The resulting abundances for this star as listed in Table A.1 all agree within 0.1 dex with the present-day solar photosphere abundances (Asplund et al. 2009). This supports the hypothesis that the star and its siblings are young objects. We remark, however, that the present-day composition of the M17 star-forming gas might be expected to be somewhat more metal rich relative to solar as a result of cosmic enrichment over the past 4.6 Gyr (see, e.g., Kobayashi et al. 2020).

5.6 Extinction

Figure 8 shows the total visual extinction AV plotted against total-to-selective extinction RV . The visual extinction toward the sources in M17 varies strongly, with AV values ranging from 3.6 to 10.6 magnitudes. The range in RV varies from 2.7 to as high as 5.7. No correlation with the spatial location in M17 of either parameter was found, suggesting that the bulk of the extinction is local to the sources. Moreover, no clear trend of AV with mass or evolutionary stage was identified. This leaves stochastic line-of- sight differences, that is, some sources lie farther back and/or are more deeply embedded in the natal cloud, to explain the scatter in visual extinction.

The total-to-selective extinction is thought to probe the size distribution and composition of the solid-state material (e.g., Draine 2003; Hirashita & Voshchinnikov 2014; Xiang et al. 2017). There is a trend for RV values tobe highest for objects with IR excess. This suggests that the material causing the extinction in these sources is nearby, for instance, in the circumstellar disk or in the direct ambient medium from which the disks have been accreting, because the processing of the grain material that causes the higher RV is otherwise not expected to be markedly different from that of the other sources. An exception to the trend is B215, which has relatively poorly constrained extinction properties.

thumbnail Fig. 8

Extinction parameters AV and RV of the sources in M17. The markers are identical to those in Fig. 2. The RV values tend to be higher for objects with IR excess (with the exception of B215, which has poorly constrained extinction properties).

5.7 Mass-loss rates

Mass-loss sensitive lines available in our optical spectra are Hα, to some extent Hβ, and for O-type stars, He II 4686. The determination of the mass-loss rates from Hα and Hβ is hindered by contamination by interstellar and, if present, circumstellar emission. Because of interstellar emission, the line centers, which are most sensitive to mass loss, had to be clipped. An additional complication is the potential contamination of the broad wings of the lines from circumstellar material that has not been clipped. This broad nonstellar emission could originate from a disk or disk wind. If this wind emission is present, the mass-loss rate may be overestimated because the circumstellar emission is fit as if it originated in the stellar winds.

For the hottest and brighter stars (log L/L > 4), we can place tight constraints on M based on our assumption on β. Reasonable variations of β could change the determined massloss rate by up to a factor 2 (Markova et al. 2004). For some of the fainter stars without disk signatures, we also constrained the mass-loss rates, to the best of our knowledge, for the first time in this part of parameter space, but as the wind signatures are extremely weak, we remain cautious with respect to the obtained results. The mass-loss determinations for these 11000-18 000 K and ~102−2 × 103 L stars should be treated with care.

Figure 9 shows the mass-loss rate as a function of luminosity, along with M determined by Repolust et al. (2004), Mokiem et al. (2005), and Crowther et al. (2006) for other Galactic data sets. The values derived by these authors assume smooth winds; we corrected their rates adopting the clumping factor (fcl = 10) used in our analysis. We find the mass-loss rates of the brightest stars in our sample are consistent with these previous studies of Galactic O- and early B-type stars.

For stars without disk signatures that are dimmer than 2 × 103 L, we find mass-loss rates (in M yr−1) up to log M˙~8.5$\dot M\~ - 8.5$. Although these are extremely low rates, they show that the initiation of the stellar outflow already occurs during the PMS phase. Assuming the wind-driving mechanism is radiation pressure on spectra lines, Krtička (2014) predicted mass-loss rates for main-sequence B-type stars in this part of parameter space (their models T14, T16, T18, and T20). Typical M˙${\dot M}$ values are ~10−11 Myr−1, that is, up to about two orders of magnitude lower than we find. Taking our results at face value, this either indicates that the theoretical predictions are significantly too low, or that PMS B stars have considerably stronger mass loss than main-sequence B stars in the same part of the (Teff, L) space. As pointed out above, for the PMS stars with disks, we consider the mass-loss rates as tentative upper limits.

thumbnail Fig. 9

Mass-loss rate as a function of luminosity for the M17 sample. The markers are identical to those in Fig. 2. The additional sources shown as gray squares are the Galactic OB stars from Repolust et al. (2004), Mokiem et al. (2005), and Crowther et al. (2006).

6 Conclusions

We have analyzed optical spectra of 18 stars in the young star-forming region M17 with spectral types ranging from O4.5 to B9, corresponding to temperatures from 46000 to 11 000 K, using the stellar atmosphere model FASTWIND and fitting algorithm KIWI-GA. The sources are still highly reddened, with visual extinctions between AV = 3.6 and 10.6 mag. Three of the stars show gaseous and dusty circumstellar material that is likely to be remnant features of their formation. Three other stars display hot dusty circumstellar material in their SEDs. The sample is unique in that it constitutes a population of massive and intermediate-mass stars close to or on the zero-age main sequence, allowing us to study the actual outcome of star formation in this mass range. Our main conclusions are listed below:

  • The HRD positions of the six most massive stars (13 ≲ M ≲ 47 M) are consistent with the theoretical location of the zero-age main sequence as given by the MIST evolutionary tracks; the 12 lower-mass stars (3 ≲ M ≲ 7 M) are PMS sources. The cluster age is constrained to 0.40.2+0.6$0.4_{ - 0.2}^{ + 0.6}$ Myr based on the PMS population. We conclude that high-mass ZAMS stars can be found by searching for highly reddened sources in star-forming regions;

  • The three sample stars with gaseous disks (B275, B243, and B286) are located farther from the main sequence than the stars without a disk, which is in line with the hypothesis that these are the least evolved objects in the sample and have not yet lost their accretion disk.

  • Within the short time span of the formation process of these stars, we find a strong correlation between age and stellar mass, with lower-mass stars being older. This is inconsistent with these stars crossing the birthline simultaneously during formation;

  • We identify a dichotomy between the projected equatorial rotational velocity for stars M > 13 M, which are O-type stars on the ZAMS, and stars 3 ≲ M ≲ 7 M, which will become B-type stars on the ZAMS. When we extrapolate the projected spin velocities to the ZAMS for all stars, the high-mass stars have v sin i ≲ 0.3 υcrit and the intermediate-mass stars have υ sin i ≲ 0.6 υcrit. This is in line with previous results for well-established main-sequence populations and may suggest different mechanisms for angular momentum accretion between the two groups;

  • Surface abundances of C, N, O, and Si are most accurate for the slowly spinning and bright source B311. They match those of the current solar abundances, which supports the young age of M17 and suggests that the gas from which the cluster formed has not been significantly chemically enriched relative to the solar nebula gas;

  • No strong spatial pattern of extinction properties can be identified. We do find a correlation between RV and the presence or absence of circumstellar matter. The stars showing signs of circumstellar disks have higher RV values, suggesting that the different size and composition properties of the solid-state material in the line of sight is due to the local conditions close to the star;

  • For the stars more massive than 10 M we find mass-loss rates that are in line with the observed rates of Galactic main-sequence OV-III stars. For the first time, we derive mass-loss properties for PMS B V-III stars and find rates of up to 10−8.5 M yr−1. These should be considered as tentative, but establish at face value that stellar winds are already initiated in the PMS phase. They are higher by two orders of magnitude than the predictions for main-sequence B stars by Krtička (2014). If these theoretical rates are correct, PMS-star winds might be considerably stronger than the MS-star winds of stars with similar stellar properties.

This unique sample of stars gives insight into the outcome of massive star formation, providing both constraints for star formation theory and initial conditions for stellar evolution. The mass-loss properties of the PMS population remain uncertain, but could be improved with more focused studies. More data on the wind diagnostics and the contaminants could benefit studies like this. UV detections of the outflows would be very insightful, but are extremely difficult to obtain because the extinction is strong. Alternatively, James Webb Space Telescope observations of the more sensitive Bra might be able to provide improved mass-loss estimates (Puls et al. 2008; Najarro et al. 2011).

Data availability

Overviews of the other stars are available at https://doi.org/10.5281/zenodo.13285505

Acknowledgements

We thank the referee for insightful comments that helped to improve this manuscript. This publication is part of the project ‘Massive stars in low-metallicity environments: the progenitors of massive black holes’ with project number OND1362707 of the research TOP-programme, which is (partly) financed by the Dutch Research Council (NWO). FB acknowledges the support of the European Research Council (ERC) Horizon Europe under grant agreement number 101044048. MCRT acknowledges support by the German Aerospace Center (DLR) and the Federal Ministry for Economic Affairs and Energy (BMWi) through program 50OR2314 ‘Physics and Chemistry of Planet-forming disks in extreme environments’. This work is based on observations collected at the European Organization for Astronomical Research in the Southern Hemisphere under ESO programs 60.A-9404(A), 085.D-0741, 089.C-0874(A), 091.C-0934(B) and 103.D-0099. We thank SURF (www.surf.nl) for the support in using the National Supercomputer Snellius. This research has made use of NASA’s Astrophysics Data System. This work makes use of the Python programming language5, in particular packages including NumPy (Harris et al. 2020), SciPy (Virtanen et al. 2020), and Matplotlib (Hunter 2007).

Appendix A Fit results

Table A.1

Best fit stellar parameters from FASTWIND/GA fitting.

thumbnail Fig. A.1

Overview of FASTWIND/KIWI-GA fits of all studied lines of each star in the sample. The black vertical bars indicate the observed data, with the length indicating the 1σ uncertainty on the data. The green line shows the best fit model and the shaded region the range of models in the 1σ confidence interval. A more detailed overview of the fit results is shown in Figure 1 for B311 and available online for the other stars at https://doi.org/10.5281/zenodo.13285505.

Appendix B Extinction fits

The extinction towards each of the stars varies strongly. Figure B.1 shows an overview of the reddened and dereddened SEDs of the stars. The corresponding AV and RV values are also indicated. Figure B.2 shows the relation between AV and RV for each star. Some stars show strong relations, this can be due to a small number of photometric data points being available for the fit. B215 has only four data points available for the fit, as the longer wavelength data shows strong IR excess emission. As a result the three free parameters of the fit become quite degenerate and we find a strong relation. However, the resulting uncertainty on AV and RV, and the absolute magnitude remains limited, see Table 3. The best fit value might be unreliable and subject to significant change if more photometric data are added.

thumbnail Fig. B.1

Observed and dereddened SED of each star. Black squares and dots indicate observed photometric data, purple markers indicate dereddened data. The squares indicate data with IR excess emission; these are not used for the determination of the extinction. The dashed gray line shows the reddened stellar model and the purple solid line the original stellar model.

thumbnail Fig. B.2

AV and RV relations found in the fitting process. The color indicates the χ2 value of the combination of AV and RV and the red lines indicate the 1σ and 2σ confidence contours.

Appendix C Mass discrepancy

Herrero et al. (1992) first noted the difference between spectroscopic surface gravity of stars and their inferred evolutionary model surface gravity. Since then improved models have decreased the gap, particularly above 15 M (e.g Herrero et al. 2002). However, Repolust et al. (2004) find a systematic offset for stars above 15 M. Figure C.1 shows the evolutionary mass at the ZAMS as function of the spectroscopic mass. No clear trend or offset is visible at the low mass end. At higher masses there appears to be a slight trend in which higher evolutionary masses are found. One outlier stands out, which is B272 showing a significantly higher spectroscopic mass than evolutionary mass. This is due to the high surface gravity found. A possible cause of the high value of log ɡ could be the low signal-to-noise ratio and contamination in the spectrum, resulting in a strange temperature and gravity combination as best fit.

thumbnail Fig. C.1

Stellar mass based on MIST evolutionary tracks plotted against mass based on spectroscopy. The correspondence between the two estimates is good and at the low-mass end does not reveal systematic differences. Possibly, the derived evolutionary masses are higher at the high-mass end. Markers are identical to Figure 2.

References

  1. Asplund, M., Grevesse, N., Sauvai, A. J., & Scott, P. 2009, ARA&A, 47, 481 [NASA ADS] [CrossRef] [Google Scholar]
  2. Backs, F., Poorta, J., Rab, C., et al. 2023, A&A, 671, A13 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  3. Bate, M. R. 2018, MNRAS, 475, 5618 [Google Scholar]
  4. Beltrán, M. T., & de Wit, W. J. 2016, A&A Rev., 24, 6 [CrossRef] [Google Scholar]
  5. Benjamin, R. A., Churchwell, E., Babler, B. L., et al. 2003, PASP, 115, 953 [Google Scholar]
  6. Bordier, E., Frost, A. J., Sana, H., et al. 2022, A&A, 663, A26 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  7. Brands, S. A., de Koter, A., Bestenlehner, J. M., et al. 2022, A&A, 663, A36 [Google Scholar]
  8. Bressan, A., Marigo, P., Girardi, L., et al. 2012, MNRAS, 427, 127 [NASA ADS] [CrossRef] [Google Scholar]
  9. Broos, P. S., Getman, K. V., Povich, M. S., et al. 2013, ApJS, 209, 32 [NASA ADS] [CrossRef] [Google Scholar]
  10. Busquet, G., Estalella, R., Palau, A., et al. 2016, ApJ, 819, 139 [Google Scholar]
  11. Caratti o Garatti, A., Stecklum, B., Garcia Lopez, R., et al. 2017, Nat. Phys., 13, 276 [Google Scholar]
  12. Castelli, F., & Kurucz, R. L. 2004, A&A, 419, 725 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  13. Cesaroni, R., Galli, D., Lodato, G., Walmsley, M., & Zhang, Q. 2006, Nature, 444, 703 [NASA ADS] [CrossRef] [Google Scholar]
  14. Choi, J., Dotter, A., Conroy, C., et al. 2016, ApJ, 823, 102 [Google Scholar]
  15. Crowther, P. A., Lennon, D. J., & Walborn, N. R. 2006, A&A, 446, 279 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  16. de Mink, S. E., Langer, N., Izzard, R. G., Sana, H., & de Koter, A. 2013, ApJ, 764, 166 [Google Scholar]
  17. Derkink, A. R., Ramírez-Tannus, M. C., Kaper, L., et al. 2024, A&A, 681, A112 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  18. Díaz-Márquez, E., Grau, R., Busquet, G., et al. 2024, A&A, 682, A180 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  19. Dotter, A. 2016, ApJS, 222, 8 [Google Scholar]
  20. Draine, B. T. 2003, ARA&A, 41, 241 [NASA ADS] [CrossRef] [Google Scholar]
  21. Duez, V., & Mathis, S. 2010, A&A, 517, A58 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  22. Dufton, P. L., Langer, N., Dunstall, P. R., et al. 2013, A&A, 550, A109 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  23. Fitzpatrick, E. L. 1999, PASP, 111, 63 [Google Scholar]
  24. Getman, K. V., Feigelson, E. D., Kuhn, M. A., et al. 2014, ApJ, 787, 108 [Google Scholar]
  25. Hanson, M. M., Howarth, I. D., & Conti, P. S. 1997, ApJ, 489, 698 [NASA ADS] [CrossRef] [Google Scholar]
  26. Harris, C. R., Millman, K. J., van der Walt, S. J., et al. 2020, Nature, 585, 357 [NASA ADS] [CrossRef] [Google Scholar]
  27. Hawcroft, C., Sana, H., Marry, L., et al. 2023, A&A, 688, A105 [Google Scholar]
  28. Herrero, A., Kudritzki, R. P., Vilchez, J. M., et al. 1992, A&A, 261, 209 [NASA ADS] [Google Scholar]
  29. Herrero, A., Puls, J., & Najarro, F. 2002, A&A, 396, 949 [CrossRef] [EDP Sciences] [Google Scholar]
  30. Hirashita, H., & Voshchinnikov, N. V. 2014, MNRAS, 437, 1636 [Google Scholar]
  31. Hobbs, L. M., York, D. G., Thorburn, J. A., et al. 2009, ApJ, 705, 32 [Google Scholar]
  32. Hoffmeister, V. H., Chini, R., Scheyda, C. M., et al. 2008, ApJ, 686, 310 [NASA ADS] [CrossRef] [Google Scholar]
  33. Holgado, G., Simón-Díaz, S., Haemmerlé, L., et al. 2020, A&A, 638, A157 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  34. Holgado, G., Simón-Díaz, S., Herrero, A., & Barbá, R. H. 2022, A&A, 665, A150 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  35. Hosokawa, T., & Omukai, K. 2009, ApJ, 691, 823 [Google Scholar]
  36. Hosokawa, T., Yorke, H. W., & Omukai, K. 2010, ApJ, 721, 478 [Google Scholar]
  37. Hosokawa, T., Offner, S. S. R., & Krumholz, M. R. 2011, ApJ, 738, 140 [NASA ADS] [CrossRef] [Google Scholar]
  38. Huang, W., Gies, D. R., & McSwain, M. V. 2010, ApJ, 722, 605 [Google Scholar]
  39. Hunter, J. D. 2007, Comput. Sci. Eng., 9, 90 [NASA ADS] [CrossRef] [Google Scholar]
  40. Inutsuka, S., Aikawa, Y., Muto, T., Tomida, K., & Tamura, M. 2023, ASP Conf. Ser., 534, Protostars and Planets VII [Google Scholar]
  41. Kausch, W., Noll, S., Smette, A., et al. 2015, A&A, 576, A78 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  42. Kee, N. D., & Kuiper, R. 2019, MNRAS, 483, 4893 [NASA ADS] [CrossRef] [Google Scholar]
  43. Kobayashi, C., Karakas, A. I., & Lugaro, M. 2020, ApJ, 900, 179 [Google Scholar]
  44. Krticka, J. 2014, A&A, 564, A70 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  45. Krumholz, M. R., Klein, R. I., McKee, C. F., Offner, S. S. R., & Cunningham, A. J. 2009, Science, 323, 754 [Google Scholar]
  46. Kuiper, R., Klahr, H., Beuther, H., & Henning, T. 2010, ApJ, 722, 1556 [NASA ADS] [CrossRef] [Google Scholar]
  47. Kunitomo, M., Guillot, T., Takeuchi, T., & Ida, S. 2017, A&A, 599, A49 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  48. Lancaster, L., Ostriker, E. C., Kim, J.-G., & Kim, C.-G. 2021, ApJ, 922, L3 [NASA ADS] [CrossRef] [Google Scholar]
  49. Lin, M.-K., Krumholz, M. R., & Kratter, K. M. 2011, MNRAS, 416, 580 [NASA ADS] [Google Scholar]
  50. Liu, Z., Cui, W., Liu, C., et al. 2022, ApJ, 937, 110 [NASA ADS] [CrossRef] [Google Scholar]
  51. Markova, N., Puls, J., Repolust, T., & Markov, H. 2004, A&A, 413, 693 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  52. Modigliani, A., Goldoni, P., Royer, F., et al. 2010, SPIE Conf. Ser., 7737, 773728 [Google Scholar]
  53. Mokiem, M. R., de Koter, A., Puls, J., et al. 2005, A&A, 441, 711 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  54. Najarro, F., Hanson, M. M., & Puls, J. 2011, A&A, 535, A32 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  55. Oliva, G. A., & Kuiper, R. 2020, A&A, 644, A41 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  56. Oliva, A., & Kuiper, R. 2023, A&A, 669, A80 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  57. Palla, F. & Stahler, S. W. 1990, ApJ, 360, L47 [NASA ADS] [CrossRef] [Google Scholar]
  58. Paxton, B., Bildsten, L., Dotter, A., et al. 2011, ApJS, 192, 3 [Google Scholar]
  59. Poorta, J., Ramírez-Tannus, M. C., de Koter, A., et al. 2023, A&A, 676, A122 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  60. Povich, M. S., Stone, J. M., Churchwell, E., et al. 2007, ApJ, 660, 346 [Google Scholar]
  61. Povich, M. S., Churchwell, E., Bieging, J. H., et al. 2009, ApJ, 696, 1278 [NASA ADS] [CrossRef] [Google Scholar]
  62. Povich, M. S., Townsley, L. K., Robitaille, T. P., et al. 2016, ApJ, 825, 125 [NASA ADS] [CrossRef] [Google Scholar]
  63. Puls, J., Urbaneja, M. A., Venero, R., et al. 2005, A&A, 435, 669 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  64. Puls, J., Vink, J. S., & Najarro, F. 2008, A&A Rev., 16, 209 [NASA ADS] [CrossRef] [Google Scholar]
  65. Ramírez-Agudelo, O. H., Simón-Díaz, S., Sana, H., et al. 2013, A&A, 560, A29 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  66. Ramírez-Agudelo, O. H., Sana, H., de Mink, S. E., et al. 2015, A&A, 580, A92 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  67. Ramírez-Tannus, M. C., Kaper, L., de Koter, A., et al. 2017, A&A, 604, A78 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  68. Ramírez-Tannus, M., Derkink, A. R., Backs, F., et al. 2024, A&A, in press, https://doi.org/18.1851/8884-6361/282458256 [Google Scholar]
  69. Reed, B. C. 2003, AJ, 125, 2531 [NASA ADS] [CrossRef] [Google Scholar]
  70. Repolust, T., Puls, J., & Herrero, A. 2004, A&A, 415, 349 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  71. Riello, M., De Angeli, F., Evans, D. W., et al. 2021, A&A, 649, A3 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  72. Rosen, A. L. 2022, ApJ, 941, 202 [NASA ADS] [CrossRef] [Google Scholar]
  73. Sana, H., de Mink, S. E., de Koter, A., et al. 2012, Science, 337, 444 [Google Scholar]
  74. Santolaya-Rey, A. E., Puls, J., & Herrero, A. 1997, A&A, 323, 488 [NASA ADS] [Google Scholar]
  75. Schootemeijer, A., Langer, N., Lennon, D., et al. 2021, A&A, 646, A106 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  76. Schultz, G. V., & Wiemer, W. 1975, A&A, 43, 133 [NASA ADS] [Google Scholar]
  77. Shu, F. H. 1977, ApJ, 214, 488 [Google Scholar]
  78. Shu, F. H., Adams, F. C., & Lizano, S. 1987, ARA&A, 25, 23 [Google Scholar]
  79. Skrutskie, M. F., Cutri, R. M., Stiening, R., et al. 2006, AJ, 131, 1163 [NASA ADS] [CrossRef] [Google Scholar]
  80. Steiger, J. H. 1998, Struct. Eq. Model., 5, 411 [CrossRef] [Google Scholar]
  81. Stoop, M., Derkink, A., Kaper, L., et al. 2024, A&A, 681, A21 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  82. Sundqvist, J. O., & Puls, J. 2018, A&A, 619, A59 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  83. Tramper, F., Sana, H., de Koter, A., & Kaper, L. 2011, ApJ, 741, L8 [Google Scholar]
  84. van Gelder, M. L., Kaper, L., Japelj, J., et al. 2020, A&A, 636, A54 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  85. Virtanen, P., Gommers, R., Oliphant, T. E., et al. 2020, Nat. Methods, 17, 261 [Google Scholar]
  86. Xiang, F. Y., Li, A., & Zhong, J. X. 2017, ApJ, 835, 107 [NASA ADS] [CrossRef] [Google Scholar]
  87. Xu, Y., Moscadelli, L., Reid, M. J., et al. 2011, ApJ, 733, 25 [NASA ADS] [CrossRef] [Google Scholar]

3

The applied conversion of spectral type into temperature is from http://www.isthe.com/chongo/tech/astro/HR-temp-mass-table-byhrclass.html

All Tables

Table 1

List of the analyzed M17 sources.

Table 2

Diagnostic features used in the fitting process.

Table 3

Extinction properties and luminosity anchor, Jabs.

Table 4

Derived properties of stars in M17 based on evolutionary tracks.

Table A.1

Best fit stellar parameters from FASTWIND/GA fitting.

All Figures

thumbnail Fig. 1

Overview of the fit to B311. The top part shows the fits to each diagnostic. The vertical black bars indicate the normalized observed spectra, and the green line shows the best-fit model. The length of the black bars indicate the 1σ uncertainty on the data, and the shaded region shows the 1σ confidence interval of the model spectrum. The name of the diagnostic feature is given at the bottom of each panel. The bottom part shows the parameter distributions sampled by KIWI-GA. The fit parameters are displayed in the top left corner. The shade of the points is a measure of the generation: darker points are sampled in later generations. The vertical yellow line shows the best-fit value, the darker yellow shaded region shows the 1σ confidence interval, and the lighter yellow shaded region shows the 2σ confidence interval.

In the text
thumbnail Fig. 2

Hertzsprung-Russell diagram of the sample of M17 stars. The stars are separated into three categories, depending on their circumstellar emission features. Pink pentagons stars show both emission from a gaseous disk and IR excess emission from hot circumstellar dust. Orange indicates stars that only show IR excess, and purple indicates that no circumstellar material was detected here or by RT17. The MIST PMS evolutionary tracks are overplotted in gray, and the masses are labeled on the left. We show the ZAMS in black (on the left) and the birthline (on the right) (Dotter 2016; Choi et al. 2016). The isochrones (with t=0 at the birthline) are shown with the dashed colored lines. The thin dashed gray lines show the isoradius lines to guide the eye. The names of the stars are displayed on the points and are visible when zooming in.

In the text
thumbnail Fig. 3

Distribution of PMS ages of the stars in M17 since they passed the birthline. The solid black line indicates an approximate kernel density estimate based on the best-fit ages and their confidence intervals. The thin dashed lines indicate the contribution of the individual sources. Higher-mass stars (M > 10 M) that have reached the main sequence are excluded.

In the text
thumbnail Fig. 4

Time remaining for stars to reach the ZAMS as function of mass for the PMS stars in M17. The markers are identical to those in Fig. 2.

In the text
thumbnail Fig. 5

PMS age as function of mass measured from the moment the stars pass the birthline. The black line indicates the total time it takes to reach the ZAMS, starting from the birthline, and the dashed gray line shows 70% of that time. The markers are the same as in Fig. 2.

In the text
thumbnail Fig. 6

Time since the beginning of the main accretion phase for different stellar masses. The gray area marks the main accretion phase with a constant accretion rate for all masses. The red area shows the PMS phase in which the star contracts to the main sequence. Blue indicates the main sequence. The dashed gray line indicates 70% of the PMS phase, as in Fig. 5. The data points indicate the time it would have taken the stars to first accrete their mass and then contract to their current state.

In the text
thumbnail Fig. 7

Distribution of the projected equatorial rotational velocities divided by the critical rotation. Top panel: Higher-mass stars that have reached the ZAMS. Bottom panel: Lower-mass stars that have not yet reached the ZAMS. The value of 3 sin i/υcrit is shown for both the current rotation rate and the expected rotation rate when they reach the main sequence.

In the text
thumbnail Fig. 8

Extinction parameters AV and RV of the sources in M17. The markers are identical to those in Fig. 2. The RV values tend to be higher for objects with IR excess (with the exception of B215, which has poorly constrained extinction properties).

In the text
thumbnail Fig. 9

Mass-loss rate as a function of luminosity for the M17 sample. The markers are identical to those in Fig. 2. The additional sources shown as gray squares are the Galactic OB stars from Repolust et al. (2004), Mokiem et al. (2005), and Crowther et al. (2006).

In the text
thumbnail Fig. A.1

Overview of FASTWIND/KIWI-GA fits of all studied lines of each star in the sample. The black vertical bars indicate the observed data, with the length indicating the 1σ uncertainty on the data. The green line shows the best fit model and the shaded region the range of models in the 1σ confidence interval. A more detailed overview of the fit results is shown in Figure 1 for B311 and available online for the other stars at https://doi.org/10.5281/zenodo.13285505.

In the text
thumbnail Fig. B.1

Observed and dereddened SED of each star. Black squares and dots indicate observed photometric data, purple markers indicate dereddened data. The squares indicate data with IR excess emission; these are not used for the determination of the extinction. The dashed gray line shows the reddened stellar model and the purple solid line the original stellar model.

In the text
thumbnail Fig. B.2

AV and RV relations found in the fitting process. The color indicates the χ2 value of the combination of AV and RV and the red lines indicate the 1σ and 2σ confidence contours.

In the text
thumbnail Fig. C.1

Stellar mass based on MIST evolutionary tracks plotted against mass based on spectroscopy. The correspondence between the two estimates is good and at the low-mass end does not reveal systematic differences. Possibly, the derived evolutionary masses are higher at the high-mass end. Markers are identical to Figure 2.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.