计算化学公社

标题: lammps在NPT模拟过程中总是会出现Non-numeric pressure报错 [打印本页]

作者
Author:
ZQing    时间: 2025-7-3 22:09
标题: lammps在NPT模拟过程中总是会出现Non-numeric pressure报错
各位老师好,最近在学习反应立场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文件如下
  1. # ----------------- Init Section -----------------
  2. boundary p p p
  3. units real
  4. atom_style full

  5. # ----------------- Atom Definition Section -----------------

  6. read_data "in.data"

  7. # ----------------- Settings Section -----------------

  8. variable        x index 1
  9. variable        y index 1
  10. variable        z index 1

  11. replicate       $x $y $z

  12. pair_style      reaxff NULL safezone 3.0 mincap 150
  13. pair_coeff      * * reax_ff.carbonate C Ca H Mg Na O
  14. neighbor        0.5 bin
  15. neigh_modify    every 1 delay 0 check yes

  16. # ----------------- Run Section -----------------

  17. timestep 0.25

  18. velocity     all create 1 372748 rot yes dist gaussian loop local
  19. thermo          100
  20. thermo_style custom step temp press density vol
  21. thermo_modify flush yes
  22.   
  23. dump mydump all dcd 100 dump.dcd

  24. fix 1 all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff maxiter 800

  25. min_style cg
  26. minimize 1e-4 1e-6 1000 10000

  27. fix fxnpt all npt temp 1 300 100.0 iso 1000 1000 1000
  28. run 5000
  29. unfix fxnpt

  30. min_style cg
  31. minimize 1e-4 1e-6 1000 10000

  32. fix fxnpt all npt temp 300 500 100.0 iso 1000 1000 1000
  33. run 5000
  34. unfix fxnpt

  35. fix fxnpt all npt temp 500 500 100.0 iso 1000 1000 1000
  36. run 400000

  37. min_style cg
  38. minimize 1e-4 1e-6 1000 10000

  39. write_data steady.data
  40. write_restart steady.restart
复制代码
in文件的编写参考了lammps官方example里的例子,然后我还加了很多能量极小化,输出文件也附上


(, 下载次数 Times of downloads: 0)









欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3