periodic change in cell dimensions

You could use a dump custom command and store velocities like the following.

dump 1 all custom 1000 dump_dump.lammpstrj id type x y z q vx vy vz ix iy iz

Arun