I first met Prof. Wick Haxton as a student in his quantum mechanics class in spring 2024. After the course ended, he kindly took me on to help with one of his ongoing research projects. Below I briefly summarize our present paper [Ha25]. then review how I performed stellar simulations with the Modular Experiments for Stellar Astrophysics (MESA) program, generously open-sourced by Bill Paxton and his collaborators at KITP. Coming into this project without any Fortran experience, I found MESA rather hard to learn on my own; I hope others who are tinkering with MESA for their research will find this helpful.

The story of axion pumps

Back in 1991, Wick and his student Kar Lee were studying the potential for axions (a pseudoscalar particle hypothesized to explain, among other things, the lack of CP violation in the strong interaction) to be produced by nuclei at the hearts of stars [Ha91]. As pseudoscalars, axions should compete with magnetic photons in the nuclear magnetic dipole (M1) transition. However, nuclear M1 transitions, which involve a $\pm1$ change in either the total angular momentum magnitude $J$ or projection $M_J$ quantum numbers, are generally difficult to excite inside stars: Due to fusion’s affinity for $\alpha$-particle chains, the most common stellar isotopes ($^4_2$He, $^{12}_6$C, $^{16}_8$O, $^{20}_{10}$Ne, …) have even numbers of protons and neutrons. Because the strong interaction likes to group like-nucleons in $\upharpoonleft\downharpoonright$ spin pairs, it takes a lot of energy to flip a single nucleon’s spin between $\pm1/2$ in these even-even nuclei — usually several MeV, much higher than the $1\sim100$ keV ($10^7\sim10^9$ K) seen in stellar interiors.

Luckily, there are a few stable isotopes inside stars with an odd nucleon left unpaired to mediate a lower-energy M1 transition: Two that Haxton & Lee found were $^{57}_{26}$Fe, with an odd neutron and a 14.4 keV transition, and $^{23}_{11}$Na, with an odd proton and a 440 keV transition. Their potential to steadily emit axions in place of photons at stellar fusion temperatures earned these nuclei the nickname of nuclear axion pumps. In contrast to nuclear bremsstrahlung, which would produce astrophysical axions over a continuous energy range, nuclear axion pumps would emit them at narrow line energies. This enables searches for photons converted from axions (in the presence of either an astrophysical or artificial magnetic field) to fine-tune their sensitivity to very specific frequencies.

As it was well known that trace amounts of relic $^{57}_{26}$Fe from supernova explosions always find themselves sunken into the cores of stars, including our Sun — current models estimate a solar abundance of $\sim 3\times10^{-5}\,M_\odot$ — projects like the CERN Axion Solar Telescope (CAST) soon began using these iron axion pumps to place limits on the axion-nucleon couplings [An09]. Less attention was paid to the sodium axion pump: Although also present in trace amounts in the Sun, $^{23}_{11}$Na’s 440 keV M1 state is much harder to excite in the $1.5\times 10^7$ K ($1.3$ keV) solar core than $^{57}_{26}$Fe’s 14.4 keV.

But Wick noticed another source of heated $^{23}_{11}$Na: Massive stars burning $^{12}_6$C + $^{12}_6$C above $5\times10^8$ K (40 keV) produce excited $^{24}_{12}$Mg nuclei, which occasionally decays into $^{23}_{11}$Na instead of $^{20}_{10}$Ne + $^4_2$He. Compared to axion fluxes from relic solar abundances, the greater temperature and active $^{23}_{11}$Na production could make up for the greater distances and shorter lifespans of these massive stars. However, prior to the 2000s, the exact stellar mass threshold for carbon ignition was unclear: For stars born with zero-age main-sequence mass $\sim8\, M_\odot$, carbon is expected to ignite off-center, perhaps multiple times, before the flame propagates to the entire core — a difficult behavior to simulate [Ta13] Neither was the amount of $^{23}_{11}$Na produced certain — various codes point to $0.02\sim0.03\,M_\odot$ in $10\sim15\,M_\odot$ progenitors [La76].

