Other Astronomical Projects

projects from various astronomical, astrophysical, and mathematical courses

Cover Image by Greg Rakozy on Unsplash

As part of my graduate and undergraduate studies, I have completed various projects as part of my coursework. In this page, I present some of the projects that I have completed in the fields of astronomy, astrophysics, and mathematics. These projects include the analysis of astronomical data, the development of computational models, and the application of mathematical techniques to solve astrophysical problems.

Matched Filtering in Gravitational Wave Data Analysis

This small project was part of the course “Astrostastistics” at the Leiden Observatory. The project consisted of implementing a matched filtering algorithm to detect gravitational wave signals in noisy data. The data used in this project were synthetic, and the templates used the approximations described by the VIRGO and LIGO collaborations (Abbott et al., 2017).

The equation of the gravitational wave signal from a binary merger was given by \begin{equation} h(t) = \frac{4A\eta M}{D} \left( \pi M f(t) \right)^{2/3} \cos\left[ \phi(t) + \phi_c \right], \label{eq:gw_signal} \end{equation} where \(A\) is a geometric prefactor (averaged over all angles making \(A = 2/5\)), \(\eta = \frac{m_1 m_2}{M^2}\) is the reduced mass, \(D\) is the luminosity distance, \(M = m_1 + m_2\) is the total mass, \(f(t)\) is the time-dependent frequency of the wave, \(\phi(t)\) is the phase of the wave, and \(\phi_c\) is a constant phase. The frequency of the wave increases with time, a phenomenon known as “chirping”. The chirp mass \(M_c\) is defined as \(M_c = \frac{(m_1 m_2)^{3/5}}{(m_1 + m_2)^{1/5}}\), and the chirpline is given by \begin{equation} f_{\text{GW}}(t) = B x^{-5/8} (t_c - t)^{-3/8}, \label{eq:chirpline} \end{equation} where \(B = 16.6 \, \text{s}^{-5/8}\), \(x\) is the chirp mass in solar masses, and \(t_c\) is the moment of merger. The phase of the wave is given by \begin{equation} \phi(t) = 2\pi B x^{-5/8} (t_c - t)^{5/8}. \label{eq:phase} \end{equation} The signal shape is then given by \begin{equation} h(t) = \frac{4A\eta M \left( \pi M \right)^{2/3}}{D} \left( 16.6 x^{-\frac{5}{8}} (t_c - t)^{-\frac{3}{8}} \right)^{2/3} \cos\left[ -39.11 x^{-\frac{5}{8}} (t_c - t)^{\frac{5}{8}} + \phi_c \right]. \label{eq:gw_signal_final} \end{equation}

Equation \eqref{eq:gw_signal_final} has many parameters, some of which are degenerate. To reduce the dimensionality of the template bank, we replaced degenerate parameters with effective parameters. We can reduce the dimensionality of the template bank by considering the scale and shift symmetries of the parameters. Our model can be reduced to \begin{equation} h(t)\sim (t_c-t)^{-\frac{1}{4}}cos(-39.11x^{-\frac{5}{8}}(t_c-t)^{\frac{5}{8}}+\phi_c) \label{eq:gw_signal_final_simple} \end{equation} where \(t_c\), \(x\), and \(\phi_c\) are the only real signal parameters. In practice, when we employ matched filtering, we will shift the signal in time to match the data by varying \(t_c\), so we can argue that only \(x\) and \(\phi_c\) are the real signal parameters. The amplitude of the signal does not determine which signal is detected, but only how significantly it is detected in relation to the background noise, that is why the above equation has no amplitude parameter.

First we test the matched filtering algorithm on our own synthetic data. We create a signal, using equation \eqref{eq:gw_signal_final_simple}, and add Gaussian noise to it. We then filter the data and look for a spike in the filter output, which indicates a correlation with the signal. The results of the detection are shown in the figures below.

Left: Synthetic data with a gravitational wave signal from our model and added Gaussian noise. Middle: Filter output as a function of time. Right: Contour plot of the filter output as a function of the chirp mass and the phase.

