24小时热门版块排行榜    

CyRhmU.jpeg
查看: 1357  |  回复: 3

king5543691

新虫 (初入文坛)

[求助] 如何解決SW勢能出錯已有1人参与

大家好

我想寫一則關於黑磷的SW勢能
可是出現了一個問題

以下是我的腳本
#initialization

units metal
dimension 3
boundary f f s
atom_style atomic

log lookme.log

#setting parameters
variable temperature equal 300
variable strainRate equal 0.5e8
variable timestp equal 0.002

#atom definition

read_data P.data

mass * 30.974

region top block INF INF  67 73 INF INF units box
region down block INF INF 0 5 INF INF units box

group top region top
group down region down
group fixdlayer union top down
group mobile subtract all fixdlayer

#potential

pair_style sw
pair_coeff        * * P.sw Pt Pb

以下附上我寫的P.sw
#         eps  sigma  a    lambda gamma costheta0 A    B    p q tol
Pt Pt Pt 1.000 0.809 3.449 35.701 1.000 -0.111 3.626 33.371 4 0 0.0
Pb Pb Pb 1.000 0.809 3.449 35.701 1.000 -0.111 3.626 33.371 4 0 0.0
Pt Pt Pb 1.000 0.809 3.449 32.006 1.000 -0.210 0.000 33.371 4 0 0.0
Pb Pb Pt 1.000 0.809 3.449 32.006 1.000 -0.210 0.000 33.371 4 0 0.0

最後是我排的黑磷模型

希望大家多多批評指教
回复此楼

» 本帖附件资源列表

  • 欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
    本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com
  • 附件 1 : P.data
  • 2018-09-29 20:45:46, 22.4 K

» 猜你喜欢

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

brucefan

专家顾问 (著名写手)

【答案】应助回帖

★ ★ ★ ★ ★
感谢参与,应助指数 +1
king5543691: 金币+5, ★★★★★最佳答案 2018-10-02 10:52:24
以下附上我寫的P.sw
#         eps  sigma  a    lambda gamma costheta0 A    B    p q tol
Pt Pt Pt 1.000 0.809 3.449 35.701 1.000 -0.111 3.626 33.371 4 0 0.0
Pb Pb Pb 1.000 0.809 3.449 35.701 1.000 -0.111 3.626 33.371 4 0 0.0
Pt Pt Pb 1.000 0.809 3.449 32.006 1.000 -0.210 0.000 33.371 4 0 0.0
Pb Pb Pt 1.000 0.809 3.449 32.006 1.000 -0.210 0.000 33.371 4 0 0.0

你需要再写四行参数,分别对应如下组合:
Pt Pb Pt
Pt Pb Pb
Pb Pt Pb
Pb Pt Pt
2楼2018-09-30 06:06:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

king5543691

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by brucefan at 2018-09-30 06:06:54
以下附上我寫的P.sw
#         eps  sigma  a    lambda gamma costheta0 A    B    p q tol
Pt Pt Pt 1.000 0.809 3.449 35.701 1.000 -0.111 3.626 33.371 4 0 0.0
Pb Pb Pb 1.000 0.809 3.449 35.701 1.000  ...

可是他還是出錯耶
ERROR: Incorrect args for pair coefficients (../pair_sw.cpp:238)
3楼2018-09-30 15:19:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yichangli

新虫 (初入文坛)

引用回帖:
3楼: Originally posted by king5543691 at 2018-09-30 15:19:11
可是他還是出錯耶
ERROR: Incorrect args for pair coefficients (../pair_sw.cpp:238)...

SW势函数 需要八组数据,你需要把后面四组用不上的数据也填写完整。 比如 全部填写成 0 就行

发自小木虫IOS客户端
工科研究生,工程热物理
4楼2018-10-04 00:32:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 king5543691 的主题更新
信息提示
请填处理意见