enclosed_mass#

jeanspy.model.ZhaoModel.enclosed_mass

Class and construction: ZhaoModel.

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

Finite-radius Zhao mass for alpha > 0 and gamma < 3, including beta <= 3.

n_steps controls Gauss-Legendre nodes per regularized segment.

Notes

Inputs and units. r_pc in pc, scalar or NumPy array; the Zhao implementation accepts n_steps.

Returns and shape. Msun within min(r_pc,``r_t_pc``), with input shape.