HarmonicOscillatorPotential¶
-
class
gala.potential.HarmonicOscillatorPotential(omega, units=None)[source]¶ Bases:
gala.potential.PotentialBaseRepresents an N-dimensional harmonic oscillator.
\[\Phi = \frac{1}{2}\omega^2 x^2\]Parameters: omega : numeric
Frequency.
units : iterable(optional)
Unique list of non-reducable units that specify (at minimum) the length, mass, time, and angle units.
Methods Summary
action_angle(w)Transform the input cartesian position and velocity to action-angle coordinates the Harmonic Oscillator potential. Methods Documentation
-
action_angle(w)[source]¶ Transform the input cartesian position and velocity to action-angle coordinates the Harmonic Oscillator potential. This transformation is analytic and can be used as a “toy potential” in the Sanders & Binney 2014 formalism for computing action-angle coordinates in _any_ potential.
Adapted from Jason Sanders’ code genfunc.
Parameters: w :
gala.dynamics.CartesianPhaseSpacePosition,gala.dynamics.CartesianOrbitThe positions or orbit to compute the actions, angles, and frequencies at.
-