Simple slow-rotation neutron star structure solver
Switch branches/tags
Nothing to show
Clone or download
Latest commit 52dfbec Sep 12, 2017
Failed to load latest commit information.
src Makefile's SRCS were out of date Sep 8, 2017
LICENSE Add MIT license file Sep 12, 2017 Update Sep 12, 2017 Sucked in code from earlier repo. Sep 8, 2017


Simple slow-rotation neutron star structure solver

This started out as Kent's code for 1303.1528, and was initially Nico's code before that. I rewrote it a lot. You will thus notice wildly varying programming styles throughout. It can still be greatly improved, but as we say, it works for me for now.

This code is capable of solving for a neutron star structure at orders 0, 1, and 2 in the slow rotation expansion. Order 0 is of course the "Tolman-Oppenheimer-Volkoff" (TOV) equation. At orders 1 and 2 we can extract the moment of inertia and quadrupole moment.

The piecewise polytropic EOS implements the prescription in Read, Lackey, Owen, and Friedman (2009) 0812.2163, along with their fits for named EOSs.


  • make
  • makedepend
  • GSL
  • gengetopt
  • A C++ compiler. I am using clang and have not tested others.
  • I'm probably forgetting something, add it here if you pick up on a missing dep.