Saving velocities for all particles #1715
-
Hello,
The problem is that when I try to read the file using the code below. def velocity(): The terminal outputs: dict_keys([ ]) Am I writing/reading the file incorrectly? Is there a better way to save the velocities of the particles? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
Use
rawvel[0].particles.velocity
. This is documented at https://gsd.readthedocs.io/en/v3.2.1/python-module-gsd.hoomd.html#gsd.hoomd.ParticleData.velocity