24小时热门版块排行榜    

查看: 5314  |  回复: 0

honghaier90

新虫 (小有名气)

[求助] lammps里,关于应力应变的问题

我在用lammps做材料的单轴拉伸和压时,遇到以下几个问题:
1,第0步输出的应力不为零,第0步材料未发生变形,为什么会出现应力,按理说应力也应该为零啊。拉压之前,均做过能量最小化,但是还是会出现这种情况,这个该如何处理?
2,对于同种材料分别做拉伸压缩,在得出应力应变曲线后,通过直线拟合,发现两条直线斜率不相等,也就是弹性模量不相等,这是为什么?
以下是我做拉伸时的in文件,恳请大家给于指点。
dimension            2                                                                           
boundary            s s p                                                                       
                                                                                          
atom_style            angle                                                                     
neighbor            0.3 bin                                                                     
neigh_modify            every 10 delay 0 check yes                                             
lattice                    hex    0.91648                                                              
                                                                                          
read_data           data.new1                                                            
                                                                                          
pair_style            lj/cut  1.5                                                               
pair_coeff            1   1   1.0    1.0  1.5                                                   
                                                                                          
bond_style      harmonic                                                                  
bond_coeff     1   100   1.12246                                                         
                                                                                          
angle_style    harmonic                                                                  
angle_coeff    1   1   60                                                                 
                                                                                          
region              left   block   INF   10     INF  INF  INF  INF   units lattice        
region              right  block   190   INF   INF  INF  INF  INF   units lattice         
group               left   region  left                                                   
group               right  region  right                                                  
group               boundary  union  left right                                          
group               mobile  subtract  all boundary                                       
                                                                                          
thermo_style  custom   lx                                                                 
                                                                                          
#min_style       sd                                                                       
#minimize        1.0e-12 1.0e-12 10000 10000                                             
                                                                                          
variable        tmp  equal  lx                                                            
variable        L    equal  ${tmp}                                                        
print           "initial  length , L:${L}"                                                
#deformation                                                                              
reset_timestep  0                                                                        
velocity        left set 0.0 NULL 0.0                                                     
compute                new mobile temp                                                           
variable        pressx equal c_p[1]                                                      
compute         s all stress/atom                                                         
compute         strex all reduce sum c_s[1]                                               
variable        x equal c_strex/vol                                                      
variable        strain1 equal "(lx - 224.6726)/224.6726"                                 
#variable        strain2 equal "(-ly + 69.107548)/69.107548"                              
thermo_style    custom step temp vol lx ly lz pxx v_x c_strex v_strain1                  
thermo_modify          temp new                                                                  
                                                                                          
velocity        mobile create 0.01 887723 temp new                                             
velocity        right  set    0.3 0.0 0.0                                                      
velocity        mobile ramp   vx 0.0 0.3 x 10 190 sum yes                                       
                                                                                          
                                                                                          
                                                                                          
fix                1 all nve                                                                           
fix                2  boundary setforce   0.0 NULL 0.0                                                
fix   3 mobile temp/rescale   100  0  0.05  0.002  0.1                                    
                                                                                          
timestep        0.001                                                                           
thermo                100                                                                             
                                                                                          
dump                1 all atom 100 dump.pull1.lammpstrj                                               
run                80000
回复此楼
优秀是一种习惯!
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 honghaier90 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 LIbGuocjEEYw 2026-08-26 3/150 2026-08-27 00:09 by Ie9AyIAvGbvs
[基金申请] 国自然面上复盘~欢迎讨论 +4 晴天加油 2026-08-26 5/250 2026-08-26 21:27 by 木风9012
[基金申请] 2026年的国家社科基金项目通讯评审的新规则与新动向、新挑战 +7 process2012 2026-08-23 10/500 2026-08-26 19:23 by hmhminy
[基金申请] 范进中举一文的中心思想 +9 炎黄贵胄 2026-08-22 10/500 2026-08-26 15:40 by semaglutide
[基金申请] 2026国自然函评费到账 +22 羊腰板 2026-08-21 25/1250 2026-08-26 15:00 by zuocuiping
[基金申请] 只有每年这种时候来逛逛小木虫 +26 yaoyewhu2008 2026-08-20 28/1400 2026-08-26 13:49 by zzuzxg
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 国际合作可查了,中了面上 +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 怎么看青基中了没有啊 +4 叶九微 2026-08-26 4/200 2026-08-26 10:52 by xiacongxu
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 明天应该可查了!? +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +17 医学老男孩 2026-08-20 22/1100 2026-08-25 15:36 by 医学老男孩
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
[基金申请] 我面上完蛋了 +13 且听虎啸 2026-08-20 14/700 2026-08-25 09:10 by mrkang
[基金申请] 让我中一个面上吧! +13 大萍1987 2026-08-20 16/800 2026-08-24 10:23 by 太傻了
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] 应该是下周三26日公布了吧? +4 哈哈蛤? 2026-08-21 4/200 2026-08-21 10:58 by Vivilian
[基金申请] 基金啊基金 +4 longfie172 2026-08-20 4/200 2026-08-21 08:58 by mark mao
信息提示
请填处理意见