|
各位老师好,最近在学习反应立场Reaxff,期间遇到了一个问题想向大家请教一下
模拟的时候运行一段时间就会出现像是ERROR: Non-numeric pressure - simulation unstable (src/fix_nh.cpp:1069)这样的报错,
我看论坛里的建议,尝试了减小步长,降低温度,增加盒子大小,增加能量极小化,也试过先跑nvt后跑npt但是npt部分始终会在运行一段时间后报同样的错。
下面是对我模拟细节的一些描述:
lammps版本:29 Sep 2021
模拟体系是13Na2CO3+28CaCO3+33MgCO3+43H2O,一共512个原子,力场文件取自Adri C. T. van Duin在2022年的一篇文献,https://doi.org/10.1039/D1CP04790F 是专门针对这样的体系开发的。初始文件是用packmol构建的,
in文件如下
- # ----------------- Init Section -----------------
- boundary p p p
- units real
- atom_style full
- # ----------------- Atom Definition Section -----------------
- read_data "in.data"
- # ----------------- Settings Section -----------------
- variable x index 1
- variable y index 1
- variable z index 1
- replicate $x $y $z
- pair_style reaxff NULL safezone 3.0 mincap 150
- pair_coeff * * reax_ff.carbonate C Ca H Mg Na O
- neighbor 0.5 bin
- neigh_modify every 1 delay 0 check yes
- # ----------------- Run Section -----------------
- timestep 0.25
- velocity all create 1 372748 rot yes dist gaussian loop local
- thermo 100
- thermo_style custom step temp press density vol
- thermo_modify flush yes
-
- dump mydump all dcd 100 dump.dcd
- fix 1 all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff maxiter 800
- min_style cg
- minimize 1e-4 1e-6 1000 10000
- fix fxnpt all npt temp 1 300 100.0 iso 1000 1000 1000
- run 5000
- unfix fxnpt
- min_style cg
- minimize 1e-4 1e-6 1000 10000
- fix fxnpt all npt temp 300 500 100.0 iso 1000 1000 1000
- run 5000
- unfix fxnpt
- fix fxnpt all npt temp 500 500 100.0 iso 1000 1000 1000
- run 400000
- min_style cg
- minimize 1e-4 1e-6 1000 10000
-
- write_data steady.data
- write_restart steady.restart
复制代码 in文件的编写参考了lammps官方example里的例子,然后我还加了很多能量极小化,输出文件也附上
slurm-99561.out
(107.75 KB, 下载次数 Times of downloads: 0)
|
|