Fortunately, increasing computing power and more sophisticated stellar evolution codes have since improved our understanding of $^{23}_{11}$Na production. Off-center carbon ignitions now reliable start for stars with initial masses between $7\sim9.5\,M_\odot$ [Li24]. In addition, after incorporating many more intermediate-mass isotopes and nuclear reactions, including weak interactions, these newer codes predict a slightly greater $^{23}_{11}$Na abundance — between $0.05\sim0.06\,M_\odot$ during carbon burning [Zh19].

This enables us to perform a few order-of-magnitude estimates. From nuclear physics, the expected axion emission rate for a single carbon-burning star is [Ha25]

\[ \tag{1} \Gamma_a \sim \prn{\f{g_{aNN}^\text{eff}}{10^{-9}}}^2 \cdot \f{M_{23\text{Na}}}{0.05\,M_\odot} \cdot \prn{\f{T}{5\times 10^8\text{ K}}}^9 \cdot 10^{44}\text{ axions/s}, \]

where $g_{aNN}^\text{eff} = g_{app} + 0.0638\,g_{ann}$ is a combination of the axion-proton and axion-neutron couplings, currently constrained to $\lesssim10^{-9}$ for axion masses below several $\mu$ev; As expected, it is more sensitive to the odd proton in $^{23}_{11}$Na. With a galactic magnetic field strength of a few $\mu$G, and an axion-photon coupling currently constrained to $\lesssim10^{-11}$ GeV$^{-1}$, the axion-photon conversion probability is approximately $0.01\%$ for axion masses below the neV scale [Ca24]. As a result, a single carbon-burning star at galactic distances $\sim8$ kpc should, at current levels of constraints for the various axion couplings, leave a sharp 440 keV gamma-ray line on Earth with a flux of about $0.1$ photons/cm$^2\cdot$s.

Now, according to intermediate-mass evolution studies done by Ken‘ichi Nomoto’s group, the threshold between whether a star becomes an O-Ne white dwarf or undergoes electron-capture supernova is an initial mass somewhere between $8\sim8.5\,M_\odot$. Applying the standard Salpeter initial mass function, this means $75\sim85\%$ of carbon-burning stars to eventually go supernova [Li24]. In the Milky Way, we have historically observed a supernova every $50\sim100$ years. As carbon burning typically lasts $\sim$10 thousand years, this means there should be a couple hundred sodium axion pumps active in our galaxy at any moment, boosting the all-sky flux to several photons/cm$^2\cdot$s at current coupling constraints. This is well above the sensitivity of upcoming wide-area gamma-ray space telescopes such as the Compton Spectrometer and Imager (COSI) experiment. We are therefore motivated to investigate this possibility with more rigor.

Getting started with MESA

Modules for Experiments in Stellar Astrophysics (MESA) is a suite of open-source Fortran libraries that, when chained together, can perform pretty darn good 1D star simulations. As a pre-/co-requisite for understanding its outputs, I recommend thoroughly reading a modern stellar astrophysics textbook such as Dina Prialnik’s An Introduction to the Theory of Stellar Structure and Evolution [Pr09], or taking an upper-division stellar astrophysics course. I would say the rough level of necessary proficiency is

  • A detailed, qualitative understanding of the evolutionary stages of 1, 5, 10, 15, and 20 $M_\odot$ stars, and
  • How to plot their evolution on $(\log T,\log L)$ and $(\log T,\log \rho)$ planes.

(I have to admit, I didn’t know about the $(\log T,\log\rho)$ plane until halfway into this research project, to my own detriment.) Beyond these basic skills, depending on how willing you are to blindly follow instructions, and the specificities of your interests, it may be helpful to also know about the effects of different initial metalicities, wind and mass loss models, nuclear reaction networks, pulsation mechanisms, etc, but to each their own.

To install MESA, I found it fairly straightforward to follow their official documentation. I ran into a few missing packages on Linux (Ubuntu 22.04.05 LTS) which were quickly fixed by searching on StackExchange. To become familiarized with MESA’s interface, I worked through every section in the “Using Mesa” tutorials. These tutorials are great for getting a hang of the basics.

After the tutorials, I recommend working through MESA’s test suite, which contains example configurations for simulating a wide collection of common stellar phenomena, from white dwarfs and supernova, to starspots pulsating variables. I believe running through some projects in the test suite is an excellent complement to any stellar astrophysics course. They really give you a feeling that the stars are evolving right before your own eyes, especially if you set pgstar, the built-in plotter, to the highest refresh rate.

