24小时热门版块排行榜    

查看: 2347  |  回复: 1

山涧清泉HC

新虫 (初入文坛)

[求助] BN如何建模

如何用lammps建立六方结构的氮化硼(h-BN)的模型?顺便帮忙看一下我这样建模的问题。附件是h-BN的晶体结构。
# ------------------------ INITIALIZATION ----------------------------
units                 metal#单位?
dimension        3
boundary        p        p        p
atom_style        atomic

#neighbor      2.0 bin
#neigh_modify  one 5
lattice       hcp 2.5



# ----------------------- ATOM DEFINITION ----------------------------
lattice custom 2.5 a1 0.23 0.0 0.0 a2 0.0 0.39 0.0 a3 0.0 0.0 0.38  &
             basis 0.5 0.0 0.0 basis 0.0 0.5 0.0 basis 0.5 0.0 0.5  &
             basis 0.0 0.5 0.5
region                whole block 0 5 0 5 0 5

create_box        2 whole
create_atoms  2 box basis 1 1 basis 2 2 basis 3 1 basis 4 2

# ------------------------ FORCE FIELDS ------------------------------
# Tersoff Potentials

pair_style    tersoff
pair_coeff    * * BNC.tersoff   B   N
mass         1 10
mass         2 14
######################################
write_data data.BN
# EQUILIBRATION
reset_timestep        0
timestep 0.001
velocity all create 300 12345 mom yes rot no
fix 1 all npt temp 300 300 1 iso 0 0 1 drag 1

# Use cfg for Ovito
#dump 1 all custom 10 dump.comp.* id type xs ys zs c_csym c_eng c_strs[1]&
      c_strs[2] c_strs[3]
#dump_modify 1 element B  N

# Set thermo output
thermo 1000
thermo_style custom step lx ly lz press pxx pyy pzz pe temp

# Run for at least 10 picosecond (assuming 1 fs timestep)
run 20000
unfix 1

# Store final cell length for strain calculations
variable tmp equal "lx"
variable L0 equal ${tmp}
print "Initial Length, L0: ${L0}"

######################################
# SIMULATION DONE
print "All done"

BN如何建模
75X]CK@5]Y8QCUUYZ)W@KBO.png
回复此楼

» 猜你喜欢

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

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

山涧清泉HC

新虫 (初入文坛)

嗯,对了,这个应该是hex
2楼2015-03-31 10:06:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 山涧清泉HC 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 听说今天filecode变了 +20 布布和一二 2026-08-06 39/1950 2026-08-07 08:50 by wlwhappy
[基金申请] 固定端突然变了,今天 +4 archvillain 2026-08-06 8/400 2026-08-07 08:06 by 带你看大海
[基金申请] filecode +11 等待解的谜 2026-08-06 15/750 2026-08-07 07:51 by wittywong
[基金申请] 基金中了 +8 laoda193707 2026-08-06 8/400 2026-08-07 07:37 by emeraldine
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 6/300 2026-08-06 20:19 by 苏知砚
[有机交流] 一个有机合成实验室都需要哪些设备? 50+3 kf2781974 2026-07-31 12/600 2026-08-06 15:11 by eddyin
[基金申请] 求各位大神看下 100+6 hpkpkpkp 2026-08-05 33/1650 2026-08-06 14:49 by zhiyanjiang
[教师之家] 咨询面上基金 +4 李长云 2026-07-31 7/350 2026-08-06 11:20 by 李长云
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇! +22 低垂的野花 2026-07-31 30/1500 2026-08-05 18:03 by 低垂的野花
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 4/200 2026-08-05 09:59 by lfy8008
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
[论文投稿] 十年后又回来了,论文投稿求助 +3 哈哈114477 2026-08-01 3/150 2026-08-04 15:40 by tegsgjy20
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 娱乐 +4 Tide man 2026-08-03 4/200 2026-08-04 11:51 by wgch518
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见