24小时热门版块排行榜    

查看: 2695  |  回复: 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的回帖

liuchenhan

新虫 (小有名气)

引用回帖:
6楼: Originally posted by cooper小小 at 2014-12-03 15:23:13
学习了 谢谢楼主

嗯,共同进步嘛。
9楼2014-12-12 08:37:42
已阅   回复此楼   关注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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 人气不行了 +6 fansofjerry 2026-08-21 6/300 2026-08-21 13:47 by 撸猫猫
[基金申请] 感觉是下周放榜了 +7 angus9576 2026-08-17 12/600 2026-08-21 13:38 by weiyin
[基金申请] 看来今天不会放榜了? +5 chengyan1220 2026-08-21 5/250 2026-08-21 12:34 by gltch
[基金申请] 我面上完蛋了 +7 且听虎啸 2026-08-20 8/400 2026-08-21 12:31 by 酷酷墨镜
[基金申请] 时间戳又变了 +12 wuchongjun 2026-08-20 18/900 2026-08-21 11:53 by wuchongjun
[基金申请] 今天基金会出结果吗?20260819 +15 kkkl_v 2026-08-19 16/800 2026-08-21 11:22 by 365372687
[基金申请] 科研孤儿太难了 +15 我4大白菜 2026-08-20 16/800 2026-08-21 11:07 by yming1319
[论文投稿] 投稿咨询 +5 wwm09 2026-08-17 7/350 2026-08-21 10:11 by 期刊论文帮手
[基金申请] 让我中一个面上吧! +10 大萍1987 2026-08-20 12/600 2026-08-21 09:31 by 020100099
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
[基金申请] 时间戳今天,20号变了 +4 archvillain 2026-08-20 4/200 2026-08-21 08:10 by gatelove
[基金申请] 估计是周四 +3 archvillain 2026-08-18 3/150 2026-08-21 01:48 by jnhyjjm
[基金申请] 时间戳变了,能看出什么问题? +18 基诺咪客 2026-08-17 23/1150 2026-08-20 17:19 by Godzela
[基金申请] filecode,4个jtjc了 +11 ziyangfang 2026-08-19 13/650 2026-08-19 21:28 by aasahr
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] 朋友圈看到的 +6 wangzilk 2026-08-18 8/400 2026-08-19 10:55 by Haru815
[基金申请] 快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。 +6 Tide man 2026-08-14 7/350 2026-08-19 09:56 by ZJTJZ
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
信息提示
请填处理意见