pynbody.gravity#
Routines for calculating gravitational potential and accelerations.
See also
pynbody.analysis.profile provides a user-friendly interface to rotation curves.
Functions
|
Calculate the potential and acceleration for all particles in the snapshot using a direct summation algorithm. |
|
Calculate the potential and acceleration for all particles in the snapshot using a Particle-Mesh algorithm. |
|
Calculate the gravitational acceleration and potential at the specified positions |
|
Calculate the potential of a disk galaxy in the x-y midplane (with z=0) |
|
Calculate the rotation curve of a disk galaxy in the x-y midplane (with z=0) |
|
Calculate the potential and acceleration for a set of particles using a Particle-Mesh algorithm. |