pynbody.analysis.gravity

Contents

pynbody.analysis.gravity#

gravity#

Functions for calculating the gravitational potential and accelerations.

Functions

accel(f, pos_vec[, eps])

Calculates the gravitational acceleration vector at the specified position using all particles in the specified snapshot.

midplane_potential(f, rxy_points[, eps])

Calculates the midplane potential at a specified set of points.

midplane_rot_curve(f, rxy_points[, eps])

Calculates the midplane rotation curve at a specified set of points.

potential(f, pos_vec[, eps, unit])

Calculates the gravitational potential at the specified position using all particles in the specified snapshot.