Dumping total velocity in dump command

Hi,

I’m using the following command to dump particle velocity components in the dump file:

dump deform all custom 1000 deformation_T${T}_SR${erate}.lammpstrj id x y z type element vx vy vz

I would like to see if there is a way to output v (total velocity) in this command?

PS1: I understand that velocity has a direction and it might be physically inaccurate to report only the magnitude
PS2: The motivation behind this is to visualize the temperature “per atom” using the dump file and not an external post processing script.
PS3: I also understand that temperature per atom is not a thing, and that temperature and velocity are not exactly the same thing, however, for my specific system, I expect temperature and velocity per atom to behave similarly so that I can use one to visualize the other.

How about using compute ke/atom?

I guess that does the trick! thanks!

Also, I noticed that Ovito automatically calculates velocity magnitude from velocity components in the “color code” modification.

As a third solution, you can also define a peratom variable:

variable vmag atom (vx*vx+vy*vy+vz*vz)^0.5
dump 1 all custom 1000 dump.lmp id x y z vx vy vz v_vmag