author: A. Lecavelier des Etangs; S. K. Sirothia; Gopal-Krishna; P. Zarka
title:  Hint of 150 MHz radio emission
  from the Neptune-mass extrasolar transiting planet HAT-P-11b [^1]

Since the radio-frequency emission from planets is expected to be strongly influenced by their interaction with the magnetic field and corona of the host star, the physics of this process can be effectively constrained by making sensitive measurements of the planetary radio emission. Up to now, however, numerous searches for radio emission from extrasolar planets at radio wavelengths have only yielded negative results. Here we report deep radio observations of the nearby Neptune-mass extrasolar transiting planet at 150 MHz, using the Giant Meterwave Radio Telescope (GMRT). On July 16, 2009, we detected a 3$\sigma$ emission whose light curve is consistent with an eclipse when the planet passed behind the star. This emission is at a position 14 from the transiting exoplanet's coordinates; thus, with a synthetized beam of FWHM$\sim$`<!-- -->`{=html}16, the position uncertainty of this weak radio signal encompasses the location of . We estimate a 5% false positive probability that the observed radio light curve mimics the planet's eclipse light curve. If the faint signature is indeed a radio eclipse event associated with the planet, then its flux would be 3.87 mJy$\pm$`<!-- -->`{=html}1.29 mJy at 150 MHz. However, our equally sensitive repeat observations of the system on November 17, 2010 did not detect a significant signal in the radio light curve near the same position. This lack of confirmation leaves us with the possibility of either a variable planetary emission, or a chance occurrence of a false positive signal in our first observation. Deeper observations are required to confirm this hint of 150 MHz radio emission from HAT-P-11b.

# Introduction

The importance of the physics behind star-planet interaction, in conjunction with theoretical predictions available for radio emission from a large number of extrasolar planets (Grießmeier et al. 2007), has provided the impetus for making searches for decameter- and meter-wavelength radio emission from a few carefully selected extrasolar planets (Bastian et al. 2000; Ryabov et al. 2004; Winterhalter et al. 2005; George & Stevens 2007; Lazio & Farrell 2007; Smith et al. 2009; Lecavelier des Etangs et al. 2009, 2011; Lazio et al. 2010a, 2010b). Using the scaling laws (Zarka et al. 2001; Zarka 2007), radio emission from extrasolar planets orbiting close to their host stars could reach 10$^3$ to 10$^5$ times the radio output from Jupiter and hence be detectable with the most sensitive existing radio telescopes. Even at large orbital distances ($\ga$`<!-- -->`{=html}1 AU), radio emissions from rapidly rotating planets orbiting stars with high X-UV brightness could be detectable (Nichols 2011). Nonetheless, in the absence of detection, the theoretical estimates made for exoplanetary radio cyclotron emission are based on a host of unknowns, such as the stellar wind, coronal density, and stellar and planetary magnetic fields.

Up to now, various programs to search for radio emission have given negative results. The telescopes used include the UTR-2 (10 MHz, $\sigma$$\sim$`<!-- -->`{=html}1.6 Jy), the VLA (74 MHz, $\sigma$$\sim$`<!-- -->`{=html}50 mJy; 325 MHz, $\sigma$$\sim$`<!-- -->`{=html}0.6 mJy; 1425 MHz, $\sigma$$\sim$`<!-- -->`{=html}15 $\mu$Jy), and the Giant Meterwave Radio Telescope (GMRT; see review in Lazio et al. 2009 and Zarka 2011). Interferometric observations of high sensitivity and high resolution using the GMRT, which is a 30-km baseline Y-shaped array consisting of 30 steerable dishes of 45-metre diameter each providing an effective area around 30 000 m$^2$ (Swarup 1990), seem very promising for this purpose.

The planet is 4.3 Earth radii planet (Deming et al. 2011) orbiting a bright and metal-rich K4 dwarf with a 4.89 day period on an eccentric orbit (e $\approx$ 0.2). This transiting planet located 38 pc away from us was discovered by Bakos et al. (2010) with ground-based photometry using the HATNet survey (Bakos et al. 2004) and was confirmed by Dittmann et al. (2009). With a mass of about 26 Earth mass, this planet belongs to the so-called "hot-Neptune" category. The host star is metal rich (\[Fe/H\]=+0.31$\pm$`<!-- -->`{=html}0.05). Its *Kepler* photometry has shown that the stellar surface has active spotted areas at fixed latitudes (Deming et al. 2011; Sanchis-Ojeda & Winn 2011).

The planet's orbital axis is highly misaligned from the star's rotation axis, with a sky projected obliquity of $\lambda \sim 103$`<!-- -->`{=html} (Winn et al. 2010; Hirano et al. 2011). Nonetheless, the orbital plane is seen almost edge-on from the Earth and thus HAT-P-11 b is eclipsed by the star for about two hours during each orbital cycle. The planet's eclipses can be used to discriminate any planetary emission from the stellar emission; the same technique has been used extensively for measuring planetary infrared emission using various space and ground-based telescopes (Deming et al. 2005, Charbonneau et al. 2005, Sing et al. 2008).

# Radio observations at 150 MHz and data analysis

We observed the HAT-P-11 field with the GMRT before, during, and after the planetary eclipse, from July 16, 2009, 15h30m UT to July 17, 1h00m UT. The data consist of about 10$^9$ visibility measurements along the 435 baselines of the GMRT aperture-synthesis array. The integration time was 2 seconds and the central frequency was set at 150 MHz with a bandwidth of 16 MHz. The short integration time allows us to construct a radio light curve (see below), which is also sensitive to any large radio flares.

Because the July 2009 run provided a $\sim$`<!-- -->`{=html}3$\sigma$ detection near the HAT-P-11 position and a radio light curve consistent with an eclipse of the planet HAT-P-11b (Sect. ), we decided to carry out a second observation of the same field. This second run was scheduled on November 17, 2010, from 6h00m to 16h00m UT. Combining the two observation runs, the total data acquisition time on the target field is about 20 hours, including the total acquisition for the durations of the two eclipses (about 4 hours).

The data reduction was done mainly using the `AIPS++` package. We used 3C48 as the primary flux density and bandpass calibrator, taking a flux density of 64.42 Jy at 148 MHz. The phase calibrator was the source 2038+513 which was observed repeatedly during the runs.

While calibrating the data, bad data points were flagged at various stages. The data for antennas with relatively large errors in antenna-based gain solutions were examined and flagged over certain time ranges. Some baselines were flagged based on closure errors on the bandpass calibrator. Channel and time-based flagging of the data points corrupted by radio frequency interference (RFI) was done by applying a median filter with a $6\sigma$ threshold. Residual errors above $5\sigma$ were also flagged after a few rounds of imaging and self-calibration. The final image was made after several rounds of phase self-calibration and one round of amplitude self-calibration where the data were normalized by the median gain found for the entire data. The final image was also corrected for the primary beam shape taken to be a Gaussian with FWHM of 173.83 at 150 MHz.

After the final imaging stage, we generated light curves of several emission peaks detected around the HAT-P-11 position: one light curve of the peak source detected in July 2009 within a synthesized beam from HAT-P-11 (at such a low signal to noise ratio, the accuracy on the position of a detected source is approximately the beam size), and the light curves of 14 emission peaks with similar S/N and detected around HAT-P-11 in both observations. These last light curves can be used for comparison purposes and validation of the statistics. To obtain these light curves, we calculated model visibilities using the sources detected in the entire field-of-view excluding a synthesized beam-wide region centered on the desired locations ($\alpha_0, \delta_0$); we then subtracted this model from the final calibrated visibility data. The residual visibility data (RVD) were then phase-centered on $\alpha_0, \delta_0$ and averaged for desired time bins to generate the light curves.

# Results

## Observations of July 16, 2009

Figure  shows the 150 MHz map of the field around HAT-P-11 obtained from the observations on July 16, 2009. A faint source is detected at the coordinates $\alpha$=19h50m51.0s, $\delta$=+48 (J2000), which are 14 (about a beam width) north-east from the HAT-P-11 coordinates ($\alpha$=19h50m50.247s, $\delta$=+48). Figure  shows the 150 MHz light curve derived at the source position.

Over the full integration time, including the two-hour eclipse, the source has a mean flux of 2.45$\pm$`<!-- -->`{=html}1.09 mJy (2.2$\sigma$ detection). If we consider only the time outside the eclipse (Fig. ), a mean flux of 3.87$\pm$`<!-- -->`{=html}1.29 mJy ($3\sigma$) is measured. During the eclipse of the planet behind the host star, no emission was detected and the mean flux was found to be -0.92$\pm$`<!-- -->`{=html}1.94 mJy, consistent with zero emission for this time interval. The light curve is thus in agreement with the expected light curve for a planetary radio emission, eclipsed when the planet is known to be behind its host star. Thus, a straightforward, albeit heuristic, interpretation of the light curve would be a 3$\sigma$ detection of the planet HAT-P-11 b at 150 MHz.

The position of the source exhibiting the eclipse light curve has been measured to be 14 away from HAT-P-11. However, for such a faint source the positional accuracy is similar to the beam size of 16. More precisely, from our experience with GMRT maps at 150 MHz, we derived an empirical expression for the positional accuracy on GMRT maps; at 90% confidence we found an accuracy on the position given by $Beamsize \times (1/SNR + 1/10)$, which is in agreement with the same relationship found on the VLA First Survey Catalog which reports[^2] a 90% confidence positional accuracy of $Beamsize \times (1/SNR + 1/20)$. Applying this relationship to our measurement of the emission peak at 2.2$\sigma$ and taking into account the 4 pixel size, we find that the above measurement of the radio position can be consistent with the HAT-P-11 coordinates.

To assess the reliability of this detection, we also estimated the false-positive detection probability, *i.e.*, the probability of observing a light curve of this shape for a constant radio emission with no real eclipse, but only an eclipse mimicked by the random noise along the radio light curve. This is calculated by estimating the probability that the mean flux during the eclipse is lower than zero, as observed. For this calculation we used the present estimate of the source flux, and the error bars for the times outside and during the eclipse. For the case of no real flux variation, our analysis shows that the probability of the mean flux during the eclipse being below zero is only 4.8%. We conclude a 5% false positive probability of eclipse detection in the observed 150 MHz light curve at the position coincident (within the errors) with the planet HAT-P-11b.