As for data analysis, MESA lets us specify which parts of its simulation outputs we want saved to disc. Broadly speaking, there are three kinds of data; From smallest to largest typical file sizes, they are:

  • Data series with one datapoint per time-slice, such as total mass, surface luminosity, effective temperature, etc; Configured in the project’s history_columns.list file and logged as the history.data file.

  • Pre-made plots by pgstar, usually configured in the project’s inlist_pgstar file, which you can optionally display live and/or save to a directory.

  • Data series with one datapoint per layer in the 1D star interior, per time-slice; Includes enclosed mass, local chemical abundances, nuclear burning power, local temperature, etc; Configured in the project’s profile_columns.list file and logged as profile$N$.data files, where $N$ is the index of the time-slice.

We use MESA’s recommended third-party Python library, mesa_reader, to read the data series files into Python, then process them with your garden-variety numpy, scipy and matplotlib.

MESA for research

The tutorials and test suite are, I believe, the best-written and most up-to-date pieces of MESA’s documentation. Unfortunately, once I started tinkering with more obscure settings, I had to read through the reference manuals, which are often sparse in information, and sometimes contained sample code from previous MESA versions that have since changed variable names, or even moved across modules. So while MESA has a pretty gentle learning curve when used to study and verify key concepts from undergraduate stellar astrophysics, I found it a bit of a struggle to make the customizations necessary for our research. (In all fairness, community-maintained projects are expected to be somewhat rough around the edges; I hope I can give back and contribute to their documentation in the future.)

Going back to axions: As Eq. 1 implies, to calculate the axion emission rates for various masses of stars throughout their evolutionary history, we need to know how the interior $^{23}_{11}$Na distribution and temperature profile of each star changes over time. Thanks to prior work by Nomoto’s group, we know MESA is capable of simulating intermediate-mass stellar evolution with key metrics, including chemical abundances, that agree with other modern codes [Zh19]. However, they did not publish the exact MESA configuration they used, only pointing out the changes they made relative to other papers, whose MESA configuration files are also not public. As an outsider, this made my work harder, but in the end it hopefully enhanced our results’ reproducibility.

At first, I was worried I had to piece everything together from scratch, but then I found out about the MESA test suite. Two projects from the test suite seemed to match our needs: make_o_ne_wd, whose off-center carbon ignition and mass loss capabilities is good for simulating stars with ZAMS masses between $7.5\sim11.5\,M_\odot$ that may become either O–Ne white dwarfs or undergo electron-capture supernova, and 20M_pre_ms_to_core_collapse for more massive stars that directly undergo core collapse.

Without any adjustments, both projects ran successfully, but did not produce $^{23}_{11}$Na during their carbon burning stages. It took me some time before realizing that their default reaction networks only contained some 20 isotopes with key roles in stellar evolution; After switching to the mesa_80.net reaction network, we were able to match the $^{23}_{11}$Na abundances from the literature.

To obtain a representative sample of carbon-burning stars, we need to simulate over a wide range of stellar masses. This is done by making multiple copies of the project directories, changing the initial ZAMS mass parameter in each one’s inlist_common file, and running them in parallel on N3AS’s computer server pontecorvo via the tmux terminal multiplexer tool over ssh.

While the 20M_pre_ms_to_core_collapse code is very stable when adjusting the initial mass — consistently reaching core $^{16}_8$O depletion (a herald of core-collapse supenova) for ZAMS masses between $8-30\,M_\odot$ — the make_o_ne_wd code struggled to reach carbon ignition for $M_\text{ZAMS}\lesssim 11\,M_\odot$. With some experimentation on the wind and mass loss parameters, I was able to get off-center carbon ignition at $M_\text{ZAMS} = 10\,M_\odot$, but still could not replicate the $7\sim8\,M_\odot$ threshold reported by Nomoto’s group [Zh19] [Li24]. In the end, we decided to extrapolate the $M_\text{ZAMS} = 11\,M_\odot$ simulation for our 8, 9, and 10 $M_\odot$ datapoints, and analytically account for the ECSN cutoff reported by Limongi & collaborators.

