Free Access
Issue
A&A
Volume 636, April 2020
Article Number A59
Number of page(s) 10
Section Stellar atmospheres
DOI https://doi.org/10.1051/0004-6361/201937341
Published online 16 April 2020

© ESO 2020

1 Introduction

Due to their strong stellar winds and ionizing fluxes, massive stars drive the evolution of their host environments, providing both mechanical and chemical feedback to their surroundings (for a recent review, see e.g., Bresolin et al. 2008). Binary interactions play an important role in the evolution of these massive stars: In the Milky Way, most massive stars are found in binary systems with orbital periods of less than four years (Sana & Evans 2011). These binary systems are close enough to interact during their lifetimes through mass exchange or coalescence (Podsiadlowski et al. 1992). It is estimated that as many as 40% of all O-type stars interact with a companion before leaving the main sequence, and more than half of these interactions (24% of all O-type stars) lead to an overcontact configuration, where both components overfill their Roche Lobes (Sana et al. 2012).

These interactions can fundamentally change the evolution of massive stars; however, what exactly happens during the overcontact phase is not understood well. The complex combination of physical processes occurring simultaneously during the interaction phase, including mass exchange, internal mixing, and internal structure adjustments cause large uncertainties in evolutionary models (Pols 1994; Wellstein et al. 2001; de Mink et al. 2007). Depending on the internal mixing processes, the components of a massive overcontact system can either merge or shrink within their Roche-lobes and continue to evolve via the chemically homogeneous evolution pathway (Langer 2012; de Mink & Mandel 2016; Marchant et al. 2016; Mandel & de Mink 2016). Uncertainties in the evolution of these systems is further exacerbated by the lack of observational constraints: So far only eight overcontact systems are known (Almeida et al. 2015; Lorenzo et al. 2014, 2017; Hilditch et al. 2005; Howarth et al. 2015; Popper 1978; Penny et al. 2008).

In general, despite its importance, the nature of internal mixing in massive stars is poorly understood (Grin et al. 2017; Brott et al. 2011; Bowman et al. 2019). Constraints on these mixing processes are thus of vital importance to our understanding of massive star evolution. Determining accurate surface abundances requires high signal-to-noise spectra and appropriate nonlocal thermodynamic equilibrium (NLTE) radiative transfer codes (e.g., Grin et al. 2017). A common feature seen throughout the life cycle of a massive star is a deviation from spherical symmetry. Even in single massive stars, deviations from spherical symmetry are common due to rotational distortion. So far, however, most of the tools currently available to spectroscopically analyze these systems are one-dimensional (Hillier & Miller 1998; Gräfener et al. 2002; Hamann & Gräfener 2003; Puls et al. 2005; Sander et al. 2015). In order to properly analyze the photospheric and wind components of systems in the temperature regime where O-type stars are found, NLTE radiative transfer codes are required. Unfortunately, even in one dimension, these codes are quite computationally expensive, making a full three-dimensional implementation difficult when considering current computational limitations.

One method that can help to better account for the three-dimensional nature of massive stars uses a spectroscopic surface patch model(Palate & Rauw 2012). Patch models work by breaking the surface of a system into small patches and handling the spectral contribution of each patch individually. Based on the local surface parameters, spectral profiles can be assigned and a final spectrum can be integrated by combining the individual patches across the visible surface. This method has shown great promise in its ability to model a variety of nonspherical systems and effects (Palate & Rauw 2012; Palate et al. 2013a,b). Here we take a step further and bridge two state-of-the-art codes in order to build a three-dimensional atmospheric patch modeling tool that is bothsuitable for massive OB stars and broad enough to be applicable in a number of stellar and orbital configurations.

In this paper we present the SPAMMS (Spectroscopic PAtch Model for Massive Stars) code, a new spectroscopic analysis technique tailored to massive stars that takes three-dimensional distortion effects into account. The paper is organized as follows. Section 2 details the steps used to create the patch model and explains the input grid preparation. In Sect. 3 we benchmark the code against FASTWIND for spherical cases. Section 4 provides several example applications of the code for both binary and single star cases. In Sect. 5 we compare SPAMMS with similar codes and we discuss the assumptions and limitations of the code. Finally, in Sect. 6 we summarize and discuss future plans.

2 Method

The computation of a surface patch model can be divided into four major steps: (1) creation of a mesh representing the geometry of the system, (2) population of the mesh with local parameters, (3) assignment and Doppler shifting of spectral line profiles based on the local parameters, and (4) integration of all line profiles across the surface. A visual representation of these steps can be found in Fig. 1.

2.1 Computation and population of a geometric mesh

The first two steps in the computation of the surface patch model, the creation and population of a mesh, are also important for the field of eclipsing binary light curve modeling and therefore there are several codes available that focus on accurate and robust mesh creation and population (Wilson & Devinney 1971; Wilson 1979, 2008; Wilson & Van Hamme 2014; Orosz & Hauschildt 2000; Prsa & Zwitter 2005; Prša et al. 2016). Instead of writing our own, we choose to use PHOEBE II (hereafter PHOEBE), one of these preexisting, well-established codes (Prša et al. 2016).

PHOEBE is a Wilson–Devinney-like code designed for the analysis and modeling of eclipsing binary systems (Prša et al. 2016). This code computes a forward model synthetic light curve by creating a triangulated mesh grid representing the surface geometry of each star in the system. PHOEBE allows for deviations from spherical geometry, which are taken into account via rotational distortion and/or Roche distortion. This allows for accurate modeling of nonspherical systems such as overcontact binaries, semi-detached binaries and rapidly-rotating single stars. Given the parameters of a system and the chosen distortion method, the three-dimensional equipotential is calculated for the surfaces of the stars in the system. The mesh is then generated by creating roughly equal area triangles where the vertices follow the equipotential surface. These are then slightly corrected to account for the underestimation of the surface area.

