标题: 我用Lammps删除原子命令,每隔一定时步删除,却报错了 [打印本页] 作者Author: 456321789 时间: 2023-8-27 20:10 标题: 我用Lammps删除原子命令,每隔一定时步删除,却报错了 大佬们,帮我看看吧!我想每1000步删除聚合物反应力场里产生的原子,或者气体分子。 这是错误提示:
ERROR: Could not find delete_atoms group ID 8 (src/delete_atoms.cpp:219)
Last command: delete_atoms group 8
这是我的in函数删除命令:
# 继续模拟设置
fix 5 all temp/berendsen 300.0 2800.0 1
timestep 0.01
variable delete_step equal 1000
variable current_step equal 1000
label LOOP
run ${delete_step}
delete_atoms group 8
variable current_step equal ${current_step}+${delete_step}
next ${delete_step} loop LABEL
unloop LABEL
run 100000
#
fix 6 all temp/berendsen 2800.0 2800.0 1
timestep 0.1
label LOOP2
run 1 # 每一步运行一步模拟
delete_atoms group 8
next ${delete_step} loop LABEL2
unloop LABEL2
run 100000
#
fix 7 all temp/berendsen 2800.0 300.0 1
timestep 0.1
label LOOP3
run 1 # 每一步运行一步模拟
delete_atoms group 8
next ${delete_step} loop LABEL3
unloop LABEL3
run 50000
这是我的聚合物模型data。
# LAMMPS data file written by OVITO Basic 3.3.5
1230 atoms