24小时热门版块排行榜    

查看: 1069  |  回复: 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的回帖

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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 269专硕求调剂 +6 金恩贝 2026-03-21 6/300 2026-03-22 14:31 by ColorlessPI
[考研] 求调剂 +5 Zhangbod 2026-03-21 7/350 2026-03-22 13:13 by Zhangbod
[考研] 285求调剂 +6 ytter 2026-03-22 6/300 2026-03-22 12:09 by 星空星月
[考研] 085600材料与化工306 +4 z1z2z3879 2026-03-21 4/200 2026-03-21 23:44 by ms629
[考研] 材料求调剂 +5 @taotao 2026-03-21 5/250 2026-03-21 20:55 by lbsjt
[考研] 材料学硕333求调剂 +3 北道巷 2026-03-18 3/150 2026-03-21 18:17 by 学员8dgXkO
[考研] 求助 +5 梦里的无言 2026-03-21 6/300 2026-03-21 17:51 by 学员8dgXkO
[考研] 311求调剂 +3 勇敢的小吴 2026-03-20 3/150 2026-03-21 17:40 by ColorlessPI
[考研] 296求调剂 +4 www_q 2026-03-20 4/200 2026-03-21 17:26 by 学员8dgXkO
[考研] 一志愿山大07化学 332分 四六级已过 本科山东双非 求调剂! +3 不想理你 2026-03-16 3/150 2026-03-21 03:59 by JourneyLucky
[考研] 二本跨考郑大材料306英一数二 +3 z1z2z3879 2026-03-17 3/150 2026-03-21 02:29 by JourneyLucky
[考研] 308求调剂 +3 阿姐阿姐家啊 2026-03-18 3/150 2026-03-20 23:24 by JourneyLucky
[考研] 工科材料085601 279求调剂 +7 困于星晨 2026-03-17 9/450 2026-03-20 17:38 by 无懈可击111
[考研] 生物学调剂招人!!! +3 山海天岚 2026-03-17 4/200 2026-03-19 21:34 by 怎么释怀
[考博] 申博26年 +3 八6八68 2026-03-19 3/150 2026-03-19 19:43 by nxgogo
[考研] 材料工程专硕调剂 +5 204818@lcx 2026-03-17 6/300 2026-03-18 22:55 by 204818@lcx
[考研] 308求调剂 +4 是Lupa啊 2026-03-16 4/200 2026-03-17 17:12 by ruiyingmiao
[考研] 一志愿南京大学,080500材料科学与工程,调剂 +4 Jy? 2026-03-16 4/200 2026-03-17 11:02 by gaoqiong
[考研] 283求调剂 +3 听风就是雨; 2026-03-16 3/150 2026-03-17 07:41 by 热情沙漠
[考研] 中科院材料273求调剂 +4 yzydy 2026-03-15 4/200 2026-03-16 15:59 by Gaodh_82
信息提示
请填处理意见