Skip to content

zephyrus.escape

zephyrus.escape is the released entry point for energy-limited escape: it re-exports EL_escape, whose implementation lives in zephyrus.hydrodynamic beside the other hydrodynamic rate prescriptions. Existing code importing from zephyrus.escape import EL_escape keeps working unchanged.

EL_escape(tidal_contribution, a, e, Mp, Ms, epsilon, Rp, Rxuv, Fxuv, scaling=2)

Compute the mass-loss rate for Energy-Limited (EL) atmospheric escape.

The mass-loss rate is given by

\[ \dot{M}_\mathrm{EL} = \frac{\epsilon\,\pi\,R^3\,F_\mathrm{XUV}} {G\,M_p\,K_\mathrm{tide}} \]

where \(R^3\) is either \(R_p R_\mathrm{XUV}^2\) or \(R_\mathrm{XUV}^3\) depending on scaling, and \(K_\mathrm{tide}\) is the tidal correction factor of Erkaev et al. (2007) when tidal_contribution is True, else 1.

Parameters:

Name Type Description Default
tidal_contribution bool

If True, include the tidal correction factor \(K_\mathrm{tide}\) (Erkaev et al. 2007). Its argument is \(\xi \equiv R_\mathrm{Hill}/R\), where \(R\) is the radius that appears linearly in the \(R^3\) term selected by scaling: \(R_p\) for scaling=2 (the convention of Erkaev et al. 2007, whose own \(\xi\) is the Roche-lobe distance over the planetary radius) and \(R_\mathrm{XUV}\) for scaling=3 (the single-radius form, where \(R_\mathrm{XUV}\) is the only radius in the problem). The factor is valid for \(\xi > 1\), where \(0 < K_\mathrm{tide} < 1\) and the correction enhances escape; it rises monotonically toward 1 as \(\xi \to \infty\). A ValueError is raised for \(\xi \le 1\), where the atmosphere reaches the Roche lobe and the energy-limited approximation no longer applies. If False, \(K_\mathrm{tide} = 1\) (no tidal effects).

required
a float

Planetary semi-major axis [m]. Only used when tidal_contribution is True.

required
e float

Orbital eccentricity (dimensionless). Only used when tidal_contribution is True.

required
Mp float

Planetary mass [kg].

required
Ms float

Stellar mass [kg]. Only used when tidal_contribution is True.

required
epsilon float

Escape efficiency factor (dimensionless). Typical literature range is \(0.1 < \epsilon < 0.6\); for strongly bound planets hydrodynamic simulations find much lower values (Caldiroli et al. 2022).

required
Rp float

Planetary radius [m]. Used as a linear factor when scaling=2.

required
Rxuv float

Planetary radius at which the atmosphere becomes optically thick to XUV radiation [m]. In PROTEUS this level is placed at a fixed pressure, by default 20 mbar following Baumeister et al. (2023), distinct from the roughly nanobar wind base of Lopez (2017).

required
Fxuv float

XUV flux received by the planet from the host star, in W m\(^{-2}\).

required
scaling int

Planet radius scaling exponent. 2 (default) uses \(R_p R_\mathrm{XUV}^2\); 3 uses \(R_\mathrm{XUV}^3\). Any other value raises ValueError.

2

Returns:

Name Type Description
escape_EL float

Mass-loss rate for energy-limited escape, in kg s\(^{-1}\).

Raises:

Type Description
ValueError

If scaling is not 2 or 3, or if tidal_contribution is True and \(\xi \le 1\) (the atmosphere reaches the Roche lobe, outside the energy-limited regime), with \(\xi\) built on the radius selected by scaling.

References

