compute myStress all stress/atom virial
variable mySvx atom c_myStress*vx
variable mySvy atom c_myStress*vy
variable mySvz atom c_myStress*vz
compute mySvx all reduce sum v_mySvx
compute mySvy all reduce sum v_mySvy
compute mySvz all reduce sum v_mySvz
fix JJS all ave/correlate $s $p $d c_mySvx c_mySvy c_mySvz type auto file J0Jt.dat ave running
这样应该有问题吧?那么stress的维度该如何修改呢? 不胜感激!