We also computed the $\chi^2$ of two different models fitting the light curve data with a 339-second sampling time providing a total of 190 measurements. In the first single-parameter model, we assume a constant flux level for the entire light curve, corresponding to the hypothesis that the radio source is not the planet and therefore the flux density is constant in time. We find a $\chi^2$ of 186.6 for 189 degrees of freedom. In the second model, we assume that the source is a planetary emission and the flux density during the eclipse is fitted by a second parameter, larger than or equal to zero. With this two-parameter model we find a $\chi^2$ of 182.8 for 188 degrees of freedom. Using the F-test, we conclude that the decrease of $\chi^2$ by 3.8 favors the second model with a 95.0% confidence level, which is consistent with the conclusion based on the false positive probability calculated above.

To make the above analysis more rigorous, we also derived the radio light curve for 14 sources seen within a few arc minutes around HAT-P-11 and detected at both observation epochs. The measured fluxes of these comparison sources are in the range $\sim$`<!-- -->`{=html}1 to 3 mJy. Four examples of light curves are given in Figs.  to . We found that the false positive probabilities computed for these directions are uniformly distributed between 0 and 1, validating our approach. Thus, to a 95% confidence limit, the detected signal is consistent with a 150 MHz radio emission associated with the extrasolar planet HAT-P-11b.

## Observations of November 17, 2010

In the full-synthesis GMRT observations of November 17, 2010, we did not detect any emission toward HAT-P-11 or nearby directions within a synthesized beam. On this occasion, the nearest detected radio source lies at 27.5 from HAT-P-11, and has a flux of 1.78$\pm$`<!-- -->`{=html}1.01 mJy. The light curve of this source at 150 MHz does not show any eclipse-like signature. Therefore, we are led to conclude that in these observations of HAT-P-11 we did not detect the radio source and its associated eclipse event we had seen on July 16, 2009.

## False positive or variability?

There are two plausible explanations for the discrepancy between the results of the two epochs. First, a false positive detection at the first epoch cannot be completely ruled out given the estimated false positive probability of 5% (Sect. ). Moreover, the source is close to the detection limit. So a false detection due to noise cannot be excluded at present.

The second interpretation invokes the general variability of planetary radio emission at low frequencies. The variable nature of the radio emission is indeed predicted by models including the observed variability of the stellar magnetic field. For instance, in the case of Fares et al. (2010) showed that the observed variations in the position of the so-called "source surface" (the stellar surface beyond which the magnetic field becomes purely radial) produce variations in the expected radio flux. Thus, in the case of HAT-P-11, if the discrepancy between the results of July 2009 and November 2010 is due to variability of the radio emission, we may have actually detected sporadic emission from the extrasolar planet at 150 MHz on July 16, 2009. However, the variable nature of the emission precludes a claim of detection; we are left with a hint, and we must wait for further, possibly even more sensitive observations.

# Ephemeris uncertainties

The characteristics and ephemeris of the planet's orbit are needed to compute the eclipse light curve. Here we used the orbit's eccentricity $e$ and the longitude of periastron $\omega$ provided in the discovery paper by Bakos et al. (2010): $e\cos \omega$=0.201$\pm$`<!-- -->`{=html}0.049 and $e\sin \omega$=0.051$\pm$`<!-- -->`{=html}0.092. The more recent observations of transits of HAT-P-11 b using the Kepler satellite provide new ephemeris for the transit central time $T_0$ and orbital period $P$ (Deming et al. 2011, Sanchis-Ojeda& Winn 2011). We used the following values given in Deming et al. (2011): $T_0$=2454605.89155 (BJD) and $P$=4.8878018 days. The difference between the eclipse time calculated using these new values and the time calculated using the $T_0$ and $P$ given in Bakos et al. is not more than 1.5 minutes.

More importantly, the new measurements using the Kepler photometric data yield a smaller impact parameter $b_1=a\cos i / R_p$, where $a$ is the semi-major axis, $i$ the orbit's inclination, and $R_p$ the planet's radius. A smaller impact parameter leads to a longer eclipse duration. Using the new values, we found an eclipse duration of 2 hours and 27 minutes, which is 38 minutes longer than the previous estimates using the Bakos et al. (2010) impact parameter.

By far, the largest uncertainty in computing the eclipse time arises from the uncertainty in the orbital eccentricity and longitude of the periastron, the uncertainty reaching up to $\pm$`<!-- -->`{=html}3h30m in the extreme cases. Unfortunately, the eclipse amplitude in the infrared may be too faint to be detected using the Spitzer Space Telescope (Deming et al. 2011). Only new radial velocity measurements in the coming years may improve the accuracy of the orbital eccentricity. Here, we used the best published values given by Bakos et al. (2010) and used the eclipse phase $\phi$=0.628, where $\phi$=0 corresponds to the central transit of the planet in front of the host star.

# Discussion

## Radio emission frequency

The principal mechanism put forward for planetary radio emission is electron-cyclotron maser radiation. It occurs at the local gyrofrequency $f_g=2.8\left({B_p}/{\rm 1\,G}\right) {\rm MHz}$, where $B_p$ is the planet's magnetic field. The detection at a frequency of 150 MHz would then correspond to a planetary magnetic field of around 50 G.

We recall that the Jovian magnetic field estimated from the radio frequency cut-off in its cyclotron emission is around 14 G. Thus, the present tentative radio detection requires a magnetic field for HAT-P-11 b ($\sim$`<!-- -->`{=html}50 G) that is of the same order of magnitude, albeit slightly stronger than that of Jupiter. We have no clues to the possible origin of a magnetic field of this strength, although we can emphasize here the particularities of this planet which has a significantly higher density than Jupiter, and orbits a metal-rich star (\[Fe/H\]=+0.31$\pm$`<!-- -->`{=html}0.05). The planet HAT-P-11 b is consequently expected to have a high abundance of heavy elements and a large core mass (Guillot et al. 2006). Taken all together, its peculiarities (eccentric and highly inclined orbit, metal-rich host star, short orbital period, etc.) make this planet different enough from any planet in our own solar system that it is difficult to make a reasonable guess of its magnetic field strength. Hence the requirement of a magnetic field 3 to 4 times Jupiter's seems quite plausible.

## Emission flux

Several mechanisms for exoplanet radio emissions have been considered by Grießmeier et al. (2007): stellar wind (SW)-magnetosphere magnetic interaction, SW-magnetosphere kinetic interaction, and coronal mass ejection-magnetosphere kinetic interaction. Application to HAT-P-11 b of the scaling law extrapolations of Grießmeier et al. (2007) lead to predicted radio flux densities of 14 mJy for the SW-magnetosphere magnetic interaction, 1 mJy for the coronal mass ejection (CME)-magnetosphere kinetic interaction, and $<<$`<!-- -->`{=html}1 mJy for the SW-magnetosphere kinetic interaction (note that these are mere orders of magnitude). The first two values are of the same order of magnitude as the $\sim$`<!-- -->`{=html}4 mJy flux density tentatively detected here.

Alternatively, if the stellar magnetic field is strong enough, the planet may induce electron precipitations and thus radio emission in the star's magnetic field (Zarka et al. 2001; Zarka 2007). This may be the case for HAT-P-11 b whose semi-major axis is only 0.053 au. The stellar magnetosphere could even extend beyond the planet's orbit. In the framework of the Jardine & Cameron (2008) model in which the radio emission is caused by interaction of the planetary magnetosphere with the stellar corona in which it is embedded, we can derive typical values for the resulting radio signal from HAT-P-11 b. Because HAT-P-11 is a slowly rotating star (Bakos et al. 2010) with a rotation period of 30.5$^{+4.1}_{3.2}$ days (Sanchis-Ojed & Winn 2011), the planet's velocity relative to the star's magnetosphere is $v_p - v_*$=99 km s$^{-1}$ (*i.e.*, three times higher than that of HD 189733b). Taking a 10% efficiency for conversion of the power of the accelerated electrons into radio emission within an emission beam solid angle of 1.6 steradian, a stellar magnetic field $B_*$=40 G as measured for the K-type star HD 189733 (Moutou et al. 2007), and a stellar density at the base of the corona equal to the solar value, we obtain a predicted radio flux in this model of the order of 13 mJy from HAT-P-11 b, again similar to the tentative detection reported here.

We conclude that a radio emission of the hot-Neptune HAT-P-11 b at a level of a few milli-Jansky level is consistent with existing theoretical predictions, in particular the predictions based on the cyclotron maser instability (CMI) of energetic electrons accelerated through the interaction of the planetary magnetic field with the stellar magnetic field, or coronal mass ejections.

# Conclusion

Although we are not able to draw a definitive conclusion on 150 MHz radio emission from HAT-P-11 b, at the very least the hint of radio detection presented here identifies HAT-P-11 b as a prime candidate for many follow-up observations in the near future. The priority is to try to confirm the present tentative detection, via re-observation with GMRT at 150 MHz and/or new observations with LOFAR in the 30-250 MHz range (providing a 1-100 mJy sensitivity depending on the observation parameters used; van Haarlem et al., submitted, 2013) and UTR-2 in the 10-30 MHz range (providing a sensitivity of $\sim$`<!-- -->`{=html}100 mJy; Ryabov et al. 2004). The observed spectral range can also be extended toward shorter wavelengths using GMRT, with even higher sensitivities of $\sim$`<!-- -->`{=html}1 mJy at 240 MHz and $\sim$`<!-- -->`{=html}50 $\mu$Jy at 614 MHz (e.g., Lecavelier des Etangs et al. 2009). Observations over a broad range of frequencies will, with any luck, allow confirmation of the existence of the emission and better constraints on the planetary magnetic field strength and determination of the radio spectral index.

The future observations should also be distributed at multiple epochs and at different orbital phases of the planet to characterize the suspected variability of the radio emission in terms of duty cycle, as well as the radio emission as a function of the star-planet angle and the emission directivity (CMI produces narrowly beamed radio emission). In this context, Hess & Zarka (2011) have analyzed all the observables that could be derived from a broadband dynamic spectrum with a sufficient signal-to-noise ratio.

In the long term, it should be possible to investigate if the radio emission from extrasolar planetary systems correlates with the stellar spot activity. In this context, HAT-P-11 represents the target of choice because the Kepler mission has recently demonstrated the possibility of following the spot activity and perhaps even of drawing the butterfly diagram of surface spots for this star (Deming et al. 2011, Sanchis-Ojeda& Winn 2011).

