galpy.potential.to_amuse

galpy.potential.to_amuse(Pot, t=0.0, tgalpy=0.0, reverse=False, ro=None, vo=None)[source]

NAME:

to_amuse

PURPOSE:

Return an AMUSE representation of a galpy Potential or list of Potentials

INPUT:

Pot - Potential instance or list of such instances

t= (0.) Initial time in AMUSE (can be in internal galpy units or AMUSE units)

tgalpy= (0.) 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

reverse= (False) 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

ro= (default taken from Pot) length unit in kpc

vo= (default taken from Pot) velocity unit in km/s

OUTPUT:

AMUSE representation of Pot

HISTORY:

2019-08-04 - Written - Bovy (UofT)

2019-08-12 - Implemented actual function - Webb (UofT)