24小时热门版块排行榜    

查看: 588  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 0854 考研调剂 招生了!AI 方向 +4 pk3725069 2026-03-19 16/800 2026-03-23 23:09 by 汪!?!
[考研] 303求调剂 +4 元夕元 2026-03-20 4/200 2026-03-23 19:00 by macy2011
[考研] 上海电力大学材料防护与新材料重点实验室招收调剂研究生(材料、化学、电化学,环境) +3 我爱学电池 2026-03-23 3/150 2026-03-23 17:16 by AZMK
[考研] 一志愿南京理工大学085701资源与环境302分求调剂 +5 葵梓卫队 2026-03-18 7/350 2026-03-23 16:26 by lingjue
[考研] 北科281学硕材料求调剂 +8 tcxiaoxx 2026-03-20 9/450 2026-03-23 12:16 by tcxiaoxx
[考研] 070300,一志愿北航320求调剂 +3 Jerry0216 2026-03-22 5/250 2026-03-23 09:16 by 。。堂堂
[考研] 317求调剂 +12 申子申申 2026-03-19 18/900 2026-03-22 22:23 by luoyongfeng
[考研] 298求调剂一志愿211 +3 上岸6666@ 2026-03-20 3/150 2026-03-22 15:50 by ColorlessPI
[基金申请] 山东省面上项目限额评审 +4 石瑞0426 2026-03-19 4/200 2026-03-22 08:50 by Wei_ren
[考研] 广西大学材料导师推荐 +3 夏夏夏小正 2026-03-17 5/250 2026-03-21 22:20 by 金昊ML
[考研] 材料与化工(0856)304求B区调剂 +3 邱gl 2026-03-20 7/350 2026-03-21 19:05 by 15709483992
[考研] 材料工程专硕 348分求调剂 +3 冬辞. 2026-03-17 5/250 2026-03-21 18:47 by 学员8dgXkO
[考研] 297求调剂 +3 喜欢还是不甘心 2026-03-20 3/150 2026-03-21 18:33 by 学员8dgXkO
[考研] 材料学学硕080502 337求调剂-一志愿华中科技大学 +4 顺顺顺mr 2026-03-18 5/250 2026-03-21 10:22 by luoyongfeng
[考研] 材料工程(专)一志愿985 初试335求调剂 +3 hiloiy 2026-03-17 4/200 2026-03-21 03:04 by JourneyLucky
[考研] 化学求调剂 +4 临泽境llllll 2026-03-17 5/250 2026-03-21 02:23 by JourneyLucky
[考研] 一志愿武理材料305分求调剂 +6 想上岸的鲤鱼 2026-03-18 7/350 2026-03-21 01:03 by JourneyLucky
[考研] 一志愿西南交通 专硕 材料355 本科双非 求调剂 +5 西南交通专材355 2026-03-19 5/250 2026-03-20 21:10 by JourneyLucky
[考研] 材料学硕318求调剂 +5 February_Feb 2026-03-19 5/250 2026-03-19 23:51 by 23Postgrad
[考研] 0703化学调剂 +4 18889395102 2026-03-18 4/200 2026-03-19 16:13 by 30660438
信息提示
请填处理意见