Once constructed, the mesh is then populated with local properties for each triangle (i.e., temperature, surface gravity, incident angle, radial velocity, etc.) taking into account a suite of physical effects including but not limited to gravity brightening, limb darkening and reflection effects. The surface gravity per triangle is generated based on the gradient of the surface potential. Based on the surface gravity using the von Zeipel (1924) formalism, the temperature for each mesh triangle is populated. The temperature per triangle is scaled to the polar temperature which is a function of the given effective temperature. For contact systems, the components are separated in the middle of the contact region and the generated surface elements are based solely on the component they are assigned to (e.g., when calculating the temperature, the triangle only accounts for the polar temperature of the star it is associated with). For a detailed summary of all the physical phenomena included in PHOEBE, as well as how the mesh creation and population are computed, see Prša et al. (2016); Horvat et al. (2018). The top panels of Fig. 1 show these two steps of the patch model calculation for an overcontact system.

2.2 Emergent intensities from FASTWIND

In order to properly calculate the total integrated line profiles across a stellar surface, we need to obtain the emergent intensities as a function of wavelength for each discretized surface element. The flux at each wavelength bin is given by F λ = n I λ,n a n μ n v n , \begin{equation*} F_{\lambda} = \sum\limits_{n} I_{\lambda, n} a_n \mu_n v_n,\end{equation*}(1)

where the subscript n denotes a specific triangle in the mesh, Iλ,n is the emergent intensity at a given wavelength for triangle n, an is the area of the triangle, μn is the cosine of the emergent angle, and vn is the fraction of the triangle that is visible to the observer (this is only relevant if a portion of the triangle is obscured or if the triangle is pointed away from the observer). The values in Eq. (1) are visually represented and labeled in the right panel of Fig. 2.

The emergent intensity line profiles need to be calculated with an appropriate radiative transfer code, here we adopt FASTWIND (Puls et al. 2005). FASTWIND is a unified, NLTE atmosphere and spectrum synthesis code suited for stars of spectral type O, B, and A, and a wide range of wind-strengths. It is therefore appropriate for the analysis of stars across the OB-type spectral range. Given a set of input stellar and wind parameters, FASTWIND first calculates the atmosphere and wind structure of the star, and then computes the formal solution, returning a user defined set of intrinsic spectral lineprofiles. However the default line profiles given by FASTWIND are integrated line profiles in units of flux, and not emergent intensities. Thus, as a first task, we need to retrieve the emergent intensity line profiles from FASTWIND.

FASTWIND operates using p-z geometry, which uses a series of parallel rays (denoted p-rays) that probe different regions of the stellar surface and wind (Hummer & Rybicki 1971) (see left panel of Fig. 2). These p-rays are denoted by their distance from the center of the star on their closest approach in units of stellar radii (i.e., the p-coordinate defines the so-called impact parameter). A ray that passes through the center of the star is given a p-ray value of 0 while one that is tangential to the surface of the star has a p-ray of 1 and a ray passing through the wind has a p-ray of greater than 1. Using the stellar and wind structure, FASTWIND creates 64 p-rays by default and performs radiative transfer calculations for each of them. As mentioned above, these are then integrated to get the final flux profile. Here we instead use these p-rays to obtain the emergent intensities. Since the p-rays probe different regions, each p-ray corresponds to a specific emergent intensity at a specific emergent angle and thus a specific value of μ. It is a trivial exercise to interpolate across each wavelength point in the p-rays to obtain the emergent intensity as a function of μ and wavelength for both the photosphere and the wind. Figure 2 shows a comparison of the p-ray geometry and the emergent intensity geometry.

The mesh created by PHOEBE only corresponds to the photosphere of the system, while the winds are extended and optically thin. Optically thin winds do not eclipse in the same way that a photosphere does, so to account for this difference, we compute two separate sets of emergent intensities, one that corresponds to the photosphere of the star and one that corresponds to the extended winds. To limit the complexity, we use the same mesh geometry for the photosphere and the winds (the effects of this assumption are discussed in Sect. 5.2). For our computations, the wind extends out to ~120 stellar radii. Therefore, for the calculation of the emergent intensities, p-rays originating from the stellar surface (i.e., 0–1) are used for the photosphere and to avoid double counting, p-rays originating in the wind (i.e., 1–120) are used for the winds. Since we do not include p-rays down to 0 for the winds, the maximum μ does not reach 1, so we rescale the μ angles such that a p-ray of 1 corresponds to a μ of 1. We then interpolate and create a set of 101 emergent intensity line profiles for the photosphere and wind corresponding to μ angles between 0 and 1 inclusive in steps of 0.01.

thumbnail Fig. 1

Example of the four steps of the patch model computation for an overcontact system. Top left: mesh representing the geometry of the system. Top right: same mesh, but with the face color representing the local temperature of each mesh element. Lighter shades represent higher temperatures and darker shades represent lower temperatures. Bottom left: same as top right, but with assigned spectral profiles plotted for three triangles across the surface. The He I λ4471 and He II λ4541 lines are plotted. Bottom right: final integrated spectral line profiles for the entire visible surface for the orientation shown in the other panels of this figure. Again, the He I λ4471 and He II λ4541 lines are plotted.

thumbnail Fig. 2

