24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1106  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 国自然面上和省基金B类撒花 +16 花田半亩~白 2026-04-21 16/800 2026-04-23 03:04 by 魅力紫翼
[考研] 有没有学校收留 +3 蒋昌鹏qtj 2026-04-20 3/150 2026-04-22 20:25 by 学员JpLReM
[考研] 312求调剂 +3 山河似你温柔 2026-04-22 3/150 2026-04-22 20:17 by 学员JpLReM
[考博] 华师大读博 +3 xq83 2026-04-22 5/250 2026-04-22 10:42 by xq83
[教师之家] 又一批高校组建人工智能学院 师资行吗 不是骗人吗 +5 yexuqing 2026-04-19 5/250 2026-04-22 10:01 by easeheart
[论文投稿] 急需审稿人!!! +3 陆小果画大饼 2026-04-21 3/150 2026-04-21 23:54 by jzy_123456
[考博] 申博/考博 +4 啃面包的小书虫 2026-04-17 8/400 2026-04-21 16:26 by 啃面包的小书虫
[考研] 295分求调剂 +6 ?要上岸? 2026-04-17 6/300 2026-04-21 08:18 by Equinoxhua
[考研] 085600材料与化工调剂 5+3 孜孜不倦2002 2026-04-19 6/300 2026-04-20 21:25 by babero
[论文投稿] 有没有接收比较快的sci期刊呀,最好在一个月之内的,研三孩子求毕业 20+4 之护着 2026-04-16 7/350 2026-04-20 15:45 by 豆豆7758
[考研] 337求调剂 +3 jyz04 2026-04-18 3/150 2026-04-20 12:24 by 研可安
[考博] 湖南大学刘巧玲课题组2026年第二批次博士研究生招生信息 +3 南风观火 2026-04-18 5/250 2026-04-20 10:13 by 南风观火
[考研] 294求调剂 +8 淡然654321 2026-04-17 9/450 2026-04-19 19:51 by Equinoxhua
[考研] 304求调剂 +8 castLight 2026-04-16 8/400 2026-04-19 17:14 by 中豫男
[考研] 求调剂 +10 小聂爱学习 2026-04-16 12/600 2026-04-19 16:51 by 中豫男
[考研] 接受任何调剂 +6 也就是栗子 2026-04-17 7/350 2026-04-18 17:20 by 涵竹刘
[考研] 收到复试调剂但是去不了 +8 小蜗牛* 2026-04-16 8/400 2026-04-18 11:15 by zixin2025
[考研] 260求调剂 +4 Zyt1314520.. 2026-04-17 5/250 2026-04-18 08:28 by babysonlkd
[有机交流] 二苯甲酮酸类衍生物 50+3 小白爱主人 2026-04-17 6/300 2026-04-17 18:47 by kf2781974
[考研] 322求调剂 +6 tekuzu 2026-04-17 6/300 2026-04-17 13:48 by Espannnnnol
信息提示
请填处理意见