draw_r_vr_vt

cosmic.sample.cmc.king.draw_r_vr_vt(N=100000, w_0=6, tidal_boundary=1e-06)[source]

Draw random velocities and positions from the King profile.

N = number of stars w_0 = King concentration parameter (-psi/sigma^2) tidal_boundary = ratio of rho/rho_0 where we truncate the tidal boundary

returns (vr,vt,r) in G=M_cluster=1 units