大家好,我是小马老师。
在lammps扩散模拟中,大多需要计算MSD,今天分享一段MSD的代码:
compute 1 all msd com yes
variable msdx equal c_1[1]
variable msdy equal c_1[2]
variable msdz equal c_1[3]
variable msd equal c_1[4]
variable istep equal step
fix 2 all print
大家好,我是小马老师。
在lammps扩散模拟中,大多需要计算MSD,今天分享一段MSD的代码:
compute 1 all msd com yes
variable msdx equal c_1[1]
variable msdy equal c_1[2]
variable msdz equal c_1[3]
variable msd equal c_1[4]
variable istep equal step
fix 2 all print