计算化学公社

 找回密码 Forget password
 注册 Register
Views: 5711|回复 Reply: 0
打印 Print 上一主题 Last thread 下一主题 Next thread

[Lammps] fix deform算拉伸过程的应力应变关系和fix ave/chunk命令

[复制链接 Copy URL]

7

帖子

0

威望

73

eV
积分
80

Level 2 能力者

lammps新手想求助一下,本来是按照网上的案例想用fix deform算拉伸过程(x方向)的应力应变曲线,但是算出来pxx,pyy,pxx都是随应变增大而减小的趋势,完全不符合, 然后就想用fix ave/chunk 输出受力,in文件给出,initial.txt是有输出fx,fy,fz都是接近于0,但是stress.txt这里就没有输出受力的数据了,想请大家指导提点下是哪里出错了,感谢!!!
#NVT ensemble for relaxation
fix                1 all nvt temp 300 300 100
dump 1 all custom 500 nvt.xyz id type x y z vx vy vz
thermo_style        custom step temp press vol density etotal epair ebond eangle edihed pxx pyy pzz lx ly lz
thermo          500
timestep        0.5
reset_timestep         0
run                50000
unfix 1
undump        1
   

variable tmp equal "lx"
variable L0 equal ${tmp}
variable strain equal "(lx - v_L0)/v_L0"
variable stressx equal "pxx/10000"
dump 1 all custom 500 traj.lammpstrj id type x y z ix iy iz vx vy vz
fix                1 all npt temp 300 300 100 y 0 0 1000 z 0 0 1000 drag 2
fix                2 all deform 1 x erate 0.000005 units box remap x
fix     3 all print 500 "${strain} ${stressx}" file strain_stress.txt screen no
thermo_style        custom step temp v_strain v_stressx pxx pyy pzz lx ly lz etotal epair ebond eangle edihed
thermo          500
compute st all chunk/atom bin/1d x lower 40 units box
fix    11 all ave/chunk 1 1 5 st fx fy fz ave one file stress.txt
timestep   0.5
reset_timestep        0
run                20000
unfix 1
unfix 2
unfix 3
undump 1
unfix 11


202109072125149375..png (15.96 KB, 下载次数 Times of downloads: 8)

202109072125149375..png

202109072125012207..png (48.65 KB, 下载次数 Times of downloads: 17)

202109072125012207..png

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-22 13:33 , Processed in 0.160608 second(s), 23 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list