Left: sketch of the p-ray geometry. The quarter circle plotted in the bottom left represents the stellar surface and various p-rays leaving the system toward the observer (located to the right of the system) are indicated. The p-rays with values greater than 1 originate in the wind, which extends out to 120 stellar radii. Middle: sketch of the conversion from p-ray geometry to emergent intensity geometry. The quarter circle in the bottom left is the stellar surface and the shaded region represents the winds. For a given emergent angle, two p-rays are obtained, one originating from the stellar surface (ps) and one originating in the wind (pw) Right: sketch of emergent intensity geometry. A patch of the stellar surface is plotted with two emerging rays, one normal to the surface (labeled n$\stackrel{\rightarrow}{n}$) and one pointing to the observer (labeled Iλ). θ is the emergent angle of the ray toward the observer and a represents the area of the patch.

2.3 Computation of input FASTWIND grid

We can now use this method to create a grid of FASTWIND models, which is then used for the assignment of spectral line profiles to the mesh. The grid of FASTWIND models covers a 5 dimensional parameter space: effective temperature, surface gravity, radius, Helium abundance and CNO abundance. The temperature and surface gravity dimensions cover most of the main sequence lifetime of typical massive stars between the masses of 20 and 60 M. Figure 3 shows the coverage of the FASTWIND grid for the temperature and surface gravity dimensions, which are in steps of 1000 K and 0.1 dex respectively. The grid also covers 11 radius points, spanning from 6.5 to 9.0 R inclusive in steps of 0.25 R and 4 helium abundance steps: 0.06, 0.10, 0.15 and 0.20, where the helium abundance (YHe) is given by: Y He = N He N H . \begin{equation*} Y_{\mathrm{He}} = \frac{N_{\mathrm{He}}}{N_{\mathrm{H}}}. \end{equation*}(2)

We note that NHe and NH are the number abundances of helium and hydrogen respectively. Finally, the grid includes 5 CNO abundance steps: 6.5, 7.0, 7.5, 8.0 and 8.5, where the abundance per element is given by: ε X =log N X N H +12. \begin{equation*} \varepsilon_{\mathrm{X}} = \log \frac{N_{\mathrm{X}}}{N_{\mathrm{H}}} + 12. \end{equation*}(3)

Here, NX and NH are the number abundances of the given element and hydrogen respectively. The grid is calculated with εC = εN = εO, however while equal abundances are indeed unphysical, this does not have a large effect on the CNO lines themselves, the lines of other elements or the atmospheric structure (Carneiro et al. 2019). The grid is computed at LMC metallicity (ZLMC = 0.5 Z) with wind parameters typical for this mass range and metallicity. We assume a terminal wind speed of 3000 km s−1 and a velocity field exponent β of 0.8. The mass loss rate is calculated using the prescription described in Vink et al. (2001) with an assumed mass of 30 M. This mass choice is motivated by the derived component masses of an overcontact binary discussed in Sect. 4.1, however the code allows for the usage of a user-defined input grid. In the present case, the resulting grid contains 43 780 FASTWIND models. This is sufficient for our purposes but this grid can easily be extended if required in the future.

thumbnail Fig. 3

Coverage of FASTWIND grid in temperature surface gravity space. Evolutionary tracks from Brott et al. (2011) are plotted for various masses in black and our grid points are represented by the red dots.

2.4 Assignment and Integration of line profiles

The third step in the calculation of the surface patch model is the assignment of the spectral line profiles to the mesh. As mentioned above, the mesh created and populated by PHOEBE contains the local properties needed to assign the FASTWIND models, namely the temperature, surface gravity, radius and incident angle. The temperature and the incident angle affect the final line profile much more significantly than the radius or surface gravity do as they both directly influence the emergent intensity. For this reason, we choose to interpolate between grid points for these two parameters while the surface gravity and radius for each mesh point are rounded to the nearest value contained in the grid. Thus, the final emergent intensity line profile for each mesh point is generated by interpolating between the four emergent intensity line profiles corresponding to the closest two temperatures and incident angles in the grid. Each profile is then Doppler shifted based on the local radial velocity of that mesh point. This is donefor both the photosphere and the wind component so each mesh point contains two separate line profiles.

The final step is the integration of the line profiles. Each mesh point now contains two wavelength and two intensity arrays corresponding to its local parameters, however the wavelength arrays between different mesh points are different from one another due to the Doppler shifting. We thus resample all line profiles on the mesh to the same wavelength array using linear interpolation. The final integration for the photospheric component is calculated using Eq. (1), where the area (an), cosine of the emergent angle (μn) and visibility (vn) are given in the mesh. The wind component is calculated in the same way with the caveat that the visibility is not used. This is because the visibilitydefines which mesh points are being eclipsed, but the wind is optically thin and thus it does not eclipse itself. Additionally, a scaling factor is added to account for the flux difference that occurs when collapsing the winds to the surface of the star. The integrated photosphereand wind profiles are added together and normalized so the final output is a normalized flux line profile. Finally, if any wind mesh component contributes more than 5% of the total flux of the system, it is removed and the final flux line profile is recalculated.

thumbnail Fig. 4

Comparison between the integration method used by SPAMMS and FASTWIND for a system with the same parameters. SPAMMS line profiles are plotted in red dashed lines and FASTWIND line profiles are plotted in black, for a wind line C IV λ1548 on the left and a photospheric line H I λ4471 on the right. The residuals between the two methods are plotted beneath each.

3 Benchmarks

Before applying the patch model to systems with nonspherical geometry, we first benchmark its performance against FASTWIND for three spherical test cases. These test cases are detailed below.