As we can see from the figures, the matched filtering algorithm is able to detect the gravitational wave signal in the synthetic data and recover the parameters we used to create the signal. Now we can tet the algorithm on the data of the exercise, which may or may not contain synthetic gravitational wave signals. We have three data streams that we need to test for gravitational wave signals. The results of the detection are shown in the figures below.

Results of the matched filtering algorithm on data stream 1. From left to right: raw data stream, detection of the time of merger, and the contour plot of the filter output as a function of the chirp mass and the phase.
As above, but for data stream 2.
As above, but for data stream 3.

The matched filtering algorithm was able to detect the gravitational wave signals in two of the three data streams. For the third data stream, the algorithm detected a very weak signal, which was not significant enough to be considered a detection.The detected waves are shown in the figures below. The algorithm was able to recover the parameters of the signals, such as the chirp mass and the phase. The results of the detection are consistent with the parameters used to create the signals. The algorithm was not able to detect a gravitational wave signal in the third data stream, which did not contain a signal. The final results are summarized in the table below, for the code as well as instructions on how to run it, please visit the GitHub repository.

Data Stream Time of Merger Chirp Mass Phase Detected
1 299.0 90.0 6.2 Yes
2 1000.0 31.0 3.2 Yes
3 - - - No

Detected gravitational wave signals in data streams 1 and 2 plotted against the raw data.

Stellar Structure and Evolution Lab Assignment

For the course “Stellar Structure and Evolution” at the Leiden Observatory, I completed a project on the evolution of a star from the protostar phase to the white dwarf phase. The project aimed to study the differences in the evolution of the two stars and to understand the physical processes that drive the evolution of stars. For the star evolution simulation, we used the Modules for Experiments in Stellar Astrophysics (MESA) code (Paxton et al., 2011; Paxton et al., 2013; Paxton et al., 2015; Paxton et al., 2018; Paxton et al., 2019; Jermyn et al., 2023). For more information on the MESA code, please visit the documentation on the MESA website.

The evolution of the stars was studied by plotting the density as a function of the central temperature in a log-log plot. The different regions where each equation of state dominates were identified. We have four different equations of state:

\(P_{\text{gas}} = \frac{R}{\mu} T \rho \quad \text{(ideal gas)}, \quad P_{\text{e}} = K_{\text{NR}} \left( \frac{\rho}{\mu_e} \right)^{5/3} \quad \text{(non-relativistic degenerate electron gas)},\) \(P_{\text{e}} = K_{\text{ER}} \left( \frac{\rho}{\mu_e} \right)^{4/3} \quad \text{(extreme relativistic degenerate electron gas)}, \quad P_{\text{rad}} = \frac{a T^4}{3} \quad \text{(radiation pressure)},\)

for the different phases that a gas can have. We denote with \(P_{\text{gas}}\) the gas pressure, \(P_{\text{e}}\) the electron pressure, \(P_{\text{rad}}\) the radiation pressure, \(R\) the gas constant, \(\mu\) the mean molecular weight, \(\mu_e\) the mean molecular weight per electron, \(K_{\text{NR}}\) the non-relativistic degeneracy constant, \(K_{\text{ER}}\) the extreme relativistic degeneracy constant, \(a\) the radiation constant, and \(T\) the temperature. While stars evolve, they can go through different phases where different equations of state dominate. In the plots below, we can see the evolution of the 1 solar mass star and the 2 solar mass star and the different regions that they go through.

The evolution of the 1 solar mass star (left) and the 2 solar mass star (right) in a log-log plot of the density as a function of the central temperature. In the plot, we can see the different regions where each equation of state dominates. The different evolutionary stages of the star are plotted with different colors. The color of the points shows their age. The relative position of the Sun is also depicted.

We can also see the evolution of the stars in a Hertzsprung-Russell diagram, which is a log-log plot of the luminosity as a function of the effective temperature. In a typical Hertzsprung-Russell diagram there are different regions where stars are located depending on their evolutionary stage. As stars evolve, they move through these regions, starting from the protostar phase, then the main sequence, where they spend most of their lives, and finally they go through the red giant phase, the horizontal branch and the asymptotic giant branch, to end up as white dwarfs. The Hertzsprung-Russell diagrams for the 1 solar mass star and the 2 solar mass star are shown below.

