Hernquist

class peebee.models.Hernquist(**kwargs)

Bases: Model

Hernquist spherical mass profile.

Implements the Hernquist (1990) density profile commonly used for bulges and elliptical galaxies.

Methods Summary

accel(x, y, z, **kwargs)

Compute the acceleration at given coordinates.

density(x, y, z, **kwargs)

Compute the density profile for a Hernquist potential.

Methods Documentation

accel(x, y, z, **kwargs)

Compute the acceleration at given coordinates. Must be implemented by subclasses.

X (array_like):

X coordinates (kpc)

Y (array_like):

Y coordinates (kpc)

Z (array_like):

Z coordinates (kpc)

**kwargskwargs:

Additional keyword arguments specific to the model

Returns:

acceleration (tuple) - Three-component acceleration (ax, ay, az) in mm/s/yr

density(x, y, z, **kwargs)

Compute the density profile for a Hernquist potential.

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)