The goal of the first test case is to ensure that the conversion from p-ray geometry to emergent intensity geometry and the subsequent integration is consistent with FASTWIND. Since our goal is to test the integration, we chose a point which falls exactly on one of our grid points to avoid any uncertainties that may arise from interpolating between grid points. We compute a nonrotating, spherically-symmetric SPAMMS model of a 42 000K star with a radius of 7.5 R, a surface gravity of 4.2 (which corresponds to a mass of ~32 M), a helium abundance of 0.1 and a CNO abundance of 7.5. A FASTWIND model with the same parameters is computed and we compare the spectral line profiles of two lines: C IV λ15481550 a doublet wind line that has a relatively strong P-Cygni profile and He I λ4471 a photospheric line that is not strongly affected by the winds. For both lines, we consider only the mentioned transitions and do not include other transitions that may fall in the spectral region. Figure 4 shows this comparison and the corresponding residuals between the SPAMMS model and the FASTWIND model. For the wind line, the residuals show an agreement within 1% for a majority of the profile with a spike up to 3% for the complex core of the line. The photospheric line shows an agreement within a third of a percent in the core and less than a tenth of a percent in the wings of the line. Overall, these results show that the integration method for SPAMMS is in very good agreement with FASTWIND.

The goal of the second test case is to ensure that the linear interpolation between grid points is reasonable when compared to the exact solution given by FASTWIND for the same model. To do this, we chose a parameters that are in the exact middle between grid points since this represents the farthest deviation possible. We compute a nonrotating spherically-symmetric SPAMMS model of a 42500 K star with a radius of 7.125 R, a surface gravity of 4.15 (corresponding to a mass of ~26 M), a helium abundance of 0.1 and a CNO abundance of 7.5. We do not choose a point between abundance bins because the step sizes in abundance have much larger effects on the final line profiles than the other parameters. While the code only interpolates between temperature grid points, we deviate in surface gravity and radius as well to show a worse-case scenario. Figure 5 shows the comparison between the SPAMMS and FASTWIND line profiles and the residuals between the two models. For the wind line, the shape of the line is reasonable and for most of the profile, the two models agree within a few percent, however the maximum deviation reaches almost 30% at some points. The photospheric line on the other hand shows an agreement within 1% for most of the line with a maximum deviation of less than 2%. These results show that the linear interpolation works very well for photospheric lines, but does not have the same accuracy for wind lines.

The goal of the third test case is to ensure that the effects of rotation are properly accounted for in the patch model during the computation of the final line profiles. To do this, we compute a rotating SPAMMS model with spherical geometry (rotational distortion is switched off) and a corresponding FASTWIND model with the same parameters, which is rotationally broadened via convolution with a rotation profile to the corresponding projected rotational velocity. We use the same stellar parameters as for the first benchmark case and compute three models with the same rotation rate (70% critical), but different inclinations (30°, 60° and 90°). Figure 6 shows the comparison between the two methods. The line profile computed by SPAMMS is slightly different from that calculated by FASTWIND and broadened, but the two are consistent within half of a percent.

thumbnail Fig. 5

Comparison between line profiles generated using grid interpolation with SPAMMS and line profiles generated with FASTWIND for a system with the same parameters. SPAMMS line profiles are plotted in red dashed lines and FASTWIND line profiles are plotted in black, for a wind line C IV λ1548 on the left and a photospheric line H I λ4471 on the right. The residuals between the two methods are plotted beneath each.

thumbnail Fig. 6

Comparison between line profiles from a rotating star generated using SPAMMS and FASTWINDfor a system with the same parameters. SPAMMS line profiles are plotted in red dashed lines and FASTWIND line profiles are plotted in black, for the photospheric line H I λ4471. The residuals between the two methods are plotted beneath each.

4 Applications

While our initial goal was to model overcontact systems, the patch model that we developed has a broader range of applicability. Anything that PHOEBE can model and that falls within the range of parameters suitable for FASTWIND, can be analyzed with the patch model. A few examples are discussed below.

4.1 Overcontact binaries

Overcontact binaries are arguably the most extreme example of nonspherical systems that would benefit from the patch model. With their unique shapes, the difference in temperature across the surface of massive overcontact systems can be on the order of 10 000 K or more. Despite this, the way that these systems are spectroscopically analyzed currently involves spectral disentangling followed by atmosphere fitting of each component individually, while the effect of the bridge is omitted completely. As discussed in Abdul-Masih et al. (2019), this analysis method assumes spherical symmetry several times. The disentangling process not only assumes spherical geometry, but it also blends any profile variations across the surface, returning an averaged spectrum for each component in the system. Furthermore, the determination of the atmospheric parameters also assumes spherical symmetry as the available atmosphere codes are all one-dimensional.

With the patch model, we can better represent the three-dimensional surface of these systems. As an example, we analyze the massive overcontact binary VFTS 352, which has been previously analyzed both photometrically and spectroscopically (Almeida et al. 2015; Abdul-Masih et al. 2019). VFTS 352 is an eclipsing double-lined spectroscopic binary with masses of ~29 + 29 M, radii of 7.22 + 7.25 R, temperatures of 42 540 + 41 120 K and an orbital period of 1.124 days (Almeida et al. 2015). The system is in deep contact with a fillout factor of approximately 1.29, causing large variations in surface gravity and temperature across the surface: ~3.7–4.3 and ~32 300 to 45 800 K respectively when assuming the solution obtained from Almeida et al. (2015). Walborn et al. (2014) derived spectral types of O4.5 V(n)((fc))z +O5.5 V(n)((fc))z) for this system. In both Almeida et al. (2015) and Abdul-Masih et al. (2019) it was shown that the component stars were hotter than expected for stars of their mass and rotation rate indicating an extra source of mixing. The spectroscopic analysis was done using spherical models, so we can investigate whether a three-dimensional analysis using the patch model yields a similar result.

