How can I print or dump the linear momentum at each time step.Which file i have to edit . i use dump custom command… I am using dpd simulation …
You can create a formula that takes the velocity of the center-of-mass
of all the atoms and multiply by the mass of all the atoms. See the
variable equal command. Then you can print out that value
with thermodynamic info - see the thermo_style custom command.