Radio observations of different types of exoplanets are also crucial for comparative exoplanetology. For instance, observations of the other transiting hot-Neptune GJ436 b (Gillon et al. 2007) will allow comparison with a planet similar in mass but orbiting an M-dwarf star which is half the mass and radius of HAT-P-11 and known to have a strong Far-UV and Lyman-$\alpha$ output (Ehrenreich et al. 2010). With a 6.55 Earth mass, the nearby exoplanet GJ1214 b should also provide an opportunity to undertake search for radio emission from a water-rich lower mass super-Earth planet (Charbonneau et al. 2009; Désert et al. 2011). In the near future, more sensitive observations at even lower frequencies will become feasible with the LOFAR observatory, providing a great boost to exoplanetary research.

[^1]: Data for these observations can be retrieved electronically from the GMRT archive server `http://ncra.tifr.res.in/``gmrtarchive` and by request to `email@example.com`.

[^2]: http://sundog.stsci.edu/first/catalogs/readme.html


abstract: Tens of millions of new variable objects are expected to be identified in over a billion time series from the *Gaia* mission. Crossmatching known variable sources with those from *Gaia* is crucial to incorporate current knowledge, understand how these objects appear in the *Gaia* data, train supervised classifiers to recognise known classes, and validate the results of the Variability Processing and Analysis Coordination Unit (CU7) within the *Gaia* Data Analysis and Processing Consortium (DPAC). The method employed by CU7 to crossmatch variables for the first *Gaia* data release includes a binary classifier to take into account positional uncertainties, proper motion, targeted variability signals, and artefacts present in the early calibration of the *Gaia* data. Crossmatching with a classifier makes it possible to automate all those decisions which are typically made during visual inspection. The classifier can be trained with objects characterized by a variety of attributes to ensure similarity in multiple dimensions (astrometry, photometry, time-series features), with no need for a-priori transformations to compare different photometric bands, or of predictive models of the motion of objects to compare positions. Other advantages as well as some disadvantages of the method are discussed. Implementation steps from the training to the assessment of the crossmatch classifier and selection of results are described.
author: Lorenzo Rimoldini,$^1$ Krzysztof Nienartowicz,$^2$ Maria Süveges,$^1$ Jonathan Charnas,$^1$ Leanne P. Guy,$^1$ Grégory Jevardat de Fombelle,$^2$ Berry Holl,$^1$ Isabelle Lecoeur-Taïbi,$^1$ Nami Mowlavi,$^3$ Diego Ordóñez-Blanco,$^1$ and Laurent Eyer$^3$
bibliography: O8-4.bib
title: Crossmatching variable objects with the *Gaia* data

#### Introduction

The crossmatch of celestial objects makes it possible to combine complementary information from data collected at various epochs, with different observational and instrumental features (such as wavebands, time sampling, duration, sky coverage, photometric and astrometric accuracy), and also to extract new information by leveraging the synergy among data sets. At the same time, some of the differences in instrumentation and data taking, convolved with the properties of the objects to crossmatch (herein named targets), can lead to misses and false detections , which can become numerous as the number of targets grows. Common causes of crossmatch errors include large positional uncertainties, proper motion, variability, blended objects, spurious sources, detector edges or gaps, contamination, noise, etc. Variable objects can be more challenging to crossmatch than constant sources, but they also provide additional features which can be exploited to aid in the identification of correct matches. For each object, we consider multiple characteristics derived from astrometry, photometry, and light curves, in combination with additional information from literature. Machine-learning classifiers are convenient tools to handle multi-dimensional tasks, automate the variety of decisions common in visual inspections, and minimize the occurrence of false positives and negatives. Supervised classifiers have previously been used for crossmatching catalogues with large positional uncertainties . Inspired by this work, we extended the classifier method to make full use of the time series information and applied it to crossmatch variable sources in the *Gaia* data with a selection of surveys, for use in validation and training of variability types.

#### Method

The main steps to crossmatch with a classifier are outlined below and followed by a brief summary of the pros and cons of the method.

**Neighbours.** The first step to crossmatch a set of targets in a data set is to find the corresponding neighbours in another data set within some angular radius from the targets, after making sure that the coordinates of the two data sets are compared in the same reference system, defined with the same equinox, and possibly taking into account the epoch of observation if the displacement by proper motion over time is not negligible (which might imply a search radius much greater than commonly used). We searched for neighbours with efficient PostgreSQL queries making use of the Quad Tree Cube sky indexing scheme . Our search radius was limited to 5 arcsec, accounting mostly for positional uncertainties of ground-based surveys, as most targets were located in the Large Magellanic Cloud (and thus with negligible proper motion effects).

**Match criteria.** Classification attributes are computed to distinguish matches from non-matches with several criteria from astrometry (angular separation), photometry (e.g., mean brightness, colour), time-series parameters (e.g., central moments and other statistics characterizing the variability), which also incorporate results from literature like periodicity (light curves folded by their most significant periods can be compared effectively, e.g. by the phases of brightness extrema or by a reduced point-to-point scatter). Depending on the criterion, it can be useful to include values as computed in each data set as well as from their comparison (differences or ratios). While the classifier should identify correct matches without relying on positions, if proper motion is relevant, its value could be correlated by the classifier with the angular separation from the target and thus reduce the risk of contamination with similar-looking neighbours.

**Training objects.** The selection of objects for the training set is one of the most critical phases of supervised classification. To ensure reliable results, a special effort is made to: *(i)* provide a good representation of all match and non-match criteria as a function of variability type and data quality (if the classifier gives different weights to classes depending on their relative representation, we suggest to use a similar number of training matches and non-matches); *(ii)* embed all possible reasons which drive visual inspection-based decisions, including as many challenging cases as possible; *(iii)* verify that the misclassification level is low and that the objects among false positives and negatives correspond to acceptable mistakes, or improve the definition of misclassified objects in the training set and iterate until the above-mentioned conditions are met. Occasionally, additional dedicated classifiers might be needed to deal with especially difficult cases (e.g., to recover matches from objects initially classified as non-matches).

**Optimisation.** For robust results and to avoid model overfitting, the classifier is optimised by its internal parameters (depending on the method) and by selecting an appropriate subset of the most useful classification attributes . Misclassified training-set objects from the optimised model are then assessed as in item *(iii)* of the training-set selection.

**Classification.** Finally, the classifier model is applied to the objects to crossmatch. In the current version, we assume that only one match is associated with each target and vice-versa. When the *Gaia* observations split sources which are unresolved or blended in other surveys, there is still some chance that the variable object is correctly identified by its variability pattern (unless the system includes multiple variable sources). Crossmatch results might include multiple match candidates per target and matches associated with multiple targets. We decided to select first the highest probability match for each target. If among the selected matches more than one target is associated with the same match, different options are possible: retain the safest matches (keeping the one with the highest probability and then iterating on the remaining targets for the next highest match probability until there are only single targets per match) or aim at crossmatch completeness (including lower match probabilities but for more targets). For the *Gaia* data, we chose to base our selection on the reliability of the crossmatch (based on the highest probability), as presented in Fig. .

**Assessment.** Classification results are assessed by inspecting low-probability non-matches and matches, the farthest matches, the nearest non-matches, and other potential border-line cases. While misclassifications are almost inevitable, the cases which cannot be missed are included in the training set (possibly with additional similar objects) and the steps from the classifier optimisation are iterated until misclassifications are acceptable. Further diagnostics of the global results, such as the distribution of matches in magnitude- and colour-difference space, can help highlight issues and direct corrective actions (like the selection of new training set objects and/or attributes).

**Pros and cons.** In summary, the method of crossmatching with a classifier has several advantages with respect to traditional position-based techniques: *(i)* the ability to characterize objects by a variety of features to better differentiate the match vs. non-match classes and automatically minimize the error rate; *(ii)* robustness of results as the classifier adapts to the data and discovers intrinsic relations: imperfect calibrations do not prevent optimal results, biases caused by artefacts are accounted for (as trained), measurements in different photometric bands can be compared directly without a-priori transformations (as long as the quantities which define them, such as brightness and colour, are included as attributes); *(iii)* better performance than a single multi-dimensional metric, as it does not depend on the accuracy of the components or theoretical expectations; *(iv)* selectivity based on variability: if the variability signals of a target and a match candidate are different, the classifier can be taught to consider the pair as a match (e.g., if the signal is only partially sampled) or non-match (e.g., if there is no interest in an eclipsing binary with no measurement in the eclipses); *(v)* independence from astrometric details: matches with low positional accuracy or significant proper motion can be identified without knowledge of positional uncertainties or predictive models of their positions (as long as they are within the neighbour search radius); *(vi)* the classifier returns a reliability score in the form of an estimate of the probability of matches, which can also be used to set different thresholds depending on the purpose (e.g., a higher threshold for training variability types and a lower one for completeness analyses). On the other hand, the main disadvantage of the supervised classifier method is that it depends on the training set (by definition) and it takes time to select training-set objects properly. As every survey is unique, new classifiers must be trained to crossmatch with different data sets. Considering the time to visually inspect hundreds of sources for a good training set, the visual confirmation of the best match among the neighbours can be more efficient when the number of crossmatch targets is less than about a thousand.

#### Results

The method described herein was applied by means of Random Forest classifiers to crossmatch known variable objects with the *Gaia* data. Full details of the crossmatch results, crossmatched catalogues, number of matches per catalogue and their sky coverage are presented in . Crossmatch targets covered primarily the region near the LMC, mostly from the OGLE-IV and the EROS-II surveys.


author: Christian Eistrup ; Catherine Walsh; Ewine F. van Dishoeck
bibliography: bib_new.bib
date: Received $\cdots$ / Accepted $\cdots$
title: Molecular abundances and C/O ratios in chemically evolving planet-forming disk midplanes

