enclosed_mass#

jeanspy.model.DMModel.enclosed_mass

Class and construction: DMModel.

DMModel.enclosed_mass(r_pc)[source]#

Return enclosed halo mass in Msun at radius r_pc in pc.

Concrete profiles specify truncation and numerical integration options. Output follows the input radius shape. This optional subclassing interface raises NotImplementedError when mass is unavailable; a density-only custom halo can still be used for J-factor calculations.