24小时热门版块排行榜    

查看: 713  |  回复: 0

Han19910102

银虫 (初入文坛)

[求助] stress------strain 曲线

做stress------strain 曲线  compute      s all stress/atom这一步出错,求大神们给改一下



units                metal
boundary           p s p
atom_style         atomic
lattice               fcc 3.61 orient x 1 0 0 orient y 0 1 1 orient z 0 -1 1  origin 0.5 0 0

region                box block 0 10 0 10 0 5
create_box         3 box
create_atoms     1 box
pair_style        eam
pair_coeff        * * Cu_u3.eam
neighbor         0.3 bin
neigh_modify      every 5  delay 0  check yes

region                lower block INF INF INF 0.9 INF INF

region                upper block INF INF INF INF 8.9 INF
group                lower region lower
group                upper region upper

group                boundary union lower upper

group                mobile subtract all boundary
set                group lower type 2
set                group upper type 3
velocity        lower set 0.0 0.0 0.0
compute                new3d mobile temp
compute                new2d mobile temp/partial 1 0 1
compute         cna   all    cna/atom 3.0
compute      s all stress/atom
compute      stressx all reduce sum c_stress
compute      stressy all reduce sum c_stress
compute      stressz all reduce sum c_stress
# equilibrate
velocity        mobile create 300.0 85277 temp new3d
fix                1 all nve
fix                2 upper setforce 0.0 0.0 0.0
fix                4 lower setforce 0.0 0.0 0.0
fix                3 mobile temp/rescale 10 300.0 300.0 10.0 1.0
fix_modify        3 temp new3d
thermo                50
thermo_modify        temp new3d
timestep        0.001
run                100
variable tmp equal "ly"
variable L0 equal ${tmp}
variable strain equal "(ly-v_L0)/ly"
# shear
velocity        upper set 0 0.1 0
velocity        mobile ramp vy 0 0.1 y 0.9 8.9 sum yes
unfix                3
fix                3 mobile temp/rescale 10 300.0 300.0 10.0 1.0
fix_modify        3 temp new2d
variable p1 equal "v_strain"
variable p2 equal –{pzz/(3.165^3/2)}/10000
variable p3 equal –{pzz/(3.165^3/2)}/10000
variable p4 equal –{pzz/(3.165^3/2)}/10000
variable pm equal "" –{(pxx+pyy+pzz0/(3.165^3/2)}/10000
variable st  equal "step"
fix def1 all print 100 "${st} ${p1} ${pm}  ${p2} ${p3} ${p4}" file tensile_d.txt screen no
dump                1 all cfg 100 tensile_*.cfg mass type xs ys zs c_cna  c_stress c_stress  c_stress
thermo                100
thermo_modify        temp new2d
reset_timestep        0
run                100000
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 Han19910102 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 gy1nBQXYQJqL 2026-08-29 4/200 2026-08-30 01:49 by ZPa0EcMwuECS
[博后之家] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +5 gy1nBQXYQJqL 2026-08-29 6/300 2026-08-30 01:47 by ZPa0EcMwuECS
[博后之家] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +7 ASdOkHsho7FD 2026-08-28 8/400 2026-08-30 01:14 by ZPa0EcMwuECS
[论文投稿] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 ASdOkHsho7FD 2026-08-28 5/250 2026-08-30 01:03 by ZPa0EcMwuECS
[考研] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +5 ASdOkHsho7FD 2026-08-28 7/350 2026-08-30 01:03 by ZPa0EcMwuECS
[基金申请] 投票:  有多少人是今天查系统知道结果的? +16 爱看书的可乐 2026-08-26 18/900 2026-08-30 00:59 by winsaint
[找工作] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +5 ASdOkHsho7FD 2026-08-28 7/350 2026-08-30 00:52 by ZPa0EcMwuECS
[考研] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +7 ASdOkHsho7FD 2026-08-28 10/500 2026-08-30 00:41 by ZPa0EcMwuECS
[基金申请] 中青基了要发朋友圈吗? +4 349506619 2026-08-28 4/200 2026-08-29 22:41 by alongwaytogo
[考研] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 G6APbkg8SA6w 2026-08-29 4/200 2026-08-29 22:27 by ZPa0EcMwuECS
[基金申请] 国自然面上复盘~欢迎讨论 (金币+15) +15 晴天加油 2026-08-26 16/800 2026-08-29 18:28 by symmetry
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +12 Kittylucky 2026-08-27 13/650 2026-08-29 00:04 by superceng
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 9/450 2026-08-28 11:06 by maolC
[基金申请] 面上合作单位盖章 +5 ssyjh 2026-08-27 5/250 2026-08-27 20:50 by gdfollow
[基金申请] 申请删除本帖 +6 lyz123lyz 2026-08-27 7/350 2026-08-27 17:31 by 宁静致远sy
[基金申请] 基金未中,这种答复是模板吗? +5 zhaosm1982 2026-08-27 6/300 2026-08-27 16:00 by lfy8008
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
信息提示
请填处理意见