24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 6824  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 285求调剂 +15 哦呦呼o 2026-04-04 17/850 2026-04-06 23:02 by chenzhimin
[考研] 287求调剂 +3 通信学硕081000 2026-04-03 4/200 2026-04-06 21:03 by going home
[考研] 一志愿武理车辆专硕总分 281 求调剂 +3 上岸研究生. 2026-04-02 3/150 2026-04-06 16:46 by 小月儿呀呀
[考研] 生物学求调剂 +5 15064154688 2026-04-03 5/250 2026-04-06 11:56 by lijunpoly
[考研] 292求调剂 +3 lilllllxccc 2026-04-05 4/200 2026-04-06 10:39 by 蓝云思雨
[考研] 085600,320分求调剂 +16 大馋小子 2026-04-04 17/850 2026-04-06 07:58 by MOF_Catal
[考研] 生物与医药调剂 +4 十七sa 2026-04-05 4/200 2026-04-05 20:05 by lys0704
[考研] 计算机11408,286分求调剂 +7 木子念晞 2026-04-05 7/350 2026-04-05 19:02 by chy09050039
[考研] 材料专硕(0856) 339分求调剂 +10 哈哈哈鹅哈哈哈 2026-04-04 10/500 2026-04-05 18:51 by 蓝云思雨
[考研] 考研调剂生寻找导师 +3 顾瞻考研啊 2026-04-05 3/150 2026-04-05 18:18 by 啵啵啵0119
[考研] 材料0856 英一数二 323 求调剂 +14 袁sy 2026-04-01 14/700 2026-04-05 18:18 by cql1109
[考研] 调剂 +3 好好读书。 2026-04-02 3/150 2026-04-05 13:02 by arrow8852
[考研] 一志愿华南师范361分,化学求调剂 +7 Nicole88888 2026-04-01 7/350 2026-04-04 18:28 by macy2011
[考研] 一志愿北交大材料工程总分358 +6 cs0106 2026-04-03 6/300 2026-04-04 11:20 by w_xuqing
[考研] 材料295 +13 小英11 2026-04-03 14/700 2026-04-04 09:02 by 来看流星雨10
[考研] 22408 266求调剂 +3 masss11222 2026-04-02 3/150 2026-04-02 18:11 by 笔落锦州
[考研] 283求调剂 +3 jiouuu 2026-04-02 4/200 2026-04-02 14:08 by 哒哒哒呱呱呱
[考研] 261求B区调剂 +5 明仔· 2026-04-01 7/350 2026-04-02 11:17 by 邹尉尉
[考研] 085410 一志愿211 22408分数359求调剂 +3 123456789qw 2026-03-31 4/200 2026-04-02 00:06 by 义文wang
[考研] 349求调剂 +6 吃的不少 2026-04-01 6/300 2026-04-01 17:55 by JYD2011
信息提示
请填处理意见