pynbody.gravity.midplane_potential

pynbody.gravity.midplane_potential#

pynbody.gravity.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

  • eps – The gravitational softening length. See pynbody.gravity.direct() for details of how this is used, or what happens when it is not specified.

Returns:

v – The potential at the specified radii

Return type:

array.SimArray