Using a grid-search chi-square minimization routine, we attempt to determine the effective temperature of both the primary and secondary using the patch model. We use the photometric solution (period, inclination, mass ratio, fill-out factor, and semi-major axis) from Almeida et al. (2015) and the 32 epochs of the optical FLAMES spectra described in Abdul-Masih et al. (2019) as inputs. Assuming a temperature distribution across the surface as described by von Zeipel (1924), we then fit the line profiles of He I λ4471 and He II λ4541 (two lines typically used to constrain the temperature) to each phase of the observed data. The system is known to have weak winds, and since the input grid assumes a Vink et al. (2001) mass loss prescription, we use lines that are not affected strongly by the winds for the fitting. We fit all 32 phases simultaneously to obtain a global best fit for the temperatures of the two components. The resulting best-fit temperatures for the primary and secondary were 44 000 and 41 400 K respectively, which agree within error to the values determined in Abdul-Masih et al. (2019). Figure 7 shows the comparison between the observed data and the line profiles generated using the best-fit for several different phases.

thumbnail Fig. 7

Best fit model for VFTS 352 shown at various phases. The observed spectra are plotted in black while the model is overplotted in red. The phase is given to the right of each model.

4.2 Rapidly rotating single stars

As stated above, currently all NLTE radiative transfer codes for massive stars are one dimensional and thus assume spherical geometry. Rotational distortion, however can have significant effects on the temperature profile across the surface of a massive star (von Zeipel 1924). As a star rotates more rapidly, it begins to oblate; and due to the change in geometry, the poles experience ahigher effective surface gravity and higher temperature while the equator experiences a lower effective surface gravity and lower temperature. Thus, if a rapidly rotating star is inclined toward the observer, the star appears hotter than if viewed with an inclination of 90. This effect is not taken into account in spherically symmetric codes, however with the patch model, we can investigate this effect.

Consider a 42 000 K, 30 M star with an effective radius of 7.5 R. Using SPAMMS, we model the system at three different rotation rates (50, 70 and 90% critical) and inclinations (30°, 60° and 90°) to see how the rotational distortion impact the line profiles. We calculate two line profiles for each rotation-rate-inclination combination: He I λ4471 and He II λ4541. Figure 8 shows line profiles for these combinations assuming both rotationally-distorted geometry and spherical geometry. For the 50% critical case, the line profiles appear almost identical at an inclination of 90 degrees. As the inclination decreases however, the rotationally distorted model begins to deviate from the spherical model. The He I λ4471 line begins to appear weaker while the He II λ4541 line appears slightly stronger. Observationally, this would indicate a higher temperature. This trend becomes more apparent when considering the 70% critical case, where a similar effect can be seen. In the 90% critical case, the inclination effect is more apparent still. Other effects begin to present themselves in this case however. At an inclination of 90 degrees, the rotationally deformed model appears cooler than the spherical case, while the two models only appear to show the same temperature at an inclination of 60 degrees. Interestingly, both helium lines are weaker at 60 degrees, observationally indicating a lower helium abundance. Finally, at an inclination of 30 degrees, the He I λ4471 line begins to show a double peak. Since the hotter pole has a relative radial velocity close to 0, it is contributing significantly to the center of the He I λ4471. The increased temperature however means that the He I lines are weaker than the cooler portions of the surface, thus causing this double-peaked feature.

With the exception of the 90% critical 90 degree inclination model, all of the others show a slightly larger He II to He I ratio than their spherical counterparts indicating that the system appears hotter than the spherically symmetric model. This implies that spectroscopically-determined temperatures using spherically symmetric models are systematically overestimated for rotating systems. The full extent of these nonspherical effects and their implications will be investigated in a future paper.

4.3 Rossiter–McLaughlin effect

Another effect that can be studied with the patch model is the Rossiter–McLaughlin effect. As a star rotates, regions of the star are blue shifted while other regions are red shifted. If this star is eclipsed then its observed rotational profile changes since portions of the blue or red shifted regions are no longer visible. This change in the rotational profile in turn changes the appearance of the observed spectral lines. To demonstrate this effect, we model a theoretical system with component radii of 8 R and 4 R, temperatures of 45 000 K and 20 000 K, a period of 5 days, a semi-major axis of 40 R and a mass ratio of 0.2. The system has an inclination of 90° and the primary is rotating asynchronously with a period of 1 day. Figure 9 shows how the spectral line profiles change as the primary is being eclipsed. These line profile variations can be used to determine if the axis of rotation is misaligned from the orbital axis.

4.4 Struve–Sahade effect

The Struve–Sahade effect is an effect observed in spectroscopic binary systems where some of the spectral lines of the secondary appear to strengthen while blue-shifted and weaken while red-shifted (Struve 1937). Several possible explanations for this effect have been proposed (i.e., gaseous streams obscuring the secondary, wind-wind collisions deflected by the Coriolis force, surface flows, etc.) however it is still unclear which mechanism is the cause (Struve 1950; Sahade 1959; Gies et al. 1997; Gayley et al. 2007; Linder et al. 2007). Palate & Rauw (2012) demonstrated that this effect could be replicated using a patch model approach similar to SPAMMS. To see if we too can reproduce the Struve-Sahade effect, we compute a SPAMMS model based on the massive binary HD 165052, a noneclipsing system that is known to display this effect (Linder et al. 2007). This system has component equivalent radii of 9.29 R and 8.65 R respectively, temperatures of ~35 000 and 34 000 K, a period of 2.95515 days, a semi-major axis of 31.25 R an inclination of 23° and a mass ratio of 0.87 (Linder et al. 2007). The radii of this system place it outside of our computed grid but with slight adjustments to the parameters, we can compute a model for a similar, theoretical system. We adjust the radii and semi-major axis by setting them equal to 90% of their calculated values and adjust the period to ensure that the masses remain the same. Assuming synchronous rotation, we model the He I λ4026 line at two different phases (0.1 and 0.9) and find that we are indeed able to reproduce the Struve–Sahade effect for this system. Figure 10 shows a comparison of these two phases. While our parameters are slightly different from those cited in Palate & Rauw (2012), the line profiles appear in very good agreement with each other. The fact that the patch model can reproduce the Struve–Sahade effect implies that it may originate from either a pure geometric effect or a surface temperature distribution effect.

