Force and velocities from vasprun.xml

I would like to calculate the Friction using the Kubo-Green relations. To do so requires being able to read in the forces and velocities from a (VASP) MD run. Are these accessible in a vasprun object? If not how does one access the force and velocities?

These are stored in a vasprun object in the ionic_steps attribute, which contains info at each step of MD.

You may like the get_trajectory() method to get a convenient Trajectory object to represent your MD run, however this does not store the velocities, just the positions and forces.

Thank you for your quick reply.