The default radius scaling (scaling=2, Rp * Rxuv**2) is the energy-limited XUV cross-section form of Watson et al. (1981) and Lammer et al. (2003), Equation 6, written as a mass-loss rate by Erkaev et al. (2007), Equation 21. The alternative radius scaling (scaling=3, Rxuv**3) is the single-radius simplification of Lopez, Fortney & Miller (2012), Equation 2, Lopez & Fortney (2013), Equation 1, and Lehmer & Catling (2017), Equation 1. The tidal reduction factor K_tide is Erkaev et al. (2007), Equation 17.

  1. Watson, A. J., Donahue, T. M., & Walker, J. C. G. (1981). The dynamics of a rapidly escaping atmosphere: applications to the evolution of Earth and Venus. Icarus, 48(2), 150-166.
  2. Lammer, H., Selsis, F., Ribas, I., et al. (2003). Atmospheric loss of exoplanets resulting from stellar X-ray and extreme-ultraviolet heating. ApJ, 598(2), L121-L124.
  3. Erkaev, N. V., Kulikov, Y. N., Lammer, H., et al. (2007). Roche lobe effects on the atmospheric loss from "Hot Jupiters". A&A, 472(1), 329-334.
  4. Lopez, E. D., Fortney, J. J., & Miller, N. (2012). How thermal evolution and mass-loss sculpt populations of super-Earths and sub-Neptunes. ApJ, 761(1), 59.
  5. Lopez, E. D., & Fortney, J. J. (2013). The role of core mass in controlling evaporation: the Kepler radius distribution and the Kepler-36 density dichotomy. ApJ, 776(1), 2.
  6. Lehmer, O. R., & Catling, D. C. (2017). Rocky worlds limited to ~1.8 Earth radii by atmospheric escape during a star's extreme UV saturation. ApJ, 845(2), 130.
  7. Lopez, E. D. (2017). Born dry in the photoevaporation desert: Kepler's ultra-short-period planets formed water-poor. MNRAS, 472(1), 245-253.
  8. Baumeister, P., Tosi, N., Brachmann, C., Grenfell, J. L., & Noack, L. (2023). Redox state and interior structure control on the long-term habitability of stagnant-lid planets. A&A, 675, A122.
  9. Caldiroli, A., Haardt, F., Gallo, E., Spinelli, R., Malsky, I., & Rauscher, E. (2022). Irradiation-driven escape of primordial planetary atmospheres II. Evaporation efficiency of sub-Neptunes through hot Jupiters. A&A, 663, A122.
