add_rotation¶
- clustertools.cluster.operations.add_rotation(cluster, qrot)[source]¶
Add a degree of rotation to an already generated StarCluster
- Parameters:
- clusterclass
StarCluster
- qrotfloat
fraction of stars with v_phi < 0 that are switched to vphi > 0
- Returns:
- x,y,z,vx,vy,vzfloat
stellar positions and velocities (now with rotation)