kilopop.equation_of_state.compute_compactnesses_from_EOS

kilopop.equation_of_state.compute_compactnesses_from_EOS(mass, EOS_mass_to_rad)[source]

Calucate the neutron star stellar compactness.

Using the equation for compactness from neutron star mass and radius compute the compactnesses for both of the component stars in the system.

Parameters:
  • mass (float) – The gravitational mass in solar masses.

  • EOS_mass_to_rad (function) – Interpolator function from provided EOS mass-radius curve.

Returns:

compactness – The stellar compactness of the neutron star.

Return type:

float