24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1901  |  回复: 3
【悬赏金币】回答本帖问题,作者nulixiaoda将赠送您 15 个金币

nulixiaoda

新虫 (初入文坛)

[求助] lammps拉伸时变形特别大了还没有拉断 已有1人参与

我在用lammps进行水合物的拉伸,但拉伸时三个尺寸都发成变形,而且水合物变形特别大了还是不会断裂。导出来的应力应变曲线也是不规律。请问各位大佬知不知道这是什么原因呢,小弟在这跪求了,谢谢各位!下面是我的in文件。
#水合物拉伸

#初始化
echo                     screen
units                     real
dimension                3
boundary                 p p p
atom_style               full

#势函数
pair_style               lj/cut/coul/long 14
kspace_style             ewald/disp  1.0e-4
bond_style               harmonic
angle_style              harmonic
dihedral_style           harmonic
pair_modify              mix arithmetic

#定义文件
read_data                "shw.data"

#公共近邻
neighbor                 0.3 bin
neigh_modify             every 2 delay 10 check yes page 100000
velocity                 all create 273 12345 mom yes rot no

#定义变量 计算值
#应力
variable                 stress equal "-pxx/10000"
#应变
variable                 l_x equal lx
variable                 lx0 equal ${l_x}
variable                 strain equal (lx-v_lx0)/v_lx0

#驰豫
timestep                 0.001
fix                      1 all  npt temp 243 243 0.1  z 50 50 0.1  y 50 50 0.1 drag 0.1
thermo                   1000
thermo_style             custom step lx ly lz press pxx pyy pzz pe temp etotal
thermo_modify            lost ignore
run                      20000

#拉伸
reset_timestep                 0
unfix                    1
fix                      1 all  npt temp 243 243 0.1  y 50 50 0.1  z 50 50 0.1 drag 0.1
fix                      2 all deform 10 x erate 0.001 units box
fix                         3 all print 100 "${strain} ${stress}" file strain_stress.txt screen no
thermo                   1000
thermo_style             custom step lx ly lz press pxx pyy pzz pe temp etotal
thermo_modify            lost ignore
dump                     traj all custom 500 shw.xyz id type x y z
dump_modify              traj sort id

timestep                  0.001
run                       200000

发自小木虫Android客户端
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jiaoyixiong

荣誉版主 (职业作家)

【答案】应助回帖

感谢参与,应助指数 +1
问题多多:
1、时间步长太小;
2、x方向拉伸,在NPT时,使x方向的压强调节为零;
3、应变速率偏小,需要自己确认是否合理。
4、“水合物变形特别大了还是不会断裂”需要你自己确认并验证力场及参数的合理性。
2楼2022-07-04 17:19:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

白马踏平川

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by jiaoyixiong at 2022-07-04 17:19:20
问题多多:
1、时间步长太小;
2、x方向拉伸,在NPT时,使x方向的压强调节为零;
3、应变速率偏小,需要自己确认是否合理。
4、“水合物变形特别大了还是不会断裂”需要你自己确认并验证力场及参数的合理性。

您好我想请教您几个问题,以下是我的in文件
#npt弛豫
units  real
timestep        1

#npt弛豫
fix        NPT   all  npt  temp 270 270 100 x 98 98 1000 y 98 98 1000 z 0 0 1000
thermo_style custom time atoms step temp press vol lx ly lz enthalpy pe ke etotal density pxx pyy pzz pxy pxz pyz
thermo       ${thermo}
dump         1   all  xyz  ${thermo}  npt_${name}.xyz
dump_modify  1   element   O  H  C  
fix  pt all print 200  "${istep} ${etol} ${han} ${T0} ${V} ${PE} ${P0}" screen no file npt_${name}.dat
run          ${runmd}
undump           1
unfix           pt
unfix           NPT
reset_timestep   0

#stress-strain
variable   tmpz   equal   "lz"

variable    Lz0   equal   ${tmpz}

variable    strainz   equal   "(lz - v_Lz0)/v_Lz0"

