DehnenSphericalPotential

eridanus_pbh.potential.potential.DehnenSphericalPotential(mass: Union[astropy.units.quantity.Quantity, amuse.units.quantities.Quantity], a: Union[astropy.units.quantity.Quantity, amuse.units.quantities.Quantity], alpha: float, to_amuse: bool = True, to_system: bool = True) -> (<class 'galpy.potential.Potential.Potential'>, <class 'galpy.potential.amuse.galpy_profile'>, <class 'amuse_util.datamodel._system.System'>)[source]

Make a DehnenSphericalPotential.

Parameters
mass: apu.Quantity or amu.Quantity
a: apu.Quantity or amu.Quantity

scale length

alphabool

profile shape cored corresponds to alpha`=0 vs `1 for cusped

to_amusebool, optional

whether to return an AMUSE potential, or a galpy potential

to_systembool, optional

whether to return a System object overrides to_amuse if True (default)

Returns
System

with .gravity attribute