interpolate_orbit¶
- clustertools.analysis.orbits.interpolate_orbit(cluster, pot=None, tfinal=None, nt=1000, from_centre=False, ro=None, vo=None, zo=None, solarmotion=None)[source]¶
Interpolate past or future position of cluster and escaped stars
- Parameters:
- clusterclass
StarCluster
- cluster_potclass
Galpy potential for host cluster that orbit is to be integrated in if None, assume a Plumme Potential
- potclass
galpy Potential that orbit is to be integrate in (default: None)
- tfinalfloat
final time (in cluster.units) to integrate orbit to (default: 12 Gyr)
- ntint
number of timesteps
- from_centrebool
intialize orbits from cluster’s exact centre instead of cluster’s position in galaxy (default :False)
- rofloat
distance to the Galactic centre (Default: None)
- vofloat
circular velocity at ro (Default: None)
- zofloat
Sun’s distance above the Galactic plane (default: None)
- solarmotionfloat
array representing U,V,W of Sun (default: None)
- Returns:
- x,y,zfloat
interpolated positions of each star
- vx,vy,vzfloat
interpolated velocities of each star