How to calculate the energy of each ion after each Molecular Dynamics(MD) steps using LAMMPS? In the trajectory i am getting Index of the ions, x,y,z coordinates and x,y, z components of velocities of ions after each MD steps. I want to calculate the energy of each ions after each MD steps. How can I calculate it using LAMMPS ?