Exoplanet atmospheres are thought be built up from accretion of gas as well as pebbles and planetesimals in the midplanes of planet-forming disks. The chemical composition of this material is usually assumed to be unchanged during the disk lifetime. However, chemistry can alter the relative abundances of molecules in this planet-building material. To assess the impact of disk chemistry during the era of planet formation. This is done by investigating the chemical changes to volatile gases and ices in a protoplanetary disk midplane out to 30 AU for up to 7 Myr, considering a variety of different conditions, including a physical midplane structure that is evolving in time, and also considering two disks with different masses. An extensive kinetic chemistry gas-grain reaction network is utilised to evolve the abundances of chemical species over time. Two disk midplane ionisation levels (low and high) are explored, as well as two different makeups of the initial abundances ("inheritance" or "reset"). Given a high level of ionisation, chemical evolution in protoplanetary disk midplanes becomes significant after a few times $10^{5}$ yrs, and is still ongoing by 7 Myr between the H$_{2}$O and the O$_{2}$ icelines. Inside the H$_{2}$O iceline, and in the outer, colder regions of the disk midplane outside the O$_{2}$ iceline, the relative abundances of the species reach (close to) steady state by 7 Myr. Importantly, the changes in the abundances of the major elemental carbon and oxygen-bearing molecules imply that the traditional "stepfunction" for the C/O ratios in gas and ice in the disk midplane (as defined by sharp changes at icelines of H$_{2}$O, CO$_{2}$ and CO) evolves over time, and cannot be assumed fixed, with the C/O ratio in the gas even becoming smaller than the C/O ratio in the ice. In addition, at lower temperatures (\< 29 K), gaseous CO colliding with the grains gets converted into CO$_{2}$ and other more complex ices, lowering the CO gas abundance between the O$_{2}$ and CO thermal icelines. This effect can mimic a CO iceline at a higher temperature than suggested by its binding energy. Chemistry in the disk midplane is ionisation-driven, and evolves over time. This affects which molecules go into forming planets and their atmospheres. In order to reliably predict the atmospheric compositions of forming planets, as well as to relate observed atmospheric C/O ratios of exoplanets to where and how the atmospheres have formed in a disk midplane, chemical evolution needs to be considered and implemented into planet formation models.

# Introduction

Over the past 20 years exoplanetary science has evolved from purely detection to exoplanet characterisation. One example of characterisation is the deciphering of the molecular content of exoplanet atmospheres which has revealed simple molecules such as CO and , and possibly and .

The C/O ratio of an exoplanet atmosphere (usually derived from relative abundances of the simple molecules listed above) has been proposed to be a possible tool to link an exoplanet to its formation site in the natal protoplanetary disk. This is because disk midplanes have a radial gradient of C/O ratios in gas and ice . This approach, to couple observed C/O ratios in exoplanets with their possible formation sites, typically assumes that the radial dependence of the midplane C/O ratio is defined solely by the iceline (snowline) positions of the main volatile species in a disk of fixed chemical composition . The position of the iceline for a particular species depends on the temperature structure of the disk midplane, and the binding energy (or desorption energy) of the molecule to ice mantles on dust grains. Icelines thus affect the relative ratios of heavy elements in the gas and ice. For example, beyond the iceline, the gas is depleted in oxygen whilst the ice is enriched in oxygen. Similar changes occur across the , , and CO icelines thereby also altering the local C/O ratio in both the ice and gas. An example of a variable C/O ratio for a disk with a fixed chemical composition (as per the conventional assumption) is shown in Fig. 1 of . Due to the step-like features of that figure, caused by icelines, the figure will be referred to as the traditional "stepfunction".

Protoplanetary disks are not static objects: over the disk lifetime, from formation to dispersal, typically $\sim 0.1 - 10$ Myr, the disk generally cools, spreads, loses material (via accretion onto the star or dissipation) and thus becomes less dense over time . Hence, the icelines of volatile species also change in time, generally migrating inwards towards the star . To date, most models exploring the location and evolution of icelines with the explicit goal to link to the composition of planet-building material have assumed static midplane conditions . Static models are more straightforward to couple with chemical kinetics. Recently explored the evolution of elemental ratios across icelines in both a static and viscously evolving disk model including the radial drift of ice-coated grains of different sizes. The temperature structure is kept fixed in time in these models. A similar approach has been adopted by and . Both of these models include dust and pebble dynamics at the expense of kinetic chemistry. Those models which do allow evolving disk midplane conditions also neglect kinetic chemistry for simplicity .

The impact of kinetic chemistry in planet formation models is yet to be fully explored due to the increased computational demands in coupling a chemical model with e.g., a planet population synthesis model. This is despite chemical kinetics being a necessity in models explaining protoplanetary disk observations for some 20 years since the first detection of molecules, other than CO, in disk atmospheres . This is now changing, as is the traditional picture of a static disk. Recent examples of kinetic gas-grain chemistry in disks can be found in , and , with different levels of treatment of the chemistry and grain growth. Also, there is growing observational evidence for low gaseous CO abundances which can be attributed to either rapid planetesimal growth or chemical evolution .

The disk midplanes suffer from a lack of observational constraints on their chemical compositions. This due to the observational difficulty of probing the midplane through the optically thick higher-lying layers of the disk and to the freeze-out of species in the outer disk midplane. Most molecular emission, whether at millimeter or infrared wavelengths, therefore arises from the warm layer at intermediate disk heights . Even the emission observed with ALMA, which probes the part of the outer disk where CO is frozen out, arises mostly from layers just above the midplane . Molecules expected to be abundant in midplane ices such as , , and have been detected in the gas-phase but the observations either lack spatial resolution or reflect subsequent gas-phase chemistry, making it difficult to infer the outer disk midplane ice abundances. Ultimately, comet abundances may provide the best constraints on this region, at least for our solar nebula disk.

In contrast, the midplane of the warm inner disk where CO is not frozen out has recently been imaged for the first time through CO isotopologue observations of by for one disk. Such observations are promising, and are perhaps also feasible for other common species, but they require large telescope time investments. Also, the dust continuum emission becomes optically thick in the inner disk, hiding our view of much of the planet-forming midplane. Thus, perhaps ultimately the only information on the midplane chemical composition is to be inferred from the atmospheric compositions of the planets that form out of the midplane, and which remain after the disk is dispersed.

As emphasized in , the road from a gaseous disk midplane to an observable exoplanet atmospheric composition is long, requiring many steps, physical (e.g., migration) as well as chemical. A key issue is whether the planets' heavy element enrichment is controlled by the accreted gas or by the accreted (icy) planetesimals. , , and found that the dominant delivery mechanism for heavy elements to a forming gas-giant planet atmosphere is accretion of icy planetesimals rather than direct accretion from the gas, at least for planets with masses less than a few times that of Jupiter. The ultimate C/O ratio in the observable part of the planet's atmosphere also depends on how well the sublimated planetesimals are mixed in the envelope and on the core-envelope partitioning. In any case, it is clear from models such as those of , which explicitly include planetary formation and planetesimal accretion processes, that the composition of both the gas and the ice of the evolving parent disk is needed to determine the planetary atmosphere composition.

(herefrom Paper 1) investigated how kinetic chemical evolution affects the composition of volatiles (ice and gas) in a static protoplanetary disk midplane. If interstellar ices are inherited from the collapsing cloud (without alteration) by the protoplanetary disk, then the ice composition is preserved only for the case where there is no source of external ionisation (i.e., no cosmic rays). An important conclusion from Paper 1 is that if chemistry is efficient on a timescale of $\sim 1$ Myr, then the C/O ratio of the gas and ice remains $< 1$ always within the CO iceline. Only for the case of low ionisation and full inheritance does the C/O ratio approach 1, and this only occurs for the gas: the ice remains oxygen-rich always.

The effects of chemical kinetics on the composition of gas *and* ice volatiles in evolving protoplanetary disk midplanes remains to be quantified. We here expand upon the work presented in Paper 1 to investigate how changing temperature and density in the disk midplane with time modifies the above conclusions. We also consider how disk mass may affect the composition of planet-building material. We furthermore study the timescale for chemical changes by extending the lifetime of our disk models to $\sim 7$ Myr at which point we assume that planet formation has halted and disk dispersal is advanced.

We investigate a wide parameter space, with somewhat simplified physical structures, and two sets of extreme initial abundances. The two scenarios of initial chemical abundances are: cloud inheritance (hereafter "Inheritance" scenario) and chemical reset (hereafter "Reset" scenario). In the inheritance scenario the initial abundances are molecular, and taken to be those found in ices in the parent molecular cloud. In the reset scenario, the initial abundances are atomic, because all molecules are assumed dissociated by high temperatures close to the young star. Both scenarios include H, and He initially, with abundance ratios: $N$(H)/$N$()=10$^{-4}$, and $N$(He)/$N$()=0.17. Generally, the inner disk midplane should be susceptible to luminosity outbursts that can reset the chemistry, while the outer disk midplane should be expected to inherit the parent cloud abundances, so both scenarios may apply but in different parts of the disk . The intention is to investigate chemical trends expected for these two sets of initial conditions and using a more realistic disk, which is becoming cooler and more diffuse over time.

# Methods

The evolving physical disk model from is used. This disk model has been adopted in planet population synthesis studies. It features time evolution of disk midplane temperature and pressure as a function of radius ($0.2 - 30$ au) over a timescale of 7 Myr. The approach for calculating the ionisation rate and chemical evolution follows that presented in Paper 1: we summarise the main aspects here.

## Evolving disk model

An evolving disk here refers to a disk that is cooling in time whilst also losing mass. In this work power laws are fitted to the temperature structure evolving in time as originally computed by .

The disk structure adopted from and used in Paper 1 will be referred to as the 0.1 MMSN disk, having an initial mass of $1.3\times 10^{-3}M_{\odot}$ or 0.13 times the minimum mass solar nebula, or MMSN . The reason for fitting power laws is that the initial time-dependent temperature structure from featured a step, i.e., an unphysical radial drop, at around 5 AU, as well as an artificial lower temperature cut-off at 20 K. Both of these features were smoothed out with a power law profile in Paper 1. The same unphysical drop in temperature is observed for later time steps. In order to smooth out all timesteps, whilst ensuring a temperature profile that is monotonically decreasing in time for all radii, power laws are fitted to all temperature profiles from . For timesteps up to 400 kyr of evolution, the power laws are fitted using model data from 1 to 2.1 AU, and for all later timesteps from 0.2 to 0.6 AU. The resulting power law fits are then extrapolated to the entire radial range of the disk. This procedure gives the temperature profiles that can be seen for selected timesteps (as labeled) in Fig. a.

Using these temperature profiles, the midplane density profiles for all timesteps are computed using the midplane pressure profiles from , assuming to be the main gas constituent. The resulting midplane number density radial profiles at selected timesteps are shown in Fig. b.

The surface density profiles at the first timestep are computed using the prescription and values for Table 1, Disk "8" in . Taking into account disk evolution, the surface density at later timesteps at a radial distance $R$ is computed by scaling the initial surface density $\Sigma_{t=0}(R)$ to the evolution in midplane number density $n(R)$ as seen in Fig. b. Hence, the surface density at point $R$ at time $t$ is given by $$\Sigma(R,t) = \Sigma(R,t=0) \times \frac{n(R,t)}{n(R,t=0)}
\label{sigma_evol}$$

