AST 390: Computational Astrophysics

AST 390: Computational Astrophysics#

Michael Zingale

(Spring 2025)

This is a collection of notebooks on computational (astro)physics. Starting at the beginning, these notebooks introduce numerical methods for derivatives, integration, rooting finding, ODEs, and linear algebra and then move onto applications in astrophysics.

Course Outline#

We’ll start with an An Overview of Python and Version Control with Git and then move on to core numerical methods.

You should follow the outline in the navigation panel to the left.

Note

This course assumes that you are already familiar with a programming language.

Astrophysical Applications#

Throughout the course, we’ll see some applications to interesting problems in astrophysics. Here’s a listing to some of them:

Reaction Rate \(T\) Sensitivity

diff An example of using numerical differentiation to estimate the 3-\(\alpha\) reaction \(T\) sensitivity.

Blackbody Radiation

int An example of integrating to infinity by integrating the Planck function over wavelength.

Wien’s Law

roots Demonstrating root finding by numerically deriving Wien’s law.

Degeneracy

int roots Combining integration over the Fermi-Dirac distribution and root-finding to find the electron degeneracy parameters.

Few-Body Problem

ODEs Using adaptive stepping in ODE integration to solve the few-body problem.

Polytropes

roots ODEs Shooting methods for two-point boundary value problelms applied to the Lane-Emden equation for polytropes.

Stability of Planetary Systems

ODEs Investigating the longterm stability of planetary systems using symplectic integrators.

One-Zone X-ray Burst Model

roots ODEs ODE integration + root finding to explore limit-cycles in a one-zone model of an X-ray burst

Integrating the CNO Cycle

ODEs Using stiff-ODE solvers to integrate an CNO reaction network

Lorenz System Stationary States

linalg A demonstration of using Newton’s method to find the stationary states of the Lorenz system.

Interpolating Reaction Rates

interp Using bilinear interpolation to evaluate tabulated electron-capture rates.

Radial Velocity in Frequency Space

FFTs Using FFTs to find planets from stellar radial velocity curves.

X-ray timing

FFTs Using FFTs on time-series data to study low mass X-ray binaries.

Hubble’s Constant

fitting Using linear regression to estimate \(H_0\) from Type Ia supernova.