24小时热门版块排行榜    

查看: 2706  |  回复: 10
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

liuchenhan

新虫 (小有名气)

[求助] 有关create_atoms相关命令 已有1人参与

本人脚本中先读结构文件nanonew.xyz,原子类型1-12,然后利用create_atoms命令生成一些其他原子,想安排这些原子的类型为13,但总是报错,请各位帮忙指导一下,实现我想要的功能,非常感谢。
units           metal
dimension       3
boundary        s s s
neighbor        2.0 nsq

#force field *******************************************************
atom_style      atomic

read_data       nanonew.xyz
lattice         custom 4.32 a1 1.0 0.0 0.0 a2 0.0 0.577350269 0.0 a3 0.0 0.0 1.0 basis 0.0 0.5 0.0 basis 0.3333333333333 0.5 0.0 basis 0.5 0.0 0.0 basis 0.83333333333 0.0 0.0
#lattice         custom 3.52 a1 1.0 0.0 0.0 a2 0.0 0.577350269 0.0 a3 0.0 0.0 1.0 basis 0.0 0.0 0.0
region          boxx block 0 3 0 3 0 2
#create_box      1 box
create_atoms    13 region boxx

mass            13 28.0
pair_style      lj/cut 3.0
pair_coeff      * * 0.024 3.4

velocity          all  create  300 58127640 mom yes  rot yes dist gaussian units box #300K

fix               3 all temp/berendsen  300 300 0.05 #set the T of mobile is 300K while the initial value is300K

thermo_style      custom step temp etotal vol
#thermo_modify     lost warn
thermo            100

timestep          0.0005

dump                    id1 all custom 1000 dump.lammpstrj id type x y z

compute           mytempall all temp/com
fix               Tall all ave/time 1 100 100 c_mytempall file Tall.txt

dump              last all custom 40000 dump.last type x y z

run               40000


报错信息如下:
LAMMPS (14 May 2013)
Reading data file ...
  orthogonal box = (-0.1 -0.1 -0.1) to (28.7 40.7 100)
  1 by 1 by 1 MPI processor grid
  240 atoms
Lattice spacing in x,y,z = 4.32 2.49415 4.32
ERROR: Illegal create_atoms command (../create_atoms.cpp:109)
回复此楼

» 猜你喜欢

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

preach0519

木虫 (小有名气)

引用回帖:
4楼: Originally posted by liuchenhan at 2014-06-26 09:38:16
已经解决了,直接在data file里面说明有13中原子类型,但里面只有前12中原子的坐标,第13种用create_atoms命令创建就行了。...

请问楼主是怎么加上的 我为什么加了create_atoms 后原来的原子都没了呢?
自己才是最靠得住的人!
11楼2015-10-31 10:10:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 11 个回答

LoogCat

铁虫 (小有名气)

【答案】应助回帖


感谢参与,应助指数 +1
liuchenhan: 金币+1, 有帮助, 没有解决问题 2014-06-26 09:36:54
应该先设定盒子,然后再在盒子里加region,在region里加原子。参考命令:
region          boxx block 0 5 0 5 0 4
create_box      1 box
region          boxx block 1 4 1 4 1 3
create_atoms    13 region boxx

另外,一般是先建立box,然后才能read_data导入数据,所以你需要调整输入命令的顺序!
2楼2014-06-25 19:51:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liuchenhan

新虫 (小有名气)

引用回帖:
2楼: Originally posted by LoogCat at 2014-06-25 19:51:23
应该先设定盒子,然后再在盒子里加region,在region里加原子。参考命令:
region          boxx block 0 5 0 5 0 4
create_box      1 box
region          boxx block 1 4 1 4 1 3
create_atoms    13 region  ...

但是box建立后是不能够读入read_data的啊。
3楼2014-06-26 08:30:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liuchenhan

新虫 (小有名气)

引用回帖:
3楼: Originally posted by liuchenhan at 2014-06-26 08:30:16
但是box建立后是不能够读入read_data的啊。...

已经解决了,直接在data file里面说明有13中原子类型,但里面只有前12中原子的坐标,第13种用create_atoms命令创建就行了。
4楼2014-06-26 09:38:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 2026年叶企孙基金 +4 bud_bud 2026-08-27 7/350 2026-08-29 07:23 by foolishmani
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 9/450 2026-08-28 11:06 by maolC
[基金申请] 怎么查啊 +6 huang1991js 2026-08-26 6/300 2026-08-28 08:42 by winsaint
[基金申请] 哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识 +5 yuleib84 2026-08-26 6/300 2026-08-28 00:02 by yudaoqian88
[基金申请] 基金未中,这种答复是模板吗? +5 zhaosm1982 2026-08-27 6/300 2026-08-27 16:00 by lfy8008
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[基金申请] 怎么看青基中了没有啊 +5 叶九微 2026-08-26 5/250 2026-08-27 10:35 by l_zh2008
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
信息提示
请填处理意见