#z向拉伸
fix 2 all npt temp 270 270 100 x 98 98 1000 y 98 98 1000
fix 3 all deform 100 z erate 0.00000001 remap x units box
thermo_style custom time atoms step temp press vol lx ly lz density pxx pyy pzz pxy pxz pyz
thermo ${thermo}
dump 1 all xyz ${thermo} tension_${name}.xyz
dump_modify 1 element O H C
#保存应力应变数据
fix def3 all print 100 "${strainx} ${stressx} ${strainy} ${stressy} ${strainz} ${stressz}" screen no file stress-strain_${name}.dat