Hertzsprung-Russell diagrams (log-log plots of the luminosity as a function of the effective temperature) for the 1 solar mass star (left) and the 2 solar mass star (right) showing the evolution of the stars from the protostar phase to the white dwarf phase. As above, the different evolutionary stages of the star are plotted with different colors. The color of the points shows their age.

Finally, we can study the gradients of the stars as a function of the radius of the star. The gradients are important because they determine the energy transport mechanism in the star. When the adiabatic gradient is larger than the radiative gradient, the star is convective. The gradients of the 1 solar mass star and the 2 solar mass star for the pre-main sequence phase and the main sequence phase are shown below.

The gradients of the 1 solar mass star (left) and the 2 solar mass star (right) as a function of the radius of the star. Each plot contains two panels, one for the pre-main sequence phase and one for the main sequence phase. Each time we plot the adiabatic and the radiative gradients. When the adiabatic gradient is larger than the radiative gradient, the star is convective, which is shown by the grey area in the plot.

This project was a great opportunity to learn about the physical processes that drive the evolution of stars and to understand the different regions that stars go through as they evolve. The MESA code is a powerful tool that allows us to simulate the evolution of stars and to study the physical processes that drive their evolution. For the code as well as instructions on how to run it, please visit the GitHub repository or you can check the final report here.

MODELLING SUB-NEPTUNE MASS PLANETS INTERIOR

As part of the course “Exo-planets” at the Leiden University, I completed a project on the evolution of low-mass planets with an envelope made mostly of hydrogen and helium. The project aimed to simulate the interiors and evolution of these planets and to study how irradiation from a central star affects their structure and evolution. The project followed previous work (Chen & Rogers, 2016) and used the Modules for Experiments in Stellar Astrophysics (MESA) (Paxton et al., 2011; Paxton et al., 2013; Paxton et al., 2015; Paxton et al., 2018; Paxton et al., 2019; Jermyn et al., 2023) code to simulate the evolution of the planets.

The project started by creating a single planet with a mass of 30 Earth masses. The planet was coreless and consisted only of a mix of hydrogen and helium gas. The next step was to create a core for the planet. The core had the same composition as the Earth, which allowed us to calculate the density of the core. We created five different planets with different core masses and densities, 3, 5, 7, 10, and 12 Earth masses. After creating the core, we reduced the mass of the planets by reducing the mass of the gaseous envelope that surrounded the core. For each core mass, we created two different planets with different values for the ratio between the mass of the envelope and the total mass of the planet. The final masses of the planets are shown in the table below.

Core Mass fenv Total Mass
3M⊕ 0.1 1.001 · 10⁻⁵M⊙
  0.01 9.104 · 10⁻⁶M⊙
5M⊕ 0.1 1.669 · 10⁻⁵M⊙
  0.01 1.517 · 10⁻⁵M⊙
7M⊕ 0.1 2.337 · 10⁻⁵M⊙
  0.01 2.124 · 10⁻⁵M⊙
10M⊕ 0.1 3.338 · 10⁻⁵M⊙
  0.01 3.035 · 10⁻⁵M⊙
12M⊕ 0.1 4.006 · 10⁻⁵M⊙
  0.01 3.642 · 10⁻⁵M⊙

The next step was to add an artificial luminosity that would deposit some energy inside the planets. The result of this process was the inflation of the planets, which affected the initial entropy at the base of the gaseous envelope of each planet. The artificial luminosity that was implemented was \(L_{\text{center}} = 2 \times 10^{27} \, \text{erg/sec}\). The final step was to see how the planets evolved. During the evolution, a new more realistic luminosity was set, \(L_{\text{center}} = 5M_{\text{core}} \times 10^{-8} \, \text{erg/sec}\), where \(M_{\text{core}}\) is in units of grams. The planets were allowed to evolve for a timescale of \(5 \times 10^9\) years.

