Plummer¶
- class peebee.models.Plummer(**kwargs)¶
Bases:
ModelPlummer sphere mass distribution.
Implements the Plummer (1911) model commonly used for globular clusters and other spherical stellar systems. Allows for optional center offset.
Methods Summary
accel(x, y, z, **kwargs)Compute Plummer sphere acceleration.
density(x, y, z, **kwargs)Compute Plummer density profile.
Methods Documentation
- accel(x, y, z, **kwargs)¶
Compute Plummer sphere acceleration.
- X (array_like):
X coordinates (kpc)
- Y (array_like):
Y coordinates (kpc)
- Z (array_like):
Z coordinates (kpc)
- **kwargskwargs:
Additional keyword arguments
- Returns:
acceleration (tuple) - Three-component acceleration (ax, ay, az) in mm/s/yr
- density(x, y, z, **kwargs)¶
Compute Plummer density profile.
- X (array_like):
X coordinates (kpc)
- Y (array_like):
Y coordinates (kpc)
- Z (array_like):
Z coordinates (kpc)
- **kwargskwargs:
Additional keyword arguments
- Returns:
density (array_like) - Mass density (M_sun/kpc^3)