enclosed_mass_analytic#

jeanspy.model_jax.NFWModel.enclosed_mass_analytic

Class and construction: NFWModel.

NFWModel.enclosed_mass_analytic(r_pc, *, params)[source]#

Evaluate the analytic NFW mass, with a stable small-radius limit.

Notes

Inputs and units. r_pc is scalar/array in pc; params contains rs_pc, rhos_Msunpc3 and r_t_pc. This direct analytic method takes no quadrature or method-selection arguments.

Returns and shape. Mass in Msun within min(r_pc, r_t_pc), matching radius shape. Invalid dynamic proposals yield NaN.

Parameters:
Return type:

jax.Array