jesterTOV.utils.limit_by_MTOV

Contents

jesterTOV.utils.limit_by_MTOV#

limit_by_MTOV(pc, m, r, l)[source]#

Truncate neutron star family at maximum TOV mass.

This function limits the mass-radius relation to the stable branch by truncating at the maximum TOV mass (MTOV). Points beyond MTOV correspond to unstable configurations and are replaced with duplicates of the MTOV values to maintain array shape for JIT compilation.

The maximum mass occurs when:

\[\frac{dM}{dp_c} = 0\]
Parameters:
  • pc (Array) – Central pressure array

  • m (Array) – Gravitational mass array

  • r (Array) – Radius array

  • l (Array) – Tidal deformability array

Return type:

tuple[Array, Array, Array, Array]

Returns:

  • pc (Array) – Truncated central pressure array

  • m (Array) – Truncated mass array

  • r (Array) – Truncated radius array

  • l (Array) – Truncated tidal deformability array

Notes

This approach maintains static array shapes required for JAX JIT compilation while effectively removing unstable configurations.