24小时热门版块排行榜    

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

风吹叶123

金虫 (小有名气)

[求助] 【求助】关于LAMMPS建模

各位版主、大神:

   你们好。我想问几个关于LAMMPS建模的基本问题。我知道可能有点简单,但我真的是认真查看过Manual中相关的命令说明之后,仍有一些疑问。我自己想了很久,也问过很多人,但是还是没有解决。

   命令来自一个很基础的LAMMPS例子,该例子的全部命令如下:

# Find minimum energy fcc configuration
# Mark Tschopp, 2010
# ---------- Initialize Simulation ---------------------
clear
units metal
dimension 3
boundary p p p
atom_style atomic
atom_modify map array
# ---------- Create Atoms ---------------------
lattice  fcc 4
region box block 0 1 0 1 0 1 units lattice
create_box 1 box
lattice fcc 4 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1  
create_atoms 1 box
replicate 1 1 1
# ---------- Define Interatomic Potential ---------------------
pair_style eam/alloy
pair_coeff * * Al99.eam.alloy Al
neighbor 2.0 bin
neigh_modify delay 10 check yes

# ---------- Define Settings ---------------------
compute eng all pe/atom
compute eatoms all reduce sum c_eng
# ---------- Run Minimization ---------------------
reset_timestep 0
fix 1 all box/relax iso 0.0 vmax 0.001
thermo 10
thermo_style custom step pe lx ly lz press pxx pyy pzz c_eatoms
min_style cg
minimize 1e-25 1e-25 5000 10000
variable natoms equal "count(all)"
variable teng equal "c_eatoms"
variable length equal "lx"
variable ecoh equal "v_teng/v_natoms"
print "Total energy (eV) = ${teng};"
print "Number of atoms = ${natoms};"
print "Lattice constant (Angstoms) = ${length};"
print "Cohesive energy (eV) = ${ecoh};"
print "All done!"

       我的问题是:

  (1)lattice fcc 4 和 lattice fcc 4 orient x 100 orient y 0 1 0 orient z 0 0 1这两句有什么区别?效果不是一样的么?为什么在lattice fcc 4建立格子之后,还要有lattice fcc 4 orient x 100 orient y 0 1 0 orient z 0 0 1这句?意义何在?

  (2)replicate 1 1 1这句不相当于没有复制么?为什么要写这条命令呢?意义何在?

  (3)如果我只想建模,不进行任何计算,然后想在LAMMPS中导出该模型,最后在VMD中查看该模型。那么在整个代码的最后一行需要添加一个怎样的dump语句?(我查过手册中的dump语句,也试过很多次自己写,但是都不对。)

   跪求各路大神帮助。小弟在此谢过!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

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

风吹叶123

金虫 (小有名气)

引用回帖:
3楼: Originally posted by 天道and酬勤 at 2013-10-16 17:31:04
对于问题1:好好看看手册,说的蛮详细。The other 3 arguments are the crystallographic direction in the lattice that you want to orient along that axis, specified as integers. E.g. "orient x 2 1 0& ...

不好意思呀,才看到你的回复。谢谢了哈。
4楼2013-10-27 09:20:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 10 个回答

风吹叶123

金虫 (小有名气)

自己定,老天保佑不要沉。希望有好心人出现。
2楼2013-10-14 19:15:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

天道and酬勤

铁杆木虫 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
对于问题1:好好看看手册,说的蛮详细。The other 3 arguments are the crystallographic direction in the lattice that you want to orient along that axis, specified as integers. E.g. "orient x 2 1 0" means the x-axis in the simulation box will be the [210] lattice direction. 两条命令有差别;
对于问题2:我觉得可以去掉;
对于问题3:dump 1 all atom 1 dump.lammpstrj  就可以了,其中的1不可以和其他的dump重复;1000为每多少步输出一次,可以自己设定,看手册就知道啥意思了。关键在于文件名后缀为lammpstrj。
PS:我没仔细看你的程序,只是针对你的问题。你可以试下!
游走在学术海洋的小鱼
3楼2013-10-16 17:31:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Ergon

金虫 (著名写手)

楼主您的例子是在哪里找的,刚学lammps想找些例子来学。
认真生活
5楼2015-05-23 16:05:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 什么时候开奖? +4 CrisMessi 2026-08-18 4/200 2026-08-19 00:53 by gatelove
[基金申请] 咱们一起用铁证分析2026国家社科基金中标与否 +7 启萌科技 2026-08-12 27/1350 2026-08-18 21:44 by Noways
[教师之家] 为什么余额宝的年化利率越来越低?主要原因有哪些? +3 瞬息宇宙 2026-08-15 3/150 2026-08-18 21:40 by xiaohuixin
[基金申请] 2027广东省杰青 +3 奶牛小黑 2026-08-15 9/450 2026-08-18 20:09 by 奶牛小黑
[基金申请] 欢迎发来filecode的Mz6后的代码验证其规律 +51 医学老男孩 2026-08-13 110/5500 2026-08-18 19:07 by icerianxia
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[基金申请] 时间戳变了,能看出什么问题? +8 基诺咪客 2026-08-17 11/550 2026-08-18 17:13 by 悠然熊猫
[论文投稿] 投稿咨询 +4 wwm09 2026-08-17 6/300 2026-08-18 15:36 by wwm09
[基金申请] 时间戳又变了8-15 +14 archvillain 2026-08-15 26/1300 2026-08-18 13:37 by phantomgost
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 哪位老哥知道今年的国自然具体哪一天放榜? +13 Ldrop2023 2026-08-13 16/800 2026-08-18 12:25 by 淀粉搬运工
[基金申请] 93BebMhtakh前后11位开头都是大写 +4 且听虎啸 2026-08-17 5/250 2026-08-18 00:49 by 蔡棒棒菂
[基金申请] 感觉是下周放榜了 +6 angus9576 2026-08-17 11/550 2026-08-17 23:57 by angus9576
[基金申请] filecode=后面第一个是大写字母 +8 wangze12014 2026-08-14 10/500 2026-08-17 17:05 by xter9665
[基金申请] 今天系统多次维护,明天很可能放榜! +8 zju2000 2026-08-16 9/450 2026-08-17 12:20 by lmz0216
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
[基金申请] 重要来源:本周末出结果 +10 瞬息宇宙 2026-08-12 10/500 2026-08-13 15:46 by likettle
[基金申请] 不应该看fileCode +7 且听虎啸 2026-08-12 9/450 2026-08-13 14:27 by flydreamws
[基金申请] Filecode 又变了,巨变 +3 WH3796 2026-08-12 4/200 2026-08-13 14:13 by 小木虫6752397
[基金申请] 结合人工智能,周易传统文化,filecode打分制来了,3分以上希望很大。 +3 Tide man 2026-08-12 4/200 2026-08-13 08:35 by ZJTJZ
信息提示
请填处理意见