Left: The radius of the planets as a function of time (right panel focuses more on the smaller radii). Right: The evolved exoplanets plotted in a mass-radius diagram with real exoplanets for comparison (on the left we have noted the real exoplanets that most closely resemble our models).
Left: The gradients of the planets as a function of the radius of the planet. Right: The temperature as a function of the pressure in the planets. Each panel is for a different planet.

The results of the project showed that the planets evolved differently depending on their core mass and the ratio between the mass of the envelope and the total mass of the planet. For a full explanation of the results, please refer to the final report here.

The second part of the project focused on the evolution of one of the planets previously made, this time with irradiation from a central star. We started with the heaviest of the planets created in the previous work, a planet with a core mass of 12 Earth masses and an envelope mass of 0.1. We create two different scenarios with different levels of irradiation. The first scenario had an outside flux of \(10F_{\oplus}\), and the second scenario had an outside flux of \(100F_{\oplus}\). These scenarios will be compared to the original evolution of the planet with no external heating. The planets were allowed to evolve for a timescale of \(5 \times 10^9\) years (same as the previous work).

Left: The radius of the planet as a function of time for the different scenarios. Middle: The luminosity of the planet as a function of time for the different scenarios. Right: The mass of the planet as a function of the radius for the different scenarios plotted over the mass-radius diagram of real exoplanets.
Left: The gradients of the planet as a function of the radius for the two extreme scenarios (no irradiation (left) and $$100F_{\oplus}$$ (right)). Middle: The temperature as a function of the radius for the different scenarios. Right: The pressure as a function of the radius for the different scenarios.

As we can see from the results, the irradiation from a central star affects the evolution of the planet. The planet with no irradiation evolves differently from the planet with irradiation, while the level of irradiation also plays a crucial role. For the full explanation of the results, please refer to the final report here.

This project was my first experience with MESA code and the simulation of exoplanets. It was a great opportunity to learn about the physical processes that drive the evolution of low-mass planets and to understand how irradiation from a central star affects their structure and evolution. For the code as well as instructions on how to run it, please visit the GitHub repository of the project.

References

2023

  1. Modules for Experiments in Stellar Astrophysics (MESA): Time-dependent Convection, Energy Conservation, Automatic Differentiation, and Infrastructure
    Adam S. Jermyn, Evan B. Bauer, Josiah Schwab, R. Farmer, and 18 more authors
    ApJS, Mar 2023

2019

  1. Modules for Experiments in Stellar Astrophysics (MESA): Pulsating Variable Stars, Rotation, Convective Boundaries, and Energy Conservation
    Bill Paxton, R. Smolec, Josiah Schwab, A. Gautschy, and 13 more authors
    ApJS, Jul 2019

2018

  1. Modules for Experiments in Stellar Astrophysics (MESA): Convective Boundaries, Element Diffusion, and Massive Star Explosions
    Bill Paxton, Josiah Schwab, Evan B. Bauer, Lars Bildsten, and 9 more authors
    ApJS, Feb 2018

2017

  1. The basic physics of the binary black hole merger GW150914
    B. P. Abbott, R. Abbott, T. D. Abbott, M. R. Abernathy, and 951 more authors
    Annalen der Physik, Jan 2017

2016

  1. Evolutionary Analysis of Gaseous Sub-Neptune-mass Planets with MESA
    Howard Chen, and Leslie A. Rogers
    \apj, Nov 2016

2015

  1. Modules for Experiments in Stellar Astrophysics (MESA): Binaries, Pulsations, and Explosions
    Bill Paxton, Pablo Marchant, Josiah Schwab, Evan B. Bauer, and 9 more authors
    ApJS, Sep 2015

2013

  1. Modules for Experiments in Stellar Astrophysics (MESA): Planets, Oscillations, Rotation, and Massive Stars
    Bill Paxton, Matteo Cantiello, Phil Arras, Lars Bildsten, and 7 more authors
    ApJS, Sep 2013

2011

  1. Modules for Experiments in Stellar Astrophysics (MESA)
    Bill Paxton, Lars Bildsten, Aaron Dotter, Falk Herwig, and 2 more authors
    ApJS, Jan 2011