variable    stressz   equal   "-pzz/10000"


#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

run             ${runten}

1.您所说的x方向拉伸,在NPT时,使x方向的压强调节为零,是在弛豫阶段设定为0吗?我是z方向拉伸,这么设置对吗?但是我这么设置应力依旧不是从0开始的,我检查了log文件发现我的模拟过程控不住压,压力波动巨大,是否是这个原因那?应该怎么解决?
2.我的应力应变文件的屈服强度很大,有8GPa,这明显是有问题的,这是什么原因那?也是因为控制不住压力导致的吗?

非常希望能得到您的指点,感谢。
3楼2024-01-11 17:06:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

白马踏平川

新虫 (初入文坛)

引用回帖:
3楼: Originally posted by 白马踏平川 at 2024-01-11 17:06:33
您好我想请教您几个问题,以下是我的in文件
#npt弛豫
units  real
timestep        1

#npt弛豫
fix        NPT   all  npt  temp 270 270 100 x 98 98 1000 y 98 98 1000 z 0 0 1000
thermo_style custom  ...

runten 跑了10ns
4楼2024-01-11 17:13:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 nulixiaoda 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 求调剂 +3 电气小神童 2026-04-04 4/200 2026-04-06 23:16 by 电气小神童
[考研] 307求调剂 +8 超级伊昂大王 2026-04-06 8/400 2026-04-06 22:50 by qlm5820
[考研] 一志愿上海海洋大学083200食品学硕,求调剂,接受其他专业 +9 what张 2026-04-01 10/500 2026-04-06 22:15 by qlm5820
[考研] 材料调剂 +12 一样YWY 2026-04-05 13/650 2026-04-06 15:38 by lin-da
[考研] 305求调剂 +3 77Qi 2026-04-06 3/150 2026-04-06 15:36 by going home
[考研] 一志愿南京航空航天大学 材料与化工329分求调剂 +8 Mr. Z 2026-04-05 8/400 2026-04-06 09:24 by dongzh2009
[考研] 341求调剂 +3 学无止境,冲 2026-04-05 3/150 2026-04-05 09:40 by lbsjt
[考研] 调剂 +4 是可乐不是可乐 2026-04-04 4/200 2026-04-04 19:41 by 唐沐儿
[考研] 考研调剂 +4 zybz冲冲冲 2026-04-03 6/300 2026-04-04 13:08 by zybz冲冲冲
[考研] 一志愿沪985,326分求调剂 +3 刘墨墨 2026-04-03 3/150 2026-04-04 11:16 by 悲伤的芋头
[考研] 0710生物学336分求调剂 +6 kiyy 2026-04-01 8/400 2026-04-04 10:10 by kiyy
[考研] 278求调剂 +6 Yy7400 2026-04-03 6/300 2026-04-04 09:53 by zhangdingwa
[考研] 考研调剂 +3 Draa 2026-04-03 3/150 2026-04-03 17:37 by hgwz7468
[考研] 081200-11408-276学硕求调剂 +6 崔wj 2026-04-02 6/300 2026-04-03 10:19 by 蓝云思雨
[考研] 262求调剂 +6 励志一定发文章 2026-04-02 7/350 2026-04-03 09:54 by linyelide
[考研] 326求调剂 +10 崽崽仔 2026-04-02 10/500 2026-04-03 09:08 by 帕尔马拉特
[考研] 0710生物学求调剂 +9 manman511 2026-04-01 9/450 2026-04-02 10:00 by zxl830724
[考研] 一志愿安徽大学计算机科学与技术学硕,331分求调剂 +5 蒋昌鹏qtj 2026-04-01 5/250 2026-04-02 08:10 by fxue1114
[考研] 求调剂,一志愿北林食品与营养095500,301分,已过六级,有科研经历 +4 快乐储蓄罐 2026-03-31 4/200 2026-04-01 09:26 by JourneyLucky
[考研] 土木304求调剂 +5 顶级擦擦 2026-03-31 5/250 2026-04-01 08:15 by fdcxdystjk¥
信息提示
请填处理意见