24小时热门版块排行榜    

查看: 1168  |  回复: 6

Myprayert

木虫 (正式写手)

[求助] 各位大神看看这个脚本哪里错了,十分感谢 已有2人参与

######################################
# Input file for dislocation nucleation in single crystal Al
# Mark Tschopp, July 2010
# lmp_exe < Al_SC_100.in
######################################

######################################
# INITIALIZATION
units                 metal
dimension                3
boundary                p        p        p
atom_style                atomic

######################################
# ATOM BUILD
lattice                fcc 4.05
region                whole block 0 10 0 10 0 10
create_box                1 whole

region                sc block INF INF INF INF INF INF units box
lattice                 fcc 4.05 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
create_atoms        1 region sc

variable natoms equal "count(all)"
print "# of atoms are: ${natoms}"

######################################
# INTERATOMIC POTENTIAL
pair_style        eam/alloy
pair_coeff        * * Al99.eam.alloy Al

# Define computes required
compute csym all centro/atom

######################################
# EQUILIBRATION
reset_timestep        0
timestep 0.001
velocity all create 300 12345 mom yes rot no
fix 1 all npt 300 300 1 xyz 0 0 1 drag 1

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

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

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

######################################
# DEFORMATION
reset_timestep        0

fix                1 all npt 300 300 1 aniso NULL NULL 0 0 0 0 1 drag 1
variable srate equal 1.0e9
variable srate1 equal "v_srate / 1.0e12"
fix                2 all deform 1 x erate ${srate1} units box remap x

# Output strain and stress info to file
# for units metal, pressure is in [bars] = 100 [kPa] = 1/10000 [GPa]
# p2, p3, p4 are in GPa
variable strain equal "(lx - v_L0)/v_L0"
variable p1 equal "v_strain"
variable p2 equal "-pxx/10000"
variable p3 equal "-pyy/10000"
variable p4 equal "-pzz/10000"
fix def1 all print 100 "${p1} ${p2} ${p3} ${p4}" file Al_SC_100.def1.txt screen no

# Dump coordinates to file (for void size calculations)
dump                 1 all custom 2500 dump.* x y z c_csym

# Display thermo
thermo         100
thermo_style        custom step v_strain temp v_p2 v_p3 v_p4 ke pe press

run                150000

######################################
# SIMULATION DONE
print "All done"
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

cl1994861

金虫 (小有名气)

【答案】应助回帖

★ ★ ★
感谢参与,应助指数 +1
Myprayert: 金币+1 2017-11-30 19:56:04
Myprayert: 金币+2 2017-11-30 22:11:32
你好歹说一下运行后出现的error提示啊,这样光给个脚本,大家怎么找毛病,难道还一句句读你的程序?
2楼2017-11-29 17:32:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Myprayert

木虫 (正式写手)

引用回帖:
2楼: Originally posted by cl1994861 at 2017-11-29 17:32:00
你好歹说一下运行后出现的error提示啊,这样光给个脚本,大家怎么找毛病,难道还一句句读你的程序?

不好意思,运行过程我已经关了,只是知道fix                1 all npt 300 300 1 aniso NULL NULL 0 0 0 0 1 drag 1   程序就运行到这里,说错了。
3楼2017-11-29 19:26:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jluchemlib

铁杆木虫 (正式写手)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
Myprayert: 金币+2 2017-11-30 19:55:39
引用回帖:
3楼: Originally posted by Myprayert at 2017-11-29 19:26:32
不好意思,运行过程我已经关了,只是知道fix                1 all npt 300 300 1 aniso NULL NULL 0 0 0 0 1 drag 1   程序就运行到这里,说错了。...

300 300 后面的1改大一些试试,比如500
4楼2017-11-30 08:45:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

cl1994861

金虫 (小有名气)

引用回帖:
3楼: Originally posted by Myprayert at 2017-11-29 19:26:32
不好意思,运行过程我已经关了,只是知道fix                1 all npt 300 300 1 aniso NULL NULL 0 0 0 0 1 drag 1   程序就运行到这里,说错了。...

300后面的1是不是大了(一般是100个timestep,我看你timestep是0.001,你确定取这么小?),aniso后面格式错了,建议自己去官网详细看fix npt 这个命令吧
5楼2017-11-30 09:07:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Myprayert

木虫 (正式写手)

引用回帖:
4楼: Originally posted by jluchemlib at 2017-11-30 08:45:13
300 300 后面的1改大一些试试,比如500...

好的   谢谢
6楼2017-11-30 19:49:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Myprayert

木虫 (正式写手)

引用回帖:
5楼: Originally posted by cl1994861 at 2017-11-30 09:07:18
300后面的1是不是大了(一般是100个timestep,我看你timestep是0.001,你确定取这么小?),aniso后面格式错了,建议自己去官网详细看fix npt 这个命令吧...

好的   我再看看  谢谢
7楼2017-11-30 19:51:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 Myprayert 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 2026国自然函评费到账 +21 羊腰板 2026-08-21 24/1200 2026-08-26 07:20 by finnigan
[考研] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 7K1CJE38xLG4 2026-08-25 5/250 2026-08-26 07:17 by cNXvBfCpiZOM
[考博] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 Qj98d49dHFb9 2026-08-25 5/250 2026-08-26 04:57 by cNXvBfCpiZOM
[论文投稿] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 7K1CJE38xLG4 2026-08-25 4/200 2026-08-26 02:04 by cNXvBfCpiZOM
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 放榜前的不淡定 20+4 snowwithsea 2026-08-19 19/950 2026-08-25 17:57 by chick875
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +17 医学老男孩 2026-08-20 22/1100 2026-08-25 15:36 by 医学老男孩
[基金申请] 人气不行了 +11 fansofjerry 2026-08-21 11/550 2026-08-25 11:04 by 孤独的英雄6
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +3 苏东坡二世 2026-08-23 3/150 2026-08-25 10:35 by shisan1313
[基金申请] 今天基金会出结果吗?20260819 +17 kkkl_v 2026-08-19 18/900 2026-08-25 09:41 by windflowerwy
[基金申请] 只有每年这种时候来逛逛小木虫 +25 yaoyewhu2008 2026-08-20 27/1350 2026-08-25 08:01 by Equinoxhua
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[教师之家] 跳槽后在研项目怎么办? +5 简单化xn 2026-08-22 10/500 2026-08-23 12:38 by 简单化xn
[基金申请] 今天放榜吗? +15 布布和一二 2026-08-19 16/800 2026-08-23 09:55 by 张春生
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 应该是下周三26日公布了吧? +4 哈哈蛤? 2026-08-21 4/200 2026-08-21 10:58 by Vivilian
[基金申请] 今天放榜没戏了吧 +9 yuleib84 2026-08-19 11/550 2026-08-21 10:06 by gltch
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
信息提示
请填处理意见