24小时热门版块排行榜    

查看: 614  |  回复: 2

失火的天堂

新虫 (小有名气)

[交流] 输出原子应力疑问 已有1人参与

输出原子应力:compute 1 all stress/atom NULL,然后需要对计算的量除以原子体积,请问dump怎么输出,试了一下不能用v_这种模式
回复此楼

» 猜你喜欢

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

shiling1813

新虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
好像dump命令可以,这是我写的一段命令,供参考。
compute            spb all stress/atom thermo_temp

compute     ppptem all reduce sum c_spb[1] c_spb[2] c_spb[3] c_spb[4] c_spb[5] c_spb[6]
variable    d equal (c_ppptem[1])

thermo_style custom step temp pe etotal v_d vol ylo yhi

fix fp1  all print 10000 "$d" file pxxtem.dat

dump mydump2        all custom     10000 noreallrelaxstressalltem.txt type x y z c_spb[1] c_spb[2] c_spb[3] c_spb[4] c_spb[5] c_spb[6]
dump            all2 all custom 10000 zuobiaotem.* type x y z c_spb[1] c_spb[2] c_spb[3] c_spb[4] c_spb[5] c_spb[6]
2楼2017-09-26 10:24:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

失火的天堂

新虫 (小有名气)

引用回帖:
2楼: Originally posted by shiling1813 at 2017-09-26 10:24:16
好像dump命令可以,这是我写的一段命令,供参考。
compute            spb all stress/atom thermo_temp

compute     ppptem all reduce sum c_spb c_spb c_spb c_spb c_spb c_spb
variable    d equal (c_ppptem)

...

已解决,我要的是每个原子的应力,不过你输出的c_spb[1]之类的还需要除原子体积才是每个原子的应力,应该是variable 1 atom c_1[1]/(v_v*10000)
3楼2017-10-02 09:52:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 失火的天堂 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见