计算化学公社

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

[Lammps] 求助:我用LAMMPS对模型进行单轴拉伸后,得到的应力应变曲线呈线性增长,不合理

[复制链接 Copy URL]

1

帖子

0

威望

17

eV
积分
18

Level 1 能力者

本帖最后由 rouou 于 2024-5-5 10:07 编辑

大家好,我正在做一个界面交互模型的单轴拉伸模拟,先用ms建好模型后,利用lammps进行z方向的单轴拉伸,但是无论步数设计多少,应力应变曲线都呈现线性增长,这是不合理的。希望大家能帮忙看看,是哪里出了问题。
以下是我书写的in文件

#-----------1 基本参数---------------------------------
units               real # Lammps units,d=A,E=kcal/mol,p=atmospheres(MPa)
dimension            3
boundary            p p p

neighbor            3.0  bin
timestep            1
neigh_modify        every 1 check yes delay 0

#-------------2 势函数设置------------------------------
atom_style          full
pair_style          lj/cut/coul/long 10.0 10.0
bond_style          harmonic
angle_style         harmonic
dihedral_style      harmonic
improper_style      cvff
kspace_style        pppm 1.0e-4

read_data           layer.data

#-------------3 NPT弛豫(退火)-----------------------------------
fix                 1 all npt temp 300 300 100 iso 1 1 1000 drag 2
run                 10000
unfix                 1

#-------------4 拉伸----------------------------------
variable             tmp equal "temp"
variable             l_z equal "lz"
variable             l0 equal ${l_z}
variable             strain equal "(lz-v_l0)/v_l0"
variable             stressz equal "-pzz*0.101325" # Normolized to Mpa

fix                 2 all deform 1 z erate  1e-5 units box remap x
fix                 3 all print 100 "${strain} ${stressz}" file stress-strain.txt screen no

thermo              50
thermo_style        custom step temp pzz  density lz pe ke

dump                1 all atom 100 dump.atom
run                 50000

write_data          final.data



本版积分规则 Credits rule

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

GMT+8, 2026-2-25 16:47 , Processed in 0.363538 second(s), 26 queries , Gzip On.

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