enclosed_mass_numeric#

jeanspy.model_jax.ZhaoModel.enclosed_mass_numeric

Class and construction: ZhaoModel.

ZhaoModel.enclosed_mass_numeric(r_pc, *, params, n_steps=128)[source]#

Cusp-regularized, differentiable quadrature without a central cutoff.

Notes

Inputs and units. r_pc is scalar/array in pc; params is the Zhao physical dictionary. n_steps is the Gauss-Legendre order per regularized radial segment, an integer >= 8. Orders below 8 raise ValueError. This method has no central cutoff or t_min argument.

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