Source code in src/zephyrus/hydrodynamic.py
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
def EL_escape(
    tidal_contribution: bool,
    a: float,
    e: float,
    Mp: float,
    Ms: float,
    epsilon: float,
    Rp: float,
    Rxuv: float,
    Fxuv: float,
    scaling: int = 2,
):
    r"""
    Compute the mass-loss rate for Energy-Limited (EL) atmospheric escape.

    The mass-loss rate is given by

    $$
    \dot{M}_\mathrm{EL} = \frac{\epsilon\,\pi\,R^3\,F_\mathrm{XUV}}
                               {G\,M_p\,K_\mathrm{tide}}
    $$

    where $R^3$ is either $R_p R_\mathrm{XUV}^2$ or $R_\mathrm{XUV}^3$
    depending on ``scaling``, and $K_\mathrm{tide}$ is the tidal
    correction factor of Erkaev et al. (2007) when ``tidal_contribution``
    is True, else 1.

    Parameters
    ----------
    tidal_contribution : bool
        If True, include the tidal correction factor $K_\mathrm{tide}$
        (Erkaev et al. 2007). Its argument is
        $\xi \equiv R_\mathrm{Hill}/R$, where $R$ is the radius that
        appears linearly in the $R^3$ term selected by ``scaling``: $R_p$
        for ``scaling=2`` (the convention of Erkaev et al. 2007, whose
        own $\xi$ is the Roche-lobe distance over the planetary radius)
        and $R_\mathrm{XUV}$ for ``scaling=3`` (the single-radius form,
        where $R_\mathrm{XUV}$ is the only radius in the problem). The
        factor is valid for $\xi > 1$, where $0 < K_\mathrm{tide} < 1$
        and the correction enhances escape; it rises monotonically
        toward 1 as $\xi \to \infty$. A ``ValueError`` is raised for
        $\xi \le 1$, where the atmosphere reaches the Roche lobe and the
        energy-limited approximation no longer applies. If False,
        $K_\mathrm{tide} = 1$ (no tidal effects).
    a : float
        Planetary semi-major axis [m]. Only used when
        ``tidal_contribution`` is True.
    e : float
        Orbital eccentricity (dimensionless). Only used when
        ``tidal_contribution`` is True.
    Mp : float
        Planetary mass [kg].
    Ms : float
        Stellar mass [kg]. Only used when
        ``tidal_contribution`` is True.
    epsilon : float
        Escape efficiency factor (dimensionless). Typical literature
        range is $0.1 < \epsilon < 0.6$; for strongly bound planets
        hydrodynamic simulations find much lower values (Caldiroli et
        al. 2022).
    Rp : float
        Planetary radius [m]. Used as a linear factor when
        ``scaling=2``.
    Rxuv : float
        Planetary radius at which the atmosphere becomes optically
        thick to XUV radiation [m]. In PROTEUS this level is placed at
        a fixed pressure, by default 20 mbar following Baumeister et
        al. (2023), distinct from the roughly nanobar wind base of
        Lopez (2017).
    Fxuv : float
        XUV flux received by the planet from the host star, in
        W m$^{-2}$.
    scaling : int, optional
        Planet radius scaling exponent. ``2`` (default) uses
        $R_p R_\mathrm{XUV}^2$; ``3`` uses $R_\mathrm{XUV}^3$. Any other
        value raises ``ValueError``.

    Returns
    -------
    escape_EL : float
        Mass-loss rate for energy-limited escape, in kg s$^{-1}$.

    Raises
    ------
    ValueError
        If ``scaling`` is not ``2`` or ``3``, or if
        ``tidal_contribution`` is True and $\xi \le 1$ (the atmosphere
        reaches the Roche lobe, outside the energy-limited regime),
        with $\xi$ built on the radius selected by ``scaling``.

    References
    ----------
    The default radius scaling (``scaling=2``, ``Rp * Rxuv**2``) is the
    energy-limited XUV cross-section form of Watson et al. (1981) and
    Lammer et al. (2003), Equation 6, written as a mass-loss rate by
    Erkaev et al. (2007), Equation 21. The alternative radius scaling
    (``scaling=3``, ``Rxuv**3``) is the single-radius simplification of
    Lopez, Fortney & Miller (2012), Equation 2, Lopez & Fortney (2013),
    Equation 1, and Lehmer & Catling (2017), Equation 1. The tidal
    reduction factor ``K_tide`` is Erkaev et al. (2007), Equation 17.

    1. Watson, A. J., Donahue, T. M., & Walker, J. C. G. (1981).
       The dynamics of a rapidly escaping atmosphere: applications to
       the evolution of Earth and Venus. *Icarus*, 48(2), 150-166.
    2. Lammer, H., Selsis, F., Ribas, I., et al. (2003). Atmospheric
       loss of exoplanets resulting from stellar X-ray and
       extreme-ultraviolet heating. *ApJ*, 598(2), L121-L124.
    3. Erkaev, N. V., Kulikov, Y. N., Lammer, H., et al. (2007).
       Roche lobe effects on the atmospheric loss from "Hot Jupiters".
       *A&A*, 472(1), 329-334.
    4. Lopez, E. D., Fortney, J. J., & Miller, N. (2012).
       How thermal evolution and mass-loss sculpt populations of
       super-Earths and sub-Neptunes. *ApJ*, 761(1), 59.
    5. Lopez, E. D., & Fortney, J. J. (2013). The role of core mass
       in controlling evaporation: the Kepler radius distribution and
       the Kepler-36 density dichotomy. *ApJ*, 776(1), 2.
    6. Lehmer, O. R., & Catling, D. C. (2017). Rocky worlds
       limited to ~1.8 Earth radii by atmospheric escape during a
       star's extreme UV saturation. *ApJ*, 845(2), 130.
    7. Lopez, E. D. (2017). Born dry in the photoevaporation desert:
       Kepler's ultra-short-period planets formed water-poor.
       *MNRAS*, 472(1), 245-253.
    8. Baumeister, P., Tosi, N., Brachmann, C., Grenfell, J. L., &
       Noack, L. (2023). Redox state and interior structure control on
       the long-term habitability of stagnant-lid planets.
       *A&A*, 675, A122.
    9. Caldiroli, A., Haardt, F., Gallo, E., Spinelli, R., Malsky, I.,
       & Rauscher, E. (2022). Irradiation-driven escape of primordial
       planetary atmospheres II. Evaporation efficiency of sub-Neptunes
       through hot Jupiters. *A&A*, 663, A122.
    """
    # Radius term, and the radius the tidal factor is measured from: the
    # one that appears linearly in R^3, since that is the radius the
    # potential barrier in the denominator refers to.
    match scaling:
        case 2:
            R_cubed = Rp * Rxuv**2
            R_tide = Rp
        case 3:
            R_cubed = Rxuv**3
            R_tide = Rxuv
        case _:
            raise ValueError(f'Invalid radius exponent: {scaling}')

    # Tidal contribution
    if tidal_contribution:
        # ksi = Rhill/R on the radius the scaling selects. K_tide has a double
        # root at ksi = 1 and the rate divides by it, so only ksi > 1, inside
        # the Roche lobe, is valid.
        Rhill = a * (1 - e) * (Mp / (3 * Ms)) ** (1 / 3)
        ksi = Rhill / R_tide
        if ksi <= 1:
            raise ValueError(
                'Tidal energy-limited escape requires the periapsis Hill '
                'radius to exceed the escape-level radius '
                f'(ksi = Rhill/R > 1); got ksi = {ksi:.4g}. At ksi <= 1 the '
                'atmosphere reaches the Roche lobe and the energy-limited '
                'approximation no longer applies.'
            )
        K_tide = k_tide(ksi)
    else:
        K_tide = 1

    # Mass-loss rate for EL escape
    escape_EL = (epsilon * math.pi * R_cubed * Fxuv) / (G * Mp * K_tide)

    return escape_EL