To drive chemical evolution, ionisation of the disk midplane is needed, a conclusion reached by our and other models . Paper 1 found that chemical evolution was observed to be significant within 1 Myr evolution time only when short-lived radionuclides (SLRs) *and* cosmic rays (CRs) were included. In this paper, the contribution to ionization by SLRs and CRs are treated in a similar way to that in Paper 1: the ionisation rate from decay of SLRs is computed using the prescription from Eq. 30 in , including the time-dependent term, which was omitted in Paper 1.

$$\zeta_{\ce{SLR}}(R,t)=(2.5 \cdot 10^{-19}\mathrm{s}^{-1})
\left(\frac{1}{2}\right)^{1.04t}\left(\frac{\Sigma(R,t)}{\mathrm{g~cm}^{-2}}\right)^{0.27}
\label{eq_slr}$$

The contribution from CRs is calculated assuming attenuation depending on how much material the CRs have to pass through on their way to the midplane. The attenuation factor is calculated using the (now) evolving surface density of the disk in the vertical direction giving the following ionisation rate

$$\zeta_{\ce{CR}}(R,t) = \zeta_{0}\times \mathrm{exp} \left(\frac{\Sigma(R,t)}{96 \mathrm{g~cm}^{-2}}\right),$$

where $\Sigma(R,t)$ is the evolving surface density profile, taken from Eq. , and $\zeta_{0}$=10$^{-17}$ s$^{-1}$ (as in Paper 1).

The SLR ionisation rate profiles ("low" ionisation) and the SLR + CR ionisation contribution profiles ("high" ionisation) are plotted at selected timesteps in Fig. c and d. Note that the SLR ionisation level decreases rapidly with time and becomes very low, of order 10$^{-22}$ s$^{-1}$ by $\sim 7$ Myr. In contrast, the CR ionisation level increases with time, especially in the inner disk, due to the decreasing surface density.

The timestep grid of is adopted, with physical conditions changing for every timestep of their models. However, timesteps are added at early evolutionary stages ($1-10^{4}$ yrs) in order to account for short-term chemical effects. The first timestep in the time grid in this work is 1 yr, and the physical conditions at 1 yr from are adopted for this timestep. Four logarithmic decades are applied ranging from 1 to 10$^{4}$ yrs, with physical conditions during this time fixed at the conditions at 1 yr. After 10$^{4}$ yrs, the time grid and the associated, continuously changing physical conditions of are adopted. The time goes up to 7 Myr, in order to also investigate long-term chemical evolution. Until 7 Myr, this disk model goes through 401 timesteps.

## Higher disk mass: 0.55 MMSN disk

For investigating the effect of a higher disk mass, a more massive evolving disk physical structure from is adopted . The initial mass of this disk is 0.55 MMSN = 0.0055 $M_{\odot}$, determined in the same manner as was the case for the less massive disk in Paper 1. Since this disk has the same steep temperature drop as was the case with the 0.1 MMSN disk, and also features the 20 K lower temperature limit, power laws are also fitted to the temperature profiles at each timestep. In order to have the temperature profiles decreasing in time monotonically at each radial point, for this disk, the power law fitting is done for the first timestep (1 yr) and the last timestep (7 Myr) for the evolving disk temperature profiles between 1.1 and 1.5 AU. For all intermediate timesteps, power law indices intermediate to the two fitted indices are adopted, so that the power law index is continuously and linearly decreasing in time, with the step-wise decrease in index value being constant for each timestep. The original disk temperature structure from is then adopted inside 1.1 AU, whereas the fitted (for first and last timesteps) and imposed power law structures are applied outside 1.1 AU. For the outer parts of the disk, at late timesteps, the temperature gets very low (below 8 K), which is unphysical. A lower limit of 8 K to the temperature is therefore imposed.

The midplane number density and ionization level structures for this 0.55 MMSN disk are computed in the same way as described for the 0.1 MMSN disk in Sect. . The resulting midplane temperature, density and ionisation profiles for the midplane of the 0.55 MMSN disk are presented in Fig.  (see Appendix). The evolving 0.55 MMSN disk goes through 438 time steps during the 7 Myr modeled evolution. The first timestep is at 1 yr, and from 1 yr through 10$^{4}$ yrs the time resolution is the same as for the same early timesteps for the 0.1 MMSN disk model, as described in Section . After 10$^{4}$ yrs, the timesteps from are adopted.

The disk structures differ for the two different disk masses. Since the ionisation level is dominated by the contribution from CRs at all times throughout the disk (see Fig. and , panels c and d), the decreasing surface density means the degree of ionisation in the inner disk is increasing in time. Because of the higher densities, the degree of ionisation in the inner disk is increasing faster in time for the 0.55 MMSN disk than for the 0.1 MMSN disk.

The temperature structure for the 0.55 MMSN disk is hotter in the inner disk, and has a steeper radial gradient, than that for the 0.1 MMSN disk. The low temperature in the outer disk for the 0.55 MMSN disk is due to lesser heating from irradiation from the central star. This is because more material shields the radiation for the 0.55 MMSN disk than for the 0.1 MMSN disk.

Fig. shows the evolution of the disk masses for the two disks, normalised to their initial masses. Both disks experience significant mass loss during the evolution, with the 0.1 MMSN disk losing  95% of its initial mass, and the 0.55 MMSN disk losing  98% of its initial mass, after 7 Myr.

## Chemical model

The chemical model includes gas-phase chemistry, gas-grain interactions and grain-surface chemistry. The gas-phase chemistry is from the latest release of the UMIST Database for Astrochemistry termed Rate12. The rates for gas-grain interactions and grain-surface chemistry are calculated as described in . A gas/dust mass ratio of 100 is adopted. The chemical model used here is identical to the "Full chemistry" setup in Paper 1. Photodissociation and photodesorption due to cosmic-ray induced UV photons are included.

The adopted grain size is 0.1 $\mu$m. As discussed in Paper 1, this assumption is certainly not correct, but the effects of grain growth to larger sizes and decreasing midplane gas/dust ratios due to settling tend to compensate each other. The important dust parameter for the chemistry is the amount of surface area available for freezeout and subsequent grain-surface chemistry. This is often parameterised as a combination of grain size and number density (set by the assumed gas-to-dust mass ratio). The assumption on the constant grain size will be further discussed in Section . More generally, all trends found in this paper are robust but the exact timescale for chemical changes and the magnitude of the chemical changes will depend on the assumed grain size and the gas/dust mass ratio.

For details about the two sets of initial abundances (the "inheritance" and "reset" scenarios), see Table 1 in Paper 1. The overall C/O ratio utilised is 0.34. In Paper 1 it was found that if the disk is exposed to ionising cosmic rays, efficient production of ice and gas and ice takes place at intermediate disk radii, whereas gas is converted to CO and . Also, if full chemical reset into atoms occurs en route into the disk midplane (e.g. via a shock or a luminosity outburst), then the abundances of dominant volatiles can differ from interstellar values by more than an order of magnitude . Most striking is the depletion of ice advancing enhanced gas-phase CO and . This difference is larger for the case where cosmic rays are excluded from the "reset" scenario. also found cosmic rays to be of importance to chemistry that alters the C/O ratio in the midplane. Their results, however, were different from those in Paper 1, due to differences in the grain-surface chemistry utilised.

Throughout this work, whenever distinguishing between gas-phase and icy species is neccessary, an "i" in front of a molecule involved in a reaction will denote that the molecule is icy, and a "g" in front will denote a gas-phase molecule. For reference, an iceline is the midplane radius inside of which a given chemical species is in the gas phase, and outside of which the species is in the ice.

# Results

Fig. shows abundances as a function of radius for selected volatile species in gas and ice after 7 Myr evolution, for four different model setups. As indicated in the boxes in each panel, the model setups explore a range of static and evolving disks, for the inheritance versus reset scenarios, and at both low and high ionisation levels.

## Static versus evolving disk: shifting icelines

In Paper 1 it was found that given low ionisation and inherited initial chemical abundances, chemical evolution was insignificant on the timescale of 1 Myr. Fig. a shows the same case, but now for a physically evolving disk structure (the 0.1 MMSN disk), as described in Section , and for up to 7 Myr. It is evident from Fig. a that the chemistry in the midplane remains defined by the iceline positions, and that chemical processing has caused no significant chemical changes. This conclusion holds for the 0.55 MMSN evolving disk structure as well. Hence, the conclusion from Paper 1, that in the case of inherited abundances and low ionisation level, chemical evolution is insignificant, can be extended to a timescale of 7 Myr for these cases.

The main effect of utilising an evolving disk structure instead of a static one is that the icelines shift inwards with time. This in evident when comparing Fig. c and d, which both feature the inheritance scenario at high ionisation, but for a static and an evolving disk structure, respectively. For Fig. d the icelines are shifted inwards in time, whereas for c the icelines are static corresponding to the static temperature structure. The additional effects of adopting an evolving disk structure instead of a static structure are the retention of ice around 0.7 AU in panel d and 1-2 orders of magnitude lower gas abundance in the inner disk. The iceline positions for the disks are determined from Fig. as the maximum distance $R$ from the star at which a volatile is more abundant in gas than in ice. Fig. features the locations of the thermal icelines of selected volatile species as functions of time. The solid profiles indicate the movement of the icelines over time. Notice that the axes scales are linear in Fig. .

For , , and in the 0.1 MMSN disk, the icelines shift by 30-35% between 0.5 and 7 Myr of evolution (e.g., from 0.7 to 0.5 AU for ). For , CO, and the icelines are shifted inwards by $\sim$`<!-- -->`{=html}60%. The larger shifts for the latter, more volatile species are due to the larger decreases in temperature in the outer disk, due to the decreasing slopes of the temperature profiles with time (see Fig. a). For the 0.55 MMSN disk, the icelines shift farther than for the 0.1 MMSN disk. This is due to the steeper temperature profile for the 0.55 MMSN disk, as can be seen when comparing top left panels in Figs. and . The temperature drops by $\sim$`<!-- -->`{=html}50% from 0 to 2 Myr at 10 AU in the 0.55 MMSN disk, versus a temperature drop by $\sim$`<!-- -->`{=html}20% in the 0.1 MMSN disk over the same timeframe and radius.

