24小时热门版块排行榜    

查看: 670  |  回复: 2

qq948450351

新虫 (正式写手)

[求助] 如何输出单原子应力数据 已有1人参与

原本我是想输出单原子应力数据,所以在dump命令最后加了v_Press,但是无法运行,所以请大神帮我看看哪里有问题??万分感谢!!!!
# tensile testing
boundary      s s p                                
units         metal                             
atom_style    atomic      
                       
# construct [001] [110] [111] lattice orientation
lattice       fcc  4.065
#lattice       fcc  4.065 origin 0 0 0 orient x 1 1 0 orient y -1 1 0 orient z 0 0 1 spacing 1 1 1
#lattice       fcc  4.065 origin 0 0 0 orient x 1 -1 0 orient y 1 1 -2 orient z 1 1 1 spacing 1 1 1
#region        mybox block -1 1 -1 1 -1 1
region        mybox cylinder z 0 0 7 -28 28
create_box    1 mybox
create_atoms  1 region mybox

# potentials
pair_style    eam/alloy
pair_coeff    * * Au.lammps.eam Au

neighbor      1.0 bin                                 
neigh_modify  delay 1 check yes   

timestep      0.001         
variable       N equal step
variable        pote equal pe
variable        T equal temp
variable        V equal vol
variable        Press equal press
variable        Etotal equal etotal
variable        H equal etotal+press*vol*0.625E-6
variable        vol equal volume

# define computes
#compute       myTemp all temp
#compute       disp all displace/atom
compute       pot all pe/atom
compute       ke all ke/atom
compute       s all stress/atom virial
compute       s1 all stress/atom
compute p all reduce sum c_s1[1] c_s1[2] c_s1[3]
variable Press equal -(c_p[1]+c_p[2]+c_p[3])/(3*vol)

thermo_style  custom step temp etotal ke pe lz ly lx press pxx pyy pzz
dump            21 all custom 1000  AuAu*.txt id type x y z  c_pot  c_ke v_Press

min_style sd
minimize 1.0e-6 1.0e-6 1000 1000                          

# initialvelocities
velocity all create 273 887723 dist gaussian units box
thermo      1000                                                      
                                               
fix     1 all nve
fix     2  all temp/berendsen 273 273 1.0
run     20000                                                      

dump           5 all custom 1000  AuAu*.txt id type x y z c_pot  c_ke  v_Press

unfix 1
unfix 2
回复此楼

» 猜你喜欢

已阅   关注TA 给TA发消息 送TA红花 TA的回帖

lx_PICO

铁虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
。。你这里的Press并不是单原子量呀兄弟
2楼2016-06-09 08:29:54
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

guozhijing

银虫 (初入文坛)

引用回帖:
2楼: Originally posted by lx_PICO at 2016-06-09 08:29:54
。。你这里的Press并不是单原子量呀兄弟

请问如果输出了pxx pyy pzz值 ,怎样得到应力应变曲线中的应力值
人生最精彩的不是实现梦想的瞬间,而是坚持梦想的过程
3楼2016-09-18 19:21:24
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 学员TwY3Hb 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 投票:  有多少人是今天查系统知道结果的? +16 爱看书的可乐 2026-08-26 18/900 2026-08-28 05:13 by winsaint
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +9 Kittylucky 2026-08-27 9/450 2026-08-28 01:08 by jurkat.1640
[教师之家] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 XLGfUIdOmEAO 2026-08-27 4/200 2026-08-27 22:26 by 3RAFyYXYSwGS
[基金申请] 基金不中,共勉 +10 eulota 2026-08-26 10/500 2026-08-27 17:23 by lqllinqiaoli
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 2026年的国家社科基金项目通讯评审的新规则与新动向、新挑战 +7 process2012 2026-08-23 10/500 2026-08-26 19:23 by hmhminy
[基金申请] 系统查不到 +10 董八千 2026-08-26 10/500 2026-08-26 16:30 by Equinoxhua
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 能否退出参与的面上项目解除限项 +23 koalala 2026-08-24 26/1300 2026-08-26 14:29 by 宝贝虫子
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 国际合作可查了,中了面上 (EPI+1)(金币+50) +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 项目信息和经费信息在系统里都可以看到了 +6 wittyboy 2026-08-26 14/700 2026-08-26 10:55 by wittyboy
[基金申请] 国合可查了 +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
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 明天应该可查了!? +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 人气不行了 +11 fansofjerry 2026-08-21 11/550 2026-08-25 11:04 by 孤独的英雄6
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
信息提示
请填处理意见