24小时热门版块排行榜    

查看: 6799  |  回复: 4

changmao

新虫 (初入文坛)

[求助] lammps计算弹性模量应力应变 已有1人参与

大家好,我现在在用lammps做弹性模量,在计算的过程中我发现有两个计算应力的,一个是通过 compute stress 另一个是press/v
我做的是y方向的拉伸,那我得应力是直接取stress或者press/v,还是用他们Y方向的分量?我只有10个金币,把我全部的金币都拿出来了,求大家指点,非常感激!我in文件如下
units                metal
boundary           p s p
atom_style         atomic
lattice               bcc 3.165 orient x 1 0 0 orient y 0 1 1 orient z 0 -1 1

region                box block 0 10 0 10 0 5
create_box         3 box
create_atoms     1 box
pair_style        eam/alloy
pair_coeff        * * W_zhou.eam.alloy W

neighbor         0.3 bin
neigh_modify        delay 0 every 1 check yes

region                lower block INF INF INF 0.9 INF INF
region                top block INF INF INF INF 8.9 INF
group                lower region lower
group                top region top
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 stress all stress/atom
compute stressx all reduce sum c_stress[1]
compute stressy all reduce sum c_stress[2]
compute stressz all reduce sum c_stress[3]

# 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[1] c_stress[2]  c_stress[3]
thermo                100
thermo_modify        temp new2d
reset_timestep        0
run                100000
回复此楼

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

分子动力学模拟 拉抻 精华

» 猜你喜欢

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

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

dengc09

禁虫 (正式写手)

本帖内容被屏蔽

2楼2015-06-30 16:32:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

changmao

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by dengc09 at 2015-06-30 16:32:57
感觉所有的stress/atom加起来就是press吧,但是为何楼主的压力要出以这个3.165^3/2?

那个是我弄错了,后来改过来了,直接用pyy就可以了。你也是在做这个吗?
3楼2015-07-01 10:43:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dengc09

禁虫 (正式写手)

本帖内容被屏蔽

4楼2015-07-01 16:46:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

honest199174

铜虫 (初入文坛)


您好。
我想看一下单层石墨烯拉伸的应力云图,是不是用这个就行了:compute stress all stress/atom?
5楼2017-05-10 14:39:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 changmao 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 274求调剂 +5 时间点 2026-03-13 5/250 2026-03-17 07:34 by 热情沙漠
[考研] 302求调剂 +4 小贾同学123 2026-03-15 6/300 2026-03-17 07:06 by laoshidan
[考研] 东南大学364求调剂 +5 JasonYuiui 2026-03-15 5/250 2026-03-16 21:28 by 木瓜膏
[考研] 286求调剂 +3 lemonzzn 2026-03-16 5/250 2026-03-16 20:43 by lemonzzn
[考研] 085600材料与化工 求调剂 +13 enenenhui 2026-03-13 14/700 2026-03-16 15:19 by 了了了了。。
[考研] 309求调剂 +5 花与叶@ 2026-03-10 5/250 2026-03-16 14:13 by 哦哦123
[考研] 0856求调剂 +3 刘梦微 2026-03-15 3/150 2026-03-16 10:00 by houyaoxu
[考博] 欢迎申博同学联系 +3 天道酬勤2026686 2026-03-10 7/350 2026-03-15 19:03 by 天道酬勤2026686
[考研] 288求调剂 +4 奇点0314 2026-03-14 4/200 2026-03-14 23:04 by JourneyLucky
[考研] 材料工程327求调剂 +3 xiaohe12w 2026-03-11 3/150 2026-03-14 20:20 by ms629
[考研] 297一志愿上交085600求调剂 +5 指尖八千里 2026-03-14 5/250 2026-03-14 17:26 by a不易
[考研] 308求调剂 +3 是Lupa啊 2026-03-10 3/150 2026-03-14 00:30 by JourneyLucky
[考研] 279求调剂 +3 Dizzy123@ 2026-03-10 3/150 2026-03-13 23:02 by JourneyLucky
[考研] 329求调剂 +3 miaodesi 2026-03-12 4/200 2026-03-13 20:53 by 18595523086
[考研] 281求调剂 +9 Koxui 2026-03-12 11/550 2026-03-13 20:50 by Koxui
[考研] 【0856】化学工程(085602)313 分,本科学科评估A类院校化学工程与工艺,诚求调剂 +7 小刘快快上岸 2026-03-11 7/350 2026-03-13 16:06 by ruiyingmiao
[考研] 考研调剂 +4 芬达46 2026-03-12 4/200 2026-03-13 16:04 by ruiyingmiao
[考研] 材料专硕274一志愿陕西师范大学求调剂 +4 薛云鹏 2026-03-13 4/200 2026-03-13 10:40 by 学员8dgXkO
[考研] 求调剂 资源与环境 285 +3 未名考生 2026-03-10 3/150 2026-03-13 10:31 by houyaoxu
[考博] 26读博 +4 Rui135246 2026-03-12 10/500 2026-03-13 07:15 by gaobiao
信息提示
请填处理意见