## Timescales of chemical changes

Figs.  and show abundances for five key volatiles as function of midplane radius at six timesteps: 0.1, 0.5, 1, 2, 5 and 7 Myr, for the "inheritance" scenario model at high ionisation. The left panels are for the 0.1 MMSN disk, and the right panels are for the 0.55 MMSN disk. A time of 0.1 Myr was chosen as the first timestep because it was found in Paper 1 that for the inheritance scenario no chemical changes had taken place yet at this evolution time. An age of 0.5 Myr is representative of the timescale corresponding to the end of the embedded phase of star formation, when the protoplanetary disk is revealed. This was also found in Paper 1 to be the chemical evolution timescale for the high ionisation case. In that work, 1 Myr was considered the full evolution time: here, we consider additional and later timesteps at 2, 5, and 7 Myr. The first is chosen as it is the median age of T Tauri stars and represents the lifetime of the gas-rich protoplanetary disk. A time of 5 Myr represents an aged disk like TW Hya. By 7 Myr the gaseous disk is thought to have fully dissipated resulting in a gas-poor debris disk .

As seen in Figs. and , chemistry is continuously ongoing throughout the evolutionary time of 7 Myr. The chemical abundance changes over 7 Myr vary from factors of a few (e.g. a 3 times decrease in ice abundance at 10 AU in Fig a to orders of magnitude (e.g. a gas depletion at 5 AU in a, resulting in a significantly different chemical "picture" from the beginning to the end of the evolution. For all species considered in these plots, the shifting icelines can be seen as an inward shift with time of the radius where the gas and ice profiles cross each other.

Overall, with the exceptions of , CO and inside 0.4 AU to be discussed in Section , the trends are similar for the 0.1 MMSN and 0.55 MMSN disks. Thus, in the following discussion only the chemical evolution of the 0.1 MMSN disk case is considered.

To visualize the main chemical changes more clearly, Fig.  highlights the evolution of key species with time at each of four chosen radial positions: 1, 5, 10 and 30 AU. At 1 AU large changes happen between 1 and 7 Myr. The abundances of CO and gas seem to converge at the end of the evolution, indicating that a steady state situation may be reached where these two species are the main carbon and oxygen reservoirs. ice is still dropping in abundance, thus, if evolution were to continue for a longer time, a further decrease in ice abundance would likely be seen.

At 5 AU, no steady state seems to have been reached after 7 Myr. CO and gas and and ice have near equal abundances to within a factor of two, and a steady increase in ice abundance is seen throughout the evolution reaching a final abundance of $\sim
  10^{-5}$, making it the third most abundant carrier of elemental carbon, accounting for $\sim 15$% of the carbon. gas is depleted due to reactions with , which is a consequence of the high ionisation level, as also mentioned in Paper 1. A "reverse" evolution of CO gas and ice is also evident, taking place at about the same time (between $\sim$`<!-- -->`{=html}1.6-5 Myr), indicating interdependency between production/destruction of CO and . The decreasing abundance of CO gas and increasing abundance of ice from $\sim$`<!-- -->`{=html}0.1 Myr to $\sim$`<!-- -->`{=html}2 Myr can be explained by CO gas colliding with the grains, and subsequently reacting fast with OH (faster than CO can desorp) to produce on grain surfaces, as also described in Paper 1. The "reverse" evolution for CO and , after 2 to 3 Myr, is due to the increasing midplane ionisation level over time (see Fig. d). For both a static and an evolving disk, the continuous CR ionisation of the midplane causes an increasing CR-induced photon fluence there (note that the fluence increases faster for the evolving disk due to the evolving ionisation level). This increasing fluence amplifies the photodissociation of ice into CO and O on the grains, which starts to dominate over the production reaction . The result is a decrease in ice and an increase in CO gas after 2-3 Myr. Thus, for an evolving disk, and the physical conditions considered here, the ice abundance reaches a maximum. The more diffuse the midplane becomes over time, the higher the ionisation contribution from CRs stays accordingly, and the shorter time it takes for the CO and evolutions to invert, in what will now be referred to as an "abundance inversion".

Going out to 10 AU, the evolution is very similar to that at 5 AU. The main difference is the rapid decrease in and CO gas abundances at the end of the evolution, which is due to the shifting of the iceline from outside to inside of 10 AU (see Fig. ), and the destruction of CO gas. The latter is caused by the rapid conversion of CO into ice mentioned above. These changes to and CO gas at 10 AU remove them from the gas phase. An effect of this freeze-out is also the extra availability of and CO on the grain surfaces which both react to form and ices, which are seen to increase in abundances simultaneously with the freeze-out of CO and .

Out at 30 AU it is cold enough for all volatiles, except CO, to be frozen out initially. As seen in Fig. , within the abundance limits, CO gas and ice are co-existing because $R$=30 AU is just inside the initial thermal CO iceline, with the ice abundance accounting for a few percent of the total CO abundance. The CO gas abundance decreases after $\sim$`<!-- -->`{=html}0.4 Myr, at which point the midplane has cooled enough for the CO iceline to move inwards of 30 AU, after which the CO ice becomes more abundant than the gas. However, the CO ice abundance after about 1 Myr is only a few percent that of the initial CO gas abundance, indicating that CO is processed on grain surfaces upon freeze-out. ice is also destroyed after 1 Myr of evolution, but ice is steadily produced to become the dominant carbon-bearing species after 7 Myr.

This production of ice at 30 AU is linked to the destruction of ice through photodissociation by CR-induced photons which takes place simultaneously after 1 Myr. ice is destroyed on the grains inside and outside of the location of CO iceline. It is not reproduced from hydrogenation of CO because CO is being converted into . Outside the CO iceline CO and are both being photodissociated on the grains caused by CR-induced photons, through the reactions,

, and

This means low abundances of oxygen-containing complex organic molecules. In the cold outer midplane with temperatures down to around 15 K, the mobility of molecules on the grains is low, so hydrogenation reactions become dominant. is causing the increase in ice abundance, with being the dominant carbon carrier after 7 Myr of evolution at 30 AU. Likewise, the hydrogenation of ice and ice is responsible for the production of ice. ice is formed from hydrogenation of OH leftover from the photodissociation of , including the reaction:

.

The abundance of ice increases with increasing radial distance. In addition to ice, HCN ice is also abundantly produced at 30 AU, and these two species jointly account for 40% of the elemental carbon, with accounting for an additional 50%, and the remaining 10% is in other molecules, such as (further discussed in Section ) by 7 Myr. ice accounts for more than 99% of the elemental oxygen.

Overall, it is evident from these figures and discussion that chemical evolution continues up to (at least) 7 Myr. That was also a conclusion of . Under the conditions and assumptions presented here, the majority of changes to the chemical abundances take place between 0.5 and 7 Myr, and as in evident from Fig. and Fig. , the changes are significant (from factors of a few to orders of magnitude changes for *all* species).

## Varying disk masses

Figs. and present radial abundance distributions at different evolutionary timesteps for CO, , , and . Left panels are for the low mass evolving disk structure. Right panels are for the high mass evolving disk structure.

Overall, when comparing the two disk masses for all five species it is seen that there are no significant differences in the abundance evolutions. However, the temperature structures are different, thus the icelines are located and shifted by different radial distances (see Section ). Only in the case for gas, is the evolution in the innermost disk (inside 0.4 AU) very different (by up to 3 orders of magnitude). This is due to the high temperatures and densities here, causing the abundance to be dictated by chemical equilibrium. This is more pronounced for the 0.55 MMSN disk, which is warmer in the inner tenth of an AU, than the 0.1 MMSN disk.

## Importance of initial abundances: inheritance vs reset

The choice of initial abundances was shown in Paper 1 to have a large effect on the final abundances after 1 Myr of evolution. In Fig. , panels b and d show abundances after 7 Myr evolution for an evolving disk with a high level of ionisation, with panel b) assuming a reset scenario for the initial chemical abundance, and panel d) assuming the initial abundances to be inherited. Since both cases have assumed the same evolving physical structure, the icelines are identically located in both panels.

Inside the iceline at $\sim$`<!-- -->`{=html}0.5 AU, where all species are in the gas phase, similar abundance levels are seen for , CO and , in both scenarios. gas, on the contrary, is absent from the inner disk in the reset scenario. In relation to this absence, a destruction of gas is evident in the inheritance scenario as seen at 1 AU in Fig. a, which indicates that is being continuously destroyed in the gas phase, a destruction happening more slowly inside the iceline in Fig. , than it does outside that iceline.

Redirecting focus from the inner to the outer disk, the abundances of the ices outside the iceline at around 10 AU are very similar (at 30 AU is a factor of 2 different, is $\sim$`<!-- -->`{=html}10% different, and is only 1% different) when comparing the reset and the inheritance scenarios in Fig.  b and d for chemical evolution by 7 Myr. Indeed, outside 10 AU the choice of initial abundances seems irrelevant for the resulting abundances, given a long enough evolution time. In other words: in this region, which is very relevant for comet formation, chemical steady state is close, and the fingerprint of the interstellar chemical abundances is erased if the gas disk lasts for 7 Myr.

The inner (mostly) gaseous midplane, and the outer (mostly) icy midplane produce similar abundance ratios independent of the choice of initial abundances. The intermediate region in Fig.  b and d, roughly between the and icelines at 0.5 AU and 10 AU, is quite different. The dominant gas phase species are CO and , both at approximately the same abundance level within a factor of 2, in both the reset and the inheritance scenarios. and ices, however, are 1-2 orders of magnitude lower for the reset scenario than for the inheritance scenario. Looking into the time evolution of CO, , and in the inheritance scenario with high ionisation at 5 AU shown in Fig. b, it is evident that none of these species have yet reached steady state (although it is close) by 7 Myr. Additional evolution time would therefore likely bring the abundances of and ices in the inheritance scenario further down, and CO and gases further up, similar to the plot for the reset scenario in Fig. b.

##  as a significant disk midplane molecule

Molecular oxygen is often not considered to be a dominant molecule in planet formation models. The detection of a high abundance of ice to ice of 3.8+/-0.85% on Comet 67P reported by has triggered models to explain the origin of this molecular oxygen .

In disk chemistry models by is abundantly produced in the intermediate layers of a disk. Here, the evolution in the midplane is traced up to 7 Myr. Fig. shows abundance profiles for at different timesteps for the "inheritance" scenario. It is evident that between the and icelines, the abundance of gas continuously increases with time. is produced on the grain surfaces through the following reaction pathway:

