pynbody.gravity.midplane_rot_curve#
- pynbody.gravity.midplane_rot_curve(f: SimSnap, rxy_points: ndarray, eps: float | SimArray | None = None)[source]#
Calculate the rotation curve of a disk galaxy in the x-y midplane (with z=0)
- Parameters:
f (SimSnap) – The snapshot to calculate the rotation curve for
rxy_points (array_like) – Radii at which to calculate the rotation curve, in the xy-plane
eps – The gravitational softening length. See
pynbody.gravity.direct()
for details of how this is used, and what happens when it is not specified.
- Returns:
v – The rotation curve at the specified radii
- Return type: