Orbit¶
-
class
gala.dynamics.Orbit[source]¶ Bases:
objectAttributes Summary
norbitsntimesMethods Summary
apocenter([type])Estimate the apocenter(s) of the orbit. eccentricity()Returns the eccentricity computed from the mean apocenter and mean pericenter. estimate_period([radial])Estimate the period of the orbit. pericenter([type])Estimate the pericenter(s) of the orbit. Attributes Documentation
-
norbits¶
-
ntimes¶
Methods Documentation
-
apocenter(type=<function mean>)[source]¶ Estimate the apocenter(s) of the orbit. By default, this returns the mean apocenter. To get, e.g., the minimum apocenter, pass in
type=np.min. To get all apocenters, pass intype=None.Parameters: type : func (optional)
By default, this returns the mean apocenter. To return all apocenters, pass in
None. To get, e.g., the minimum or maximum apocenter, pass innp.minornp.max.Returns: apo : float,
ndarrayEither a single number or an array of apocenters.
-
eccentricity()[source]¶ Returns the eccentricity computed from the mean apocenter and mean pericenter.
\[e = \frac{r_{\rm apo} - r_{\rm per}}{r_{\rm apo} + r_{\rm per}}\]Returns: ecc : float
The orbital eccentricity.
-
estimate_period(radial=True)[source]¶ Estimate the period of the orbit. By default, computes the radial period. If
radial==False, this returns period estimates for each dimension of the orbit.Parameters: radial : bool (optional)
What period to estimate. If
True, estimates the radial period. IfFalse, estimates period in each dimension, e.g., if the orbit is 3D, along x, y, and z.Returns: T :
QuantityThe period or periods.
-
pericenter(type=<function mean>)[source]¶ Estimate the pericenter(s) of the orbit. By default, this returns the mean pericenter. To get, e.g., the minimum pericenter, pass in
type=np.min. To get all pericenters, pass intype=None.Parameters: type : func (optional)
By default, this returns the mean pericenter. To return all pericenters, pass in
None. To get, e.g., the minimum or maximum pericenter, pass innp.minornp.max.Returns: peri : float,
ndarrayEither a single number or an array of pericenters.
-