,

ice subsequently desorbs (if inside the iceline), and steadily builds up a high abundance of $\sim$`<!-- -->`{=html}10$^{-4}$ wrt over 7 Myr evolution. The initial abundance of is 6$\times 10^{-6}$ (20 times lower than the gas abundance by 7 Myr), and the HS molecule left over from the last step in the reaction chain above is recycled for conversion of more oxygen atoms into via the second step above. Henceforth, the initial abundance of sulphur is seemingly irrelevant for the final abundance of , since the sulphur merely acts as a catalyst for the conversion of oxygen atoms into molecular oxygen.

## Caveats of model assumptions

### Choice of grain-surface reaction parameters

An important part of the chemical evolution presented here is caused by grain-surface chemistry. The importance of grain-surface chemistry was also highlighted in Paper 1, as well as in . However, the grain-surface reactions are sensitive to the choice of grain surface parameters. In this work, the barrier height for quantum tunnelling $b_{\rm{qt}}$ between grain surface sites has been set to $b_{\rm{qt}}=1$ Ång, and the ratio of diffusion energy $E_{\rm{diff}}$ between grain surface sites and molecular binding energy $E_{\rm{des}}$ has been set to $E_{\rm{diff}}/E_{\rm{des}}=0.5$. This is a conservative take where most grain-surface chemistry happens at moderate temperatures ($\gtrsim25$K). If $b_{\rm{qt}}$ was to be increased, the hydrogenation reactions would be slowed down, and vice versa for decreasing $b_{\rm{qt}}$. If $E_{\rm{diff}}/E_{\rm{des}}$ was to be decreased, then grain-surface radical-radical recombination could happen at lower temperatures. Such changes would affect chemical evolution, but an exploration of this parameter space is left for future work.

### Dependence on ionisation

As highlighted in several previous studies, including Paper 1, , , and , the chemical evolution taking place in protoplanetary disk midplanes is highly dependent on the degree of ionisation. The timescale of chemical evolution has been found in this work to scale inversely with the ionisation level. It is found that an ionisation level 10 times higher than that presented here will shorten the chemical evolution time scale 10 times, and vice versa.

In the situation where the midplane is significantly shielded from CR ionisation, e.g. by a high column density attenuating the CR particles, or by magnetic field effects , then no significant chemical evolution takes place over the disk lifetime of 7 Myr. In the case of complete exclusion of CRs, this is seen in Fig. a, where the ionisation level is solely based on SLR decay products in the midplane. This ionisation level starts out between 10$^{-19}$ and 10$^{-18}$ s$^{-1}$, and drops orders of magnitude over the evolution time, as seen in Fig. c. Thus, for midplane ionisation levels of a few times 10$^{-19}$ s$^{-1}$ or lower, 7 Myr of evolution is insufficient time for the ionisation to cause significant chemical evolution. Along the same lines, if chemical steady state is to be achieved within 1 Myr of evolution, in the outer disk, then the ionisation level has be $\sim10^{-16}$s$^{-1}$ (about ten times higher than assumed for high ionisation in the outer disk here) or higher. The effects of X-ray ionisation on disk chemistry in planet-forming midplanes will be explored in future work.

### Choice of grain sizes and distribution

Like in Paper 1, the physical grain parameters have been kept constant throughout the evolution time. However, in real disks several processes take place for grains during the lifetime of a disk, all of which could change the grain parameters adopted here. These processes include grain settling to the midplane, agglomeration and fragmentation, as well as grain radial drift. The physics of grain evolution has been studied extensively .

One way of theoretically investigating the effects of changing dust parameters, is to simply adopt a different dust size as input for the models. Increasing the dust size will reduce the total surface area-to-mass ratio, prolonging the freeze-out and desorption timescales, and vice versa for decreasing dust size. However, the grain-surface chemical evolution of the ices will likely simply be slowed down for a reduced surface area-to-mass ratio, and sped up for an increased surface area-to-mass ratio. Thus, the same chemical effects might be seen, just on different timescales (see Section ). Recent work by found that the dust growth timescale in the disk midplane is significantly longer (3 orders of magnitude) than the timescale of freeze out and desorption, e.g. for CO.

The dust growth timescale is, however, still shorter than the timescale for chemical evolution. Although this means that the grain size utilised for grain-surface reactions here in fact is not static (as assumed) over the chemical evolution time, the grain growth might not affect the chemistry that differently from what has been presented in this work: grain growth likely does not accumulate small compact spherical grains into larger and compact grains with a predictable change in grain surface areas. Rather the growth may lead to fluffy aggregates or grains with uneven surfaces . Hence, the change to the grain surface area-to-mass ratio may not be significant. If grains are subsequently compactified resulting in a reduced grain surface area-to-mass ratio, it may simply lead to the aforementioned longer timescale for grain-surface reactions.

# Discussion

## Iceline shifts: comparison to other studies

The positions and movements of volatile icelines have been subject to much investigation recently, see , , , and references therein. modelled shifting iceline positions over 3 Myr assuming both radial drift of particles, and a viscous disk with gas accretion. In these models, they found shifted icelines of volatiles compared to a static disk situation. These shifts, however, are not caused by evolving temperature structures as is the case in the present work, but by radial drift of different sized particles. Thus, radial drift can also shift the icelines independently by setting different radii for desorption of icy grain mantles depending on the sizes of the grains. Despite these differences, both evolving temperatures and radial drift of particles act to shift the icelines inwards. found that the iceline was shifted inwards by up to 40%, whereas the icelines of and CO were shifted inwards by up to 60% and 50%, respectively. These shifts are comparable in size to those found in this work, but not caused by the same mechanism. Thus, the combination of different physical disk evolution effects could possibly result in even larger iceline shifts.

## What happens to gaseous CO?

The dominant ices in the outer disk midplane at the end of evolution are all stable molecules, for both choices of initial abundances. For the "reset" scenario this results from hydrogenation of carbon and oxygen atoms on the grain surfaces, whereas for the "inheritance" scenario, the oxygen and carbon atoms are mainly supplied from the CR-induced photodissociation of CO and .

CO gas has been studied extensively through observations of protoplanetary disks. As noted in the introduction several observational studies have found surprisingly weak CO emission from disks, more than can be accounted for by simple freeze-out and photodissociation. In particular for TW Hya, reported depletion by two orders of magnitude through CO isotopologue observations, and recently determined the CO midplane iceline with an associated freeze-out temperature of $27^{+3}_{-2}$ K, higher than expected from the binding energy of pure CO ice ($\sim 21$K). attributed this higher freeze-out temperature to CO being frozen out onto a mix of and ices. In relation to these reported depletions, the findings for CO in this work are interesting. The outer icy disk here is not the only region lacking CO. A decrease in CO gas abundance is also seen to take place for the "inheritance" scenario for the region between the and the CO icelines in Fig. c around $\sim$`<!-- -->`{=html}3 AU, until 2 Myr of evolution. The effect of CO freezing out and subsequently reacting into and chemically converting into other species such as HCN and means that CO gas is effectively reduced in abundance by up to 2 orders of magnitude, within the CO iceline. This reduction in CO gas, however, is only happening so long as the CR-induced photon fluence is low enough to not dissociate into CO on the grains, as discussed in Section . The models show that chemical CO gas depletion in a disk midplane could therefore be a temporary effect. As discussed earlier, the timescale of CO depletion, which lasts until the "abundance inversion" takes place, will depend on the ionisation conditions, and thus the density, in the midplane, with a lower ionisation level prolonging the CO depletion timescale.

An additional large drop in CO gas abundance is seen starting by 5 Myr at $\sim$`<!-- -->`{=html}10 AU for the 0.1 MMSN disk, see Fig. c (the "inheritance" scenario). Thus, if one was to determine the CO iceline from depletion of gas-phase CO isotopologues in an old disk like TW Hya, the desorption temperature for CO in this model could appear to be at $\sim$`<!-- -->`{=html}29 K at $\sim$`<!-- -->`{=html}10 AU, rather than at $\sim$`<!-- -->`{=html}21 K at 16 AU, for the 0.1 MMSN disk. This appearance of the CO iceline to be at a higher temperature and smaller radius than prescribed by the CO binding energy is due to the chemical depletion of CO gas, happening outside the iceline, resulting in a "fake" CO iceline. A "fake" CO iceline was also seen in Paper 1, although that was different from the one here: in Paper 1 the "fake" iceline was seen outside the iceline by 1 Myr, thus at a smaller radius and at an earlier evolutionary stage. The "fake" iceline seen here coincides with the thermal iceline of , and the reduction in CO gas abundance outside 10 AU is due to the freeze-out of . ice is hydrogenated into ice on the grains, and subsequently dissociated into OH ice. This OH, in turn, reacts with colliding CO to produce ice, thereby reducing the CO gas abundance. This effect will be further investigated in future work.

In Fig. the abundance evolution of the main carbon-bearing volatiles, CO, , , HCN, , are plotted at 10, 20 and 30 AU, alongside "Other", which accounts for the carbon that is not contained in the plotted species. For all three radii, the main contributors to "Other" are HCO and HNC, as well as complex molecules and hydrocarbons such as , , , and , which all show abundances \> 10$^{-7}$ with respect to H nuclei. It is evident at 10 AU in panel a that locks up the majority of the carbon, through the grain-surface reaction with CO and OH, and CO gas is seen to decrease in abundance. Here, ice is accounting for about 10% of the elemental carbon, with less than 10% of the carbon locked up in "Other".

At 20 AU in panel b the picture looks different after 7 Myr. The "Other" species take up about 30% of the elemental carbon, which is more than any single species alone. At 20 AU, the temperature decreases from about 30 to 18 K during the evolution time. That means that at the end of evolution, all molecules are frozen out onto the grains, and due to the temperature regime, most species are mobile on the grain surfaces, and able to react to form larger complex molecules, like those included in the "Other" category.

In panel c at 30 AU, the temperature goes down to 15 K after 7 Myr, meaning all species, including H atoms, can stick to the grains. H atoms, along with lowered mobility of molecules on the grain surfaces, means that hydrogenation reactions become dominant. Thus carbon is locked up in , HCN and and , with only around 10% elemental carbon in "Other" species.

