1.compute pe命令(计算整个原子系统)
compute ID group-ID pe keyword
compute 1 all pe
2.compute pe/atom (计算每个原子的能量)
compute Ke_atom all ke/atom
compute Pe_atom all pe/atom
fix 1 all ave/atom 100 1 100 c_Ke_atom
fix 2 all ave/atom 100 1 100 c_Pe_atom
dump dump_all all custom 100 dump_atom.dat id type x y z c_Ke_atom c_Pe_atom
(若有不对,请批评指正)