galpy.potential.to_amuse¶
- galpy.potential.to_amuse(Pot, t=0.0, tgalpy=0.0, reverse=False, ro=None, vo=None)[source]¶
Return an AMUSE representation of a galpy Potential or list of Potentials
- Parameters:
Pot (Potential instance or list of such instances) – Potential(s) to convert to an AMUSE representation.
t (float, optional) – Initial time in AMUSE (can be in internal galpy units or AMUSE units), by default 0.0.
tgalpy (float, optional) – Initial time in galpy (can be in internal galpy units or AMUSE units); because AMUSE initial times have to be positive, this is useful to set if the initial time in galpy is negative, by default 0.0.
reverse (bool, optional) – Set whether the galpy potential evolves forwards or backwards in time (default: False); because AMUSE can only integrate forward in time, this is useful to integrate backward in time in AMUSE, by default False.
ro (float, optional) – Length unit in kpc, by default None.
vo (float, optional) – Velocity unit in km/s, by default None.
- Return type:
AMUSE representation of Pot.
Notes
2019-08-04 - Written - Bovy (UofT)
2019-08-12 - Implemented actual function - Webb (UofT)