Recent work by also find this chemical conversion of CO into more complex ices using an evolving disk model in the midplane. Their disks have temperatures of $\sim$`<!-- -->`{=html}35-40 K at 20-30 AU. They also found CO destruction in the disk midplane, by modelling chemical evolution using the older Rate06 network. However, their models produce the radical in the ice, which in this work is hydrogenated into ice. Also, they find only about 5% increase in their ice abundance, indicating that the CO gas destruction is not feeding the production of ice on the grains. did see conversion of CO gas to amongst other and ices on the grains using the Nautilus model, in agreement with this work. Besides these studies, models focusing on analysis of chemical evolution in disk midplanes are limited. used a chemical network to evolve chemistry in the midplane before forming planets out of the material, but did not focus on the chemical response to the (varying) physical conditions and reaction types dominating in the midplane. found a different effect of chemistry on the C/O ratios that what is seen in this work, because their treatment of grain-surface chemistry was simpler.

## Evolving elemental ratios

An important aspect of chemical evolution in a disk midplane is the relation to the composition of exoplanets, particularly their atmospheres. In Paper 1 it was shown that unless the inheritance scenario with low ionisation was considered, the C/O ratio of the chosen model setup changed over the course of 1 Myr of evolution. It was demonstrated that the C/O ratio radial "stepfunction" in Fig. 1 of was modified. In this work, the evolution of the C/O ratios are traced up to 7 Myr instead of 1 Myr, and the effects of both chemical evolution and the evolving temperature structure are shown.

The longer timescale causes larger changes to the dominant volatile abundances and significant changes to the traditional C/O ratio "stepfunction", even more than what was seen Paper 1. The larger abundance changes are apparent in Fig. , where changes of up to 2 orders of magnitude are seen from 1-7 Myr, thus significantly larger than the changes happening until 1 Myr (the case from Fig. 4 in Paper 1). Considering the more realistic scenario of an evolving, cooling disk (see Fig. panels b and d) rather than a static one (Fig. panel c), similar trends in chemical abundance changes to the static case are seen. The main effect is that volatile icelines are shifted inwards with time, because the disks cool. The physical conditions at each timestep of the simulations determine the chemical composition at that timestep. This holds for all scenarios and tells us that the chemical timescale is faster than the physical timescale in these models, and that a static disk model may be sufficient for modelling chemistry. However, a planet forming in the crossing-zone of an iceline may experience a drastic change to the composition of accreting material over time.

In Fig. a, b, c and d, the evolving C/O, C/H, and O/H and N/H ratios, respectively, in gas and ice are presented for the evolving 0.1 MMSN disk. The yellow profiles are at 0.1 Myr only, where as yet no significant chemical evolution has taken place, and the ratios are therefore the canonical values corresponding to the input abundances. Thus, for C/O for example, this yellow profile resembles the "stepfunction" from .

For the C/O ratio evolution in panel a, it is clear at later times that the evolving chemistry has caused the C/O ratios in gas and ice to change. At 5 AU, the C/O ratio in the gas drops from 1.2 to 0.3 over the course of 7 Myr. For the ice at the same distance, the C/O ratio increases from 0.2 to almost 0.5, thus making the ice between 3 and 10 AU more carbon rich than the gas. By 7 Myr the C/O ratios in both gas and ice are below 0.5, and thereby the C/O gas and ice ratio profiles are significantly different than the stepfunction, and the profiles correlate with the C/O ratio profiles for the reset scenario from Paper 1. That indicates that steady state is close after 7 Myr of evolution with inherited abundances. It is expected that so long as the initial C/O\<1, the same trends would be seen in C/O ratio evolutions, if a different set of elemental ratios were chosen.

The C/H evolution in panel b shows a significant turnover at the iceline at 2 AU, with more carbon being contained in gas than in ice inside the iceline, and vice versa outside of it. This iceline is thus critical for the metallicity of the material, and has important implications for the carbon content of the forming planets. Besides this distinct iceline, other features of the C/H ratios are the decreasing level in ice between the (at 1.3 AU by 7 Myr) and the icelines. This is due to the destruction of on the grain surfaces, as well as the CO and dependent interconversion of C/H ratio in gas and ice between the and the icelines (see Section ).

Panel c features the O/H ratio evolution. Here the , and icelines at $\sim$`<!-- -->`{=html}0.8, 2 and 10 AU, outline the radii of main changes. Between the and icelines, the ice starts as two times more oxygen rich than the gas, but after 7 Myr, the gas can become 3 times more oxygen rich than the ice. Between the and icelines, the ice starts an order of magnitude more oxygen rich than the gas, but after 7 Myr, the gas and ice are equally oxygen rich. This is due to the increasing abundance of gaseous .

Although this work so far has focused on carbon and oxygen-bearing species, for completeness the evolving nitrogen content in the material is shown in panel d. The decreasing nitrogen ice content between 2 and 8 AU is due to the destruction of ice (iceline at $\sim$ 2.5AU) in this region, which causes an increased nitrogen level in the gas, with (iceline at $\sim$`<!-- -->`{=html}20 AU) becoming the main nitrogen gas carrier (see Paper 1 for further discussion). also modelled the evolution of nitrogen-bearing species in a disk, and found different partitionings of the nitrogen into HCN, and , depending on their model assumptions.

## Impact for planet formation and planet atmospheric composition

Recent years has seen enormous effort put into the field of planet formation and planet population synthesis models. Physical effects like grain growth and migration/radial drift, and a planet's acquisition of an atmosphere from a disk have been included in increasingly sophisticated models . Planet population synthesis models however have neglected chemical evolution, although did consider kinetic chemistry to model the material that go into forming planetary atmospheres.

conducted planet formation synthesis models introducing a "chain" of models to self-consistently predict the atmospheric transmission spectra of a hot Jupiter exoplanet from modelling the formation of the planet as it forms in the disk. One prediction from their work was that for hot Jupiters less massive than a few $M_{\rm{Jup}}$, heavy element enrichment in the envelope from impacting planetesimal polluters dominate the final atmospheric composition over the enrichment obtained from gas accretion. This is interesting in the context of the findings in this work, that the C/O, C/H, O/H and N/H ratios in both gas and ice evolve over time. For hot Jupiters, it is thus not necessarily the heavy element content of the gas in the disk that will determine the planet's resulting atmospheric elemental ratios.

The findings of this work, that chemistry matters in disk midplanes under certain assumptions, may complicate the challenge of relating observed exoplanet atmospheric elemental ratios to the formation history of the planet. Not only is it shown in this paper that chemical evolution can change the radial elemental ratios in gas and ice over time, but as stated, the disk material - gas or ice - that the atmosphere of the planet is formed from, may have a mixed origin.

The result of these two effects can, however, be explored through modelling. By having a planet atmosphere form from different relative contributions of gaseous and icy material in the disk, and by assuming (as a start) one of the time evolved elemental ratio abundances presented here, the final elemental ratio in the atmosphere, and the resulting transmission spectrum, can be generated. It can then be assessed whether or not the effects are observable, with current or future observational facilities. This would also be a first step to better implement disk chemistry into the "chain" of models, as requested by . First attempts at this were indeed carried out by . However, they only considered planets formed inside 4 AU. An expansion of their work would thus be welcomed.

Lastly, the outer disk volatile ice abundances presented here obviously inspire a comparison to observed abundances in comets in the Solar System, in order to constrain the models with Solar System conditions. Such a comparison is currently in progress and will be published in an upcoming paper.

# Summary

In this paper, the implications of chemistry in evolving disk midplanes on the composition of planet-forming material have been investigated. The main conclusions are:

1.  Chemical evolution is an ionisation-driven long-term effect, which for the disk structures considered here becomes significant after a few times 10$^{5}$ yrs of evolution, and goes on until at least 7 Myr, in the region between the and icelines ($\sim$`<!-- -->`{=html}0.5-10 AU, for the 0.1 MMSN disk).

2.  Considering the more realistic scenario of an evolving, cooling disk rather than a static one, similar trends in chemical abundance changes to the static case are seen. The main effect is that volatile icelines are shifted inwards with time, because the disks cool. Hence, using a static disk structure representative of the conditions in the disk during the accretion epoch of a forming planet may be sufficient for modelling chemistry.

3.  Changes of similar magnitudes are seen for all scenarios for the 0.1 MMSN disk and the 0.55 MMSN disk. That means that assuming different disk masses does not significantly affect the chemical evolution. However, higher mass disks than those studied here should be explored.

4.  After 7 Myr of evolution, inside the iceline and outside the iceline, the fingerprint of interstellar abundances has been erased, for the high ionisation level, and chemical steady state has been achieved. That is to say, for ice in the outer disk, it becomes irrelevant whether the inheritance or the reset scenario is assumed. In the inner tenth of an AU, chemical equilibrium conditions are likely achieved.

5.  An abundance "inversion" is seen for CO and between the and CO icelines, where the abundance evolutions invert at a time which depends on the ionisation level. For the high ionisation level, CO gas reaches its minimum abundance by $\sim$`<!-- -->`{=html}1.6 Myr, and reaches its maximum abundance at $\sim$`<!-- -->`{=html}2.5 Myr.

6.  By 7 Myr CO gas is seen to deplete inside the CO thermal iceline, from outside the iceline, which could mimic the iceline being further in and at warmer temperatures than the CO binding energy prescribes.

7.  Ice species such as HCN and become important carbon-bearing species in the outer disk by a few Myr. Between the and icelines, gas is the dominant oxygen bearing species. Just outside the iceline, it is warm enough for molecules to move on the grain surfaces, but not cold enough for H atoms stick on the grains. This results in the production of larger, more complex molecules on the grain surfaces.

8.  Chemical evolution changes the elemental ratios in the gas and ice significantly over time. This results in a region where the ice has a higher C/O ratio than the gas. In order to relate observed atmospheric C/O ratios in exoplanets to formation locations and conditions in the disk midplane, chemical evolution is important to consider, independent on whether an atmosphere is built primarily from gas accretion or from planetesimal impacts. Generally, chemical evolution acts to significantly lower the C/O ratio of gas, such that neither the ratio in gas or in ice is at or above unity, but rather the C/O ratios in both gas and ice evolve to be below 0.5 (given an overall C/O ratio of 0.34).

If planet formation lasts for longer than a few times 10$^{5}$ yrs in the disk midplane and cosmic ray ionisation is present, then the chemical abundances and elemental ratios in gas and ice will change alongside with planet formation. Henceforth, chemical evolution needs to be addressed when predicting the chemical makeup of planets and their atmospheres, as well as when inferring formation locations of exoplanets based on their observed atmospheric elemental ratios.