find_actions_o2gf

gala.dynamics.find_actions_o2gf(orbit, N_max, force_harmonic_oscillator=False, toy_potential=None)[source]

Deprecated since version v1.5: The find_actions function is deprecated and may be removed in a future version. Use find_actions_o2gf instead.

Find approximate actions and angles for samples of a phase-space orbit. Uses toy potentials with known, analytic action-angle transformations to approximate the true coordinates as a Fourier sum.

This code is adapted from Jason Sanders’ genfunc

Parameters
orbitOrbit
N_maxint

Maximum integer Fourier mode vector length, \(|\boldsymbol{n}|\).

force_harmonic_oscillatorbool (optional)

Force using the harmonic oscillator potential as the toy potential.

toy_potentialPotential (optional)

Fix the toy potential class.

Returns
aafdict

A Python dictionary containing the actions, angles, frequencies, and value of the generating function and derivatives for each integer vector. Each value of the dictionary is a numpy.ndarray or astropy.units.Quantity.