pynbody.gravity.calc.midplane_potential#
- pynbody.gravity.calc.midplane_potential(f, rxy_points, eps=None)[source]#
Calculate the potential of a disk galaxy in the x-y midplane (with z=0)
- Parameters:
f – The snapshot to calculate the potential for
rxy_points – A list or array of radii at which to calculate the potential, in the xy-plane
- Returns:
v – The potential at the specified radii
- Return type: