CoxGomezSpiralArm

class peebee.models.CoxGomezSpiralArm(**kwargs)

Bases: Model

Cox & Gomez (2002) spiral arm potential model.

Implements the spiral arm potential from Cox & Gomez (2002). Calculates accelerations numerically rather than analytically for simplicity. Currently uses single term (n=1) in the sum.

Methods Summary

accel(x, y, z[, sun_pos])

Compute the acceleration at given coordinates.

pot(x, y, z)

set_number_arms(N)

Methods Documentation

accel(x, y, z, sun_pos=(8.178, 0.0, 0.0), **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

pot(x, y, z)
set_number_arms(N)