thumbnail Fig. 8

Comparison of He I λ4471 and He II λ4541 line profiles when assuming spherical geometry and rotational distortion for a rapidly rotating system in black and red respectively.Three different rotation rates (indicated on the right of the figure and three different inclinations (indicated above the figure) are plotted for comparison.

thumbnail Fig. 9

Example of the Rossiter-McLaughlin effect. Top panels: rapidly rotating star at different points during the eclipse. The face-color represents the radial velocity, with blue regions being blue-shifted and red regions being red-shifted. Bottom panels: modeled He I λ4471 spectral line plotted in black at the same phase as the respective top panel and the gray line represents the out of eclipse line profile.

thumbnail Fig. 10

Example of the Struve-Sahade effect for a noneclipsing spectroscopic binary. The He I λ4026 line profile is plotted for the system at two different phases (0.1 plotted in blue and 0.9 plotted in orange) demonstrating the change in line strengths.

5 Discussion

5.1 Comparison to CoMBiSpeC

While the concept of a patch model is not new, our implementation has several advantages over previous codes, such as the CoMBiSpeC code presented by Palate & Rauw (2012). There are four major features of our code that set it apart: the use of PHOEBE as the base for the computation and population of the mesh, the inclusion of winds in the model, the use of emergent intensities instead of flux for the assignment of line profiles and the dimensionality of the grid from which the line profiles are assigned.

There are several advantages of using PHOEBE, one of which is the amount of physics already implemented in the code. PHOEBE uses an advanced mesh triangulation technique that not only allows it to recreate the complex geometries, but also prevents holes and overlaps which other forms of meshing sometimes suffers from. In addition, it is constantly being updated with new physics, which we can use. For example, PHOEBE is built to eventually support triple and higher order multiple systems, which we would be able to use for the patch model (Prša et al. 2016). Using a well established (and well tested) code like PHOEBE, we can avoid development and trouble shooting of these improvements ourselves and reach the wider community of PHOEBE users.

The second major feature of SPAMMS that differs from other codes is the inclusion of winds. For massive stars, the winds can have a major impact on the spectral line profiles. By including winds, we can fit many important diagnostic lines both in the UV and optical portions of the spectrum that would otherwise be impossible to reproduce.

The third major difference between SPAMMS and other codes is the use of emergent intensities when assigning line profiles to the mesh. CoMBiSpeC uses flux line profiles that are scaled by the projected area and applies a linear limb-darkening law. By using emergent intensities however, we can better account for the change in intensity as a function of emergent angle. Additionally, we can obtain flux-calibrated line profiles, which can be directly compared to observed data.

Another important difference is the dimensionality of our FASTWIND grid in SPAMMS. We include the radius of each mesh point as a constraining parameter when assigning line profiles, which is not done in Palate & Rauw (2012). We also compute a variety of helium and CNO abundance combinations allowing us to obtain abundance information.

5.2 Assumptions and limitations

While this patch model is a welcome addition to the tools available for the analysis of massive stars, it is not perfect and some of the assumptions can lead to errors. The first major source of error is the use of one-dimensional single star atmosphere models for the construction of the grid. We assume that the local conditions at each point across the surface is equivalent to a single spherical star with the same conditions, which is not necessarily the case.

The treatment of the wind is also not optimal. The wind is assumed to start at a p-ray of 1, which can cause issues at μ angles very close to 1. There is a steep drop-off in intensity in the transition region between the star and the winds. The wind component of triangles that are viewed very close to face on may fall in this drop-off region and contribute more flux than they should. We take this into account by removing the wind component of any triangle that is contributing more than 5% of the total flux but this is an arbitrary cut. Furthermore, the collapsing of the wind to the surface of the star is not physical. The winds are extended and are most likely much more uniform than the wind structure assumed by the patch model (i.e., the wind component of each triangle is based on the surface conditions and not on the bulk conditions of the system that is driving the wind).

In addition to the nonuniformity of the wind, further nonphysical effects appear when considering the case of binaries and their interaction with three-dimensional wind structures. For binary systems with strong winds, wind-wind collisions become important, however since the winds are collapsed to the surface of the star in the patch model, this effect cannot be reproduced. Furthermore, since the winds are not allowed to eclipse each other or be eclipsed by the star in our formalism, there is no way to reproduce a Rossiter–McLaughlin-like effects for the wind emission. It is also important to note, that a correct UV-line synthesis requires that the wind-structure above the patches is represented in a realistic way; for example, the Vink et al. (2001)-scaling is not valid for rotation rates exceeding 70% critical. In the future we hope to address these issues with a more physical treatment of the wind by combining this patch model with a three-dimensional wind radiative transfer code like those presented in Hennicker et al. (2018, 2020).

6 Summary and future work

In this paper, we have presented the inner workings of the SPAMMS code as well as several example application cases. We have shown that the patch model is not only able to accurately reproduce line profiles in spherical cases but is able to reproduce several observed nonspherical effects, such as the Rossiter–Mclaughlin effect and Struve–Sahade effect. We have also demonstrated the code’s ability to fit observed spectra of an overcontact system. Additionally, we have shown that when taking into account rotational deformations in single stars, the observed temperature and abundances can appear different from spherical models with the same parameters. Finally, we discussed the advantages of SPAMMS compared to an alternative code designed for the same purpose, and discussed the limitations of each.

In the future, we plan to improve and apply the SPAMMS code in several ways. First, we plan to expand the FASTWIND grid to include other metallicity regimes. Additionally, we would like to incorporate atmosphere models for other mass regimes so that the code can be used for lower mass systems as well. While several applications of the code were briefly presented here, we plan to pursue these in further detail in the future. We plan to analyze all of the massive overcontact binaries currently known and investigate how the results from SPAMMS compares to the current spherical analysis methods. Similarly, we plan to systematically investigate how rotational deformation and inclination in single stars affect various parameters such as temperature and abundance when compared to spherical analysis techniques.

Acknowledgements

We acknowledge support from the FWO-Odysseus program under project G0F8H6N. Additionally, we acknowledgeAS for his thoughtful discussion and helpful comments.

References

  1. Abdul-Masih, M., Sana, H., Sundqvist, J., et al. 2019, ApJ, 880, 115 [NASA ADS] [CrossRef] [Google Scholar]
  2. Almeida, L. A., Sana, H., de Mink, S. E., et al. 2015, ApJ, 812, 102 [NASA ADS] [CrossRef] [Google Scholar]
  3. Bowman, D. M., Burssens, S., Pedersen, M. G., et al. 2019, Nat. Astron., 3, 760 [NASA ADS] [CrossRef] [Google Scholar]
  4. Bresolin, F., Crowther, P. A., & Puls, J. 2008, IAU Symp., 250, 147 [Google Scholar]
  5. Brott, I., de Mink, S. E., Cantiello, M., et al. 2011, A&A, 530, A115 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  6. Carneiro, L. P., Puls, J., Hoffmann, T. L., Holgado, G., & Simón-Díaz, S. 2019, A&A, 623, A3 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  7. de Mink, S. E., & Mandel, I. 2016, MNRAS, 460, 3545 [NASA ADS] [CrossRef] [Google Scholar]
  8. de Mink, S. E., Pols, O. R., & Hilditch, R. W. 2007, A&A, 467, 1181 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  9. Gayley, K. G., Townsend, R., Parsons, J., & Owocki, S. 2007, ASP Conf. Ser., 367, 393 [NASA ADS] [Google Scholar]
  10. Gies, D. R., Bagnuolo, Jr., W. G., & Penny, L. R. 1997, ApJ, 479, 408 [NASA ADS] [CrossRef] [Google Scholar]
  11. Gräfener, G., Koesterke, L., & Hamann, W.-R. 2002, A&A, 387, 244 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  12. Grin, N. J., Ramírez-Agudelo, O. H., De Koter, A., et al. 2017, A&A, 600, A82 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  13. Hamann, W.-R., & Gräfener, G. 2003, A&A, 410, 993 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  14. Hennicker, L., Puls, J., Kee, N. D., & Sundqvist, J. O. 2018, A&A, 616, A140 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  15. Hennicker, L., Puls, J., Kee, N. D., & Sundqvist, J. O. 2020, A&A, 633, A16 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  16. Hilditch, R. W., Howarth, I. D., & Harries, T. J. 2005, MNRAS, 357, 304 [NASA ADS] [CrossRef] [Google Scholar]
  17. Hillier, D. J., & Miller, D. L. 1998, ApJ, 496, 407 [NASA ADS] [CrossRef] [Google Scholar]
  18. Horvat, M., Conroy, K. E., Pablo, H., et al. 2018, ApJS, 237, 26 [NASA ADS] [CrossRef] [Google Scholar]
  19. Howarth, I., Dufton, P., Dunstall, P., et al. 2015, A&A, 582, A73 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  20. Hummer, D. G., & Rybicki, G. B. 1971, MNRAS, 152, 1 [NASA ADS] [CrossRef] [Google Scholar]
  21. Langer, N. 2012, ARA&A, 50, 107 [NASA ADS] [CrossRef] [Google Scholar]
  22. Linder, N., Rauw, G., Sana, H., De Becker, M., & Gosset, E. 2007, A&A, 474, 193 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  23. Lorenzo, J., Negueruela, I., Baker, A. K. F. V., et al. 2014, A&A, 572, A110 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  24. Lorenzo, J., Simon-Diaz, S., Negueruela, I., et al. 2017, A&A, 606, A54 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  25. Mandel, I., & de Mink, S. E. 2016, MNRAS, 458, 2634 [NASA ADS] [CrossRef] [Google Scholar]
  26. Marchant, P., Langer, N., Podsiadlowski, P., Tauris, T., & Moriya, T. 2016, A&A, 588, A50 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  27. Orosz, J. A., & Hauschildt, P. H. 2000, A&A, 364, 265 [NASA ADS] [Google Scholar]
  28. Palate, M., & Rauw, G. 2012, A&A, 537, A119 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  29. Palate, M., Koenigsberger, G., Rauw, G., Harrington, D., & Moreno, E. 2013a, A&A, 556, A49 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  30. Palate, M., Rauw, G., Koenigsberger, G., & Moreno, E. 2013b, A&A, 552, A39 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  31. Penny, L., Ouzts, C., & Gies, D. 2008, ApJ, 681, 554 [NASA ADS] [CrossRef] [Google Scholar]
  32. Podsiadlowski, P., Joss, P. C., & Hsu, J. J. L. 1992, ApJ, 391, 246 [NASA ADS] [CrossRef] [Google Scholar]
  33. Pols, O. 1994, A&A, 290, 119 [NASA ADS] [Google Scholar]
  34. Popper, D. M. 1978, ApJ, 220, L11 [NASA ADS] [CrossRef] [Google Scholar]
  35. Prsa, A., & Zwitter, T. 2005, ApJ, 628, 426 [NASA ADS] [CrossRef] [Google Scholar]
  36. Prša, A., Conroy, K. E., Horvat, M., et al. 2016, ApJS, 227, 29 [NASA ADS] [CrossRef] [Google Scholar]
  37. Puls, J., Urbaneja, M. A., Venero, R., et al. 2005, A&A, 435, 669 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  38. Sahade, J. 1959, PASP, 71, 151 [NASA ADS] [CrossRef] [Google Scholar]
  39. Sana, H., & Evans, C. J. 2011, IAU Symp., 272, 474S [NASA ADS] [CrossRef] [Google Scholar]
  40. Sana, H., De Mink, S. E., De Koter, A., et al. 2012, Science, 337, 444 [Google Scholar]
  41. Sander, A., Shenar, T., Hainich, R., et al. 2015, A&A, 577, A13 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  42. Struve, O. 1937, ApJ, 85, 41 [NASA ADS] [CrossRef] [Google Scholar]
  43. Struve, O. 1950, Stellar Evolution, an Exploration from the Observatory (Princeton Princeton University Press) [CrossRef] [Google Scholar]
  44. Vink, J. S., de Koter, A., & Lamers, H. J. G. L. M. 2001, A&A, 369, 574 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  45. von Zeipel, H. 1924, MNRAS, 84, 665 [NASA ADS] [CrossRef] [Google Scholar]
  46. Walborn, N. R., Sana, H., Simon-Diaz, S., et al. 2014, A&A, 564, A40 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  47. Wellstein, S., Langer, N., & Braun, H. 2001, A&A, 369, 939 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  48. Wilson, R. E. 1979, ApJ, 234, 1054 [NASA ADS] [CrossRef] [Google Scholar]
  49. Wilson, R. E. 2008, ApJ, 672, 575 [NASA ADS] [CrossRef] [Google Scholar]
  50. Wilson, R. E., & Devinney, E. J. 1971, ApJ, 166, 605 [NASA ADS] [CrossRef] [Google Scholar]
  51. Wilson, R. E., & Van Hamme, W. 2014, ApJ, 780, 151 [NASA ADS] [CrossRef] [Google Scholar]

All Figures

thumbnail Fig. 1

Example of the four steps of the patch model computation for an overcontact system. Top left: mesh representing the geometry of the system. Top right: same mesh, but with the face color representing the local temperature of each mesh element. Lighter shades represent higher temperatures and darker shades represent lower temperatures. Bottom left: same as top right, but with assigned spectral profiles plotted for three triangles across the surface. The He I λ4471 and He II λ4541 lines are plotted. Bottom right: final integrated spectral line profiles for the entire visible surface for the orientation shown in the other panels of this figure. Again, the He I λ4471 and He II λ4541 lines are plotted.

In the text
thumbnail Fig. 2

Left: sketch of the p-ray geometry. The quarter circle plotted in the bottom left represents the stellar surface and various p-rays leaving the system toward the observer (located to the right of the system) are indicated. The p-rays with values greater than 1 originate in the wind, which extends out to 120 stellar radii. Middle: sketch of the conversion from p-ray geometry to emergent intensity geometry. The quarter circle in the bottom left is the stellar surface and the shaded region represents the winds. For a given emergent angle, two p-rays are obtained, one originating from the stellar surface (ps) and one originating in the wind (pw) Right: sketch of emergent intensity geometry. A patch of the stellar surface is plotted with two emerging rays, one normal to the surface (labeled n$\stackrel{\rightarrow}{n}$) and one pointing to the observer (labeled Iλ). θ is the emergent angle of the ray toward the observer and a represents the area of the patch.

In the text
thumbnail Fig. 3

Coverage of FASTWIND grid in temperature surface gravity space. Evolutionary tracks from Brott et al. (2011) are plotted for various masses in black and our grid points are represented by the red dots.

In the text
thumbnail Fig. 4

Comparison between the integration method used by SPAMMS and FASTWIND for a system with the same parameters. SPAMMS line profiles are plotted in red dashed lines and FASTWIND line profiles are plotted in black, for a wind line C IV λ1548 on the left and a photospheric line H I λ4471 on the right. The residuals between the two methods are plotted beneath each.

In the text
thumbnail Fig. 5

Comparison between line profiles generated using grid interpolation with SPAMMS and line profiles generated with FASTWIND for a system with the same parameters. SPAMMS line profiles are plotted in red dashed lines and FASTWIND line profiles are plotted in black, for a wind line C IV λ1548 on the left and a photospheric line H I λ4471 on the right. The residuals between the two methods are plotted beneath each.

In the text
thumbnail Fig. 6

Comparison between line profiles from a rotating star generated using SPAMMS and FASTWINDfor a system with the same parameters. SPAMMS line profiles are plotted in red dashed lines and FASTWIND line profiles are plotted in black, for the photospheric line H I λ4471. The residuals between the two methods are plotted beneath each.

In the text
thumbnail Fig. 7

Best fit model for VFTS 352 shown at various phases. The observed spectra are plotted in black while the model is overplotted in red. The phase is given to the right of each model.

In the text
thumbnail Fig. 8

Comparison of He I λ4471 and He II λ4541 line profiles when assuming spherical geometry and rotational distortion for a rapidly rotating system in black and red respectively.Three different rotation rates (indicated on the right of the figure and three different inclinations (indicated above the figure) are plotted for comparison.

In the text
thumbnail Fig. 9

Example of the Rossiter-McLaughlin effect. Top panels: rapidly rotating star at different points during the eclipse. The face-color represents the radial velocity, with blue regions being blue-shifted and red regions being red-shifted. Bottom panels: modeled He I λ4471 spectral line plotted in black at the same phase as the respective top panel and the gray line represents the out of eclipse line profile.

In the text
thumbnail Fig. 10

Example of the Struve-Sahade effect for a noneclipsing spectroscopic binary. The He I λ4026 line profile is plotted for the system at two different phases (0.1 plotted in blue and 0.9 plotted in orange) demonstrating the change in line strengths.

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.