pynbody.analysis.gravity.accel#
- pynbody.analysis.gravity.accel(f, pos_vec, eps=None)[source]#
Calculates the gravitational acceleration vector at the specified position using all particles in the specified snapshot.
The gravitational softening length is determined by (in order of preference):
The parameter eps (scalar, unit or array)
The array f[‘eps’]
f.properties[‘eps’] (scalar or unit)