24小时热门版块排行榜    

查看: 1584  |  回复: 3

charliecaili

铁虫 (初入文坛)

[求助] 石墨烯拉伸模拟 已有1人参与

本人做石墨烯拉伸模拟,想固定石墨烯板Y轴两端各2个单位长度,但是模拟结果出来却没有对两端固定,请大神帮我看看问题出在哪里,跪谢!!
## INITIALIZATION ######################
units metal
dimension 3
boundary f p f
atom_style atomic
newton on

##  ATOM DEFINITION  ######################
lattice  custom 2.4595 a1 1 0 0 a2 0 1.73203 0 a3 0 0 1  
basis 0 0.666666666 0 basis 0.5 0.5 0 basis 0.5 0.16666666 0 & basis 0 0 0

region box block -20 20 -10 10 -50 50
create_box         1 box

region mid1 block -8 8 -8 8 -0.5 0.5
create_atoms        1 region mid1

mass        1  12.010000

##  SETTINGS  ######################
pair_style airebo 3.0
pair_coeff * * potentials/CH.airebo C

region lower block -8 8 -8 -6 -0.5 0.5
region upper block -8 8 6 8 -0.5 0.5
group upper region upper
group lower region lower
group boundary union upper lower
group mobile subtract all boundary

# initial velocities
fix 1 all nvt temp 300 300 0.1
velocity boundary set 0.0 0.0 0.0
fix 2 boundary setforce 0.0 0.0 0.0

min_style cg
minimize 1e-25 1e-25 5000 10000

unfix 1
unfix 2

timestep 0.001
fix 1 all npt temp 300 300 0.05 y 0 0 0.5
thermo 20

compute    myTemp all temp
compute 1 all stress/atom myTemp
compute 2 all pe/atom pair bond
compute 3 all reduce sum c_1[1] c_1[2] c_1[3]

shell mkdir 10.9duxg3
shell cd 10.9duxg3

thermo_style custom step temp pe ke etotal lx ly press pxx

pyy c_3[1] c_3[2] c_3[3]
dump 1 all custom 1000 dump.chiyu.* id type x y z
##  RUNING-RELAXATION  ######################
run 30000

##  RUNNING-DEFORMATION  ######################
unfix 1
undump 1
fix 1 all nvt temp 300 300 0.05
fix 2 all ave/atom 1 1000 1000 c_1[1] c_1[2] c_1[3] c_2 fx

fy fz
dump 1 all custom 1000 dump.new.* id type x y z vx vy vz

c_1[1] c_1[2] c_1[3] &
c_2 f_2[1] f_2[2] f_2[3] f_2[4] f_2[5] f_2[6] f_2[7]

variable srate equal 1.0e10
variable srate1 equal "v_srate / 1.0e12"
fix 3 all deform 1 y erate ${srate1} units box remap x
###################
variable tmp equal "ly"
variable ly0 equal ${tmp}
print "Initial Length, ly0: ${ly0}"

variable strain equal "(ly- v_ly0)/v_ly0"

# Output strain and stress info to file
# for units metal, pressure is in [bars] = 100 [kPa] =

1/10000 [GPa]
# p2 are in GPa
variable p1 equal "v_strain"
variable p2 equal "-pyy/10000"
variable p3 equal "pe"

fix equill all print 500 "${p1} ${p2} ${p3}" file data.1.txt

screen no
run 40000

###########
######################################
# SIMULATION DONE
print "All done"石墨烯拉伸模拟
结果图.png
回复此楼

» 本帖附件资源列表

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

» 收录本帖的淘帖专辑推荐

分子动力学模拟

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

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

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

panbin

木虫 (正式写手)

group mobile subtract all boundary~~~是不是这一句的问题,没固定住组

发自小木虫Android客户端
2楼2015-09-04 16:06:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

charliecaili

铁虫 (初入文坛)

引用回帖:
2楼: Originally posted by panbin at 2015-09-04 16:06:34
group mobile subtract all boundary~~~是不是这一句的问题,没固定住组

你好,这句是要去掉还是修改?去掉后还是没固定住,那应该怎么修改?
我就是我
3楼2015-09-05 08:34:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

panbin

木虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
把那句→_→unfix2去掉试试

发自小木虫Android客户端
4楼2015-09-05 20:11:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 charliecaili 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 277材料科学与工程080500求调剂 +7 自由煎饼果子 2026-03-16 7/350 2026-03-22 22:40 by ACS Nano——
[考研] 298求调剂 +6 上岸6666@ 2026-03-20 6/300 2026-03-22 20:21 by edmund7
[考研] 311求调剂 +6 冬十三 2026-03-18 6/300 2026-03-22 20:18 by edmund7
[考研] 能源材料化学课题组招收硕士研究生8-10名 +5 脱颖而出 2026-03-16 17/850 2026-03-22 15:18 by 脱颖而出
[考研] 318求调剂 +4 plum李子 2026-03-21 7/350 2026-03-22 14:17 by ColorlessPI
[考研] 一志愿070300浙大化学358分,求调剂! +3 酥酥鱼.. 2026-03-21 3/150 2026-03-22 11:31 by 杨杨杨紫
[考研] 材料学硕333求调剂 +3 北道巷 2026-03-18 3/150 2026-03-21 18:17 by 学员8dgXkO
[考研] 302求调剂 +12 呼呼呼。。。。 2026-03-17 12/600 2026-03-21 17:29 by ColorlessPI
[考研] 求调剂 +3 白QF 2026-03-21 3/150 2026-03-21 13:12 by zhukairuo
[考研] 316求调剂 +6 梁茜雯 2026-03-19 6/300 2026-03-21 06:32 by Ecowxq666!
[考研] 一志愿武理材料305分求调剂 +6 想上岸的鲤鱼 2026-03-18 7/350 2026-03-21 01:03 by JourneyLucky
[考研] 271材料工程求调剂 +8 .6lL 2026-03-18 8/400 2026-03-21 00:58 by JourneyLucky
[考研] 一志愿西南交大,求调剂 +5 材化逐梦人 2026-03-18 5/250 2026-03-21 00:26 by JourneyLucky
[考研] 一志愿 西北大学 ,070300化学学硕,总分287,双非一本,求调剂。 +4 晨昏线与星海 2026-03-19 4/200 2026-03-20 22:15 by JourneyLucky
[考研] 一志愿西南交通 专硕 材料355 本科双非 求调剂 +5 西南交通专材355 2026-03-19 5/250 2026-03-20 21:10 by JourneyLucky
[考研] 08工学调剂 +5 用户573181 2026-03-20 5/250 2026-03-20 15:47 by xia_2003
[论文投稿] 申请回稿延期一个月,编辑同意了。但系统上的时间没变,给编辑又写邮件了,没回复 10+3 wangf9518 2026-03-17 4/200 2026-03-19 23:55 by babero
[考研] 材料学硕318求调剂 +5 February_Feb 2026-03-19 5/250 2026-03-19 23:51 by 23Postgrad
[考研] 085600材料与化工求调剂 +6 绪幸与子 2026-03-17 6/300 2026-03-19 13:27 by houyaoxu
[考研] 材料考研调剂 +3 xwt。 2026-03-19 3/150 2026-03-19 11:22 by w沐阳w
信息提示
请填处理意见