Though our present paper only examined axion emissions from the perspective of gamma-ray telescope searches for axion-photon conversions, we are additionally interested in direct evolutionary observables associated with axion energy loss. MESA is well-designed to handle these physics extensions. It lets us compile the simulation executable star with a run_star_extras.f90 script tacked on, which inserts Eq. 1 into a pre-allocated extra_heat term. Hoping to improve the make_o_ne_wd code’s model of the URCA process, which is particularly important for exploring any axion effects on white dwarf cooling observables, I also incorporated the weak interaction rates published online by Josiah Schwab and collaborators [Sc17].

Acknowledgements

Our simulations were made possible by the generosity of the MESA collaborators, and we have in turn open-sourced our modifications at github.com/xingyzt/saltyaxions.

I would like to thank my collaborators Anupam Ray and Wick Haxton for their patient mentorship on my first research project. I am supported by the N3AS undergraduate research program at UC Berkeley, ran by the wonderful Laura Fantone, Rebecca Singh, and Kenneth McElvain. Many thanks as well to Pablo Castaño and Winston Yin, who first introduced me to axions in their inspiring talks. On stellar evolution theory, feedback from Stan Woosley, Luca Boccioli, and Liang Dai were invaluable. Finally, I am forever indebted to Bea Noether for teaching me the particle physics necessary to understand these axions’ theoretical appeal.

References

  1. W. C. Haxton et al. “A Continuous Galactic Line Source of Axions: The Remarkable Case of 23Na”. Submitted to Phys. Rev. Lett. arXiv: 2505.03038 [astro-ph.HE].

  2. W. C. Haxton and K. Y. Lee. “Red giant evolution, metallicity and new bounds on hadronic axions”. In: Phys. Rev. Lett. 66 (1991), pp. 2557–2560. doi: 10.1103/PhysRevLett.66.2557.

  3. S. Andriamonje et al. “Search for 14.4-keV solar axions emitted in the M1-transition of Fe-57 nuclei with CAST”. In: JCAP 12 (2009), p. 002. doi: 10.1088/1475-7516/2009/12/002. arXiv: 0906.4488 [hep-ex].

  4. Koh Takahashi, Takashi Yoshida, and Hideyuki Umeda. “Evolution of progenitors for electron capture supernovae”. In: Astrophys. J. 771 (2013), p. 28. doi: 10.1088/0004-637X/771/1/28. arXiv: 1302.6402 [astro-ph.SR].

  5. S. A. Lamb, I. Iben Jr., and W. M. Howard. “On the evolution of massive stars through the core carbon-burning phase.” In: 207 (July 1976), pp. 209–232. doi: 10.1086/154486

  6. Marco Limongi et al. “Evolution and Final Fate of Solar Metallicity Stars in the Mass Range 7–15 M . I. The Transition from Asymptotic Giant Branch to Super-AGB Stars, Electron Capture, and Core-collapse Supernova Progenitors”. In: Astrophys. J. Suppl. 270.2 (2024), p. 29. doi: 10.3847/1538-4365/ad12c1. arXiv: 2312.00107 [astro-ph.SR].

  7. Shuai Zha et al. “Evolution of ONeMg Core in Super-AGB Stars toward Electron-capture Supernovae: Effects of Updated Electron-capture Rate”. In: 886.1, 22 (Nov. 2019), p. 22. doi: 10.3847/1538-4357/ab4b4b. arXiv: 1907.04184 [astro-ph.HE].

  8. Francesca Calore et al. “Uncovering axionlike particles in supernova gamma-ray spec- tra”. In: Phys. Rev. D 109.4 (2024), p. 043010. doi: 10.1103/PhysRevD.109.043010. arXiv: 2306.03925 [astro-ph.HE].

  9. Dina Prialnik. An Introduction to the Theory of Stellar Structure and Evolution. 2nd ed. Cambridge University Press, 2009. isbn: 9780521866040

  10. Josiah Schwab, Lars Bildsten, and Eliot Quataert. “The importance of Urca-process cooling in accreting ONe white dwarfs”. In: 472.3 (Dec. 2017), pp. 3390–3406. doi: 10.1093/mnras/stx2169. arXiv: 1708.07514 [astro-ph.SR].