24小时热门版块排行榜    

查看: 2153  |  回复: 7

s455761311

铁虫 (初入文坛)

[交流] 哪位大佬能帮着看看这个 in文件有哪些问题 已有7人参与

units   metal       # 单位为lammps 中的metel类型
boundary   p p p       # 边界条件
atom_style  atomic      # 原子模式
#special_bonds fene
region      workpiece1  block    0   47.385     0  50   0  45 units box
region      workpiece2  block    47.385 47.91  0 50  0 45 units box
region      workpiece3  block    47.91 150   0 50  0 45 units box
region      workpiece union 3 workpiece1 workpiece2 workpiece3 units box
region      grain cone y 177 22.5  2.5 34.50067  40  60   units box      
region      total  union  4   workpiece1 workpiece2 workpiece3 grain  units box
#建铁素体
create_box 4 total
mass     1   55.84   #Fe原子
mass     2   12.011  # C 原子
mass     3   10.811   #B原子
mass     4   14.007     #N原子   


lattice     custom  2.86 a1 1.0 0.0 0.0 &   
                         a2 0.0 1.0 0.0 &
                         a3 0.0 0.0 1.0 &
                         basis 0.0 0.0 0.0 &
                         basis 0.5 0.5 0.5 &
                         basis 0.0 0.0 0.5 &
                         basis 0.0 0.5 0.5 &
                         basis 0.0 0.5 0.0 &
                         basis 0.5 0.0 0.0 &
                         basis 0.5 0.5 0.0 &
                         basis 0.5 0.0 0.5
create_atoms    1 region   workpiece1   basis 1 1 basis 2 1 basis 3 2 basis 4 2 basis 5 2 basis 6 2 basis 7 2 basis 8 2    units box

#建奥氏体
lattice     custom  3.58 a1 1.0 0.0 0.0 &   
                         a2 0.0 1.0 0.0 &
                         a3 0.0 0.0 1.0 &
                         basis 0.0 0.0 0.0 &
                         basis 0.5 0.5 0.5 &
                         basis 0.0 0.0 0.5 &
                         basis 0.0 0.5 0.5 &
                         basis 0.0 0.5 0.0 &
                         basis 0.5 0.0 0.0 &
                         basis 0.5 0.5 0.0 &
                         basis 0.5 0.0 0.5
create_atoms    1 region   workpiece2   basis 1 1 basis 2 2 basis 3 2 basis 4 1 basis 5 2 basis 6 2 basis 7 1 basis 8 1 units box

#建马氏体
lattice custom   3.018    a1 0.943 0.0 0.0 &  
                         a2 0.0 0.943 0.0 &
                         a3 0.0 0.0 1 &
                         basis 0.0 0.0 0.0 &
                         basis 0.5 0.5 0.5 &
                         basis 0.0 0.0 0.5 &
                         basis 0.0 0.5 0.5 &
                         basis 0.0 0.5 0.0 &
                         basis 0.5 0.0 0.0 &
                         basis 0.5 0.5 0.0 &
                         basis 0.5 0.0 0.5
create_atoms    1 region   workpiece3   basis 1 1 basis 2 1 basis 3 2 basis 4 2 basis 5 2 basis 6 2 basis 7 2 basis 8 2


lattice     diamond  3.615  #CBN砂轮
create_atoms    3 region   grain  basis 1 4 basis 2 4 basis 3 4 basis 4 4 basis 5 3 basis 6 3 basis 7 3 basis 8 3 units box
group grain region grain

pair_style hybrid eam/fs tersoff lj/cut 10.0  lcbop
pair_coeff *  *   eam/fs   Fe-C.eam.fs Fe C NULL NULL #Fe-C
pair_coeff *  *   lcbop    C.lcbop  NULL C NULL NULL  #C-C
#pair_coeff 1  2   lj/cut   0.00759200 3.5 9.7625  #Fe-C
pair_coeff *  *   tersoff  BNC.tersoff  NULL  NULL B N #B-N
#pair_coeff 1  1   lj/cut   0.105 3.85 10 #Fe-Fe
pair_coeff 2  4   lj/cut   0.004068   3.367     #N-C
pair_coeff 2  3   lj/cut   0.003311   3.411     #B-C
pair_coeff 1  3   lj/cut   0.00284  3.4      #Fe-B
pair_coeff 1  4   lj/cut   0.00759200 3.5 9.7625  #Fe-N

neighbor 2 bin
neigh_modify  every 1 delay  5 check yes
#bond_style harmonic
#bond_coeff 1 80.0 2.0


region       1 block  5  150     5     50   2.5  42.5    units box
region       2 block  10  150    10    50     5  40   units box
group 1 region 1
group 2 region 2
group workpiece region workpiece
group   boundary subtract workpiece 1
group   hengwen subtract 1 2

group newton subtract workpiece boundary hengwen
group workpiece union newton hengwen
#min_style  sd        # 能量最小化模式,sd
#minimize     1.0e-20 1.0e-30 20000 20000   # 能量最小化参数,指数越大最小化程度越深
#write_restart restart.txt

compute   3 all pe/atom     # 计算每个原子的势能
compute   4 all ke/atom     # 计算每个原子的动能

compute    temperature2  hengwen  temp
compute    temperature3   newton  temp/region 2


compute    p all pressure thermo_temp            # 计算应力,计算结果记为p      
variable   pressx equal c_p[1]                #定义变量pressx=c_p[1],c_p[1]的意思是p里第一个值
variable   pressy equal c_p[2]                #定义变量pressy=c_p[2],c_p[2]的意思是p里第二个值


compute m  workpiece stress/atom            # 计算工件应力,计算结果记为p      
compute n workpiece reduce sum c_m[1] c_m[2] c_m[3]
variable px equal -(c_n[1])/(3*vol)
variable py equal -(c_n[2])/(3*vol)

compute k  grain stress/atom            # 计算磨粒应力,计算结果记为p      
compute g grain reduce sum c_k[1] c_k[2] c_k[3]
variable pgx equal -(c_g[1])/(3*vol)
variable pgy equal -(c_g[2])/(3*vol)

velocity        boundary set 0.0 0.0 0.0
velocity        hengwen create 293.0 5812775 temp temperature2  units box
velocity        newton create 293.0 5812775 units box

fix    3 all nve
fix    4 boundary setforce 0.0 0.0 0.0
fix    5 hengwen temp/rescale 10 293.0 293.0 10.0 1.0
fix    6 grain setforce 0.0 0.0 0.0

compute         force  grain  group/group  newton
fix  7  grain   move    linear -1.4 0  0.0    units box # tan=0.025Vw/Vs      

dump       result all custom 100 dump.*.lammpstrj id type mass x y z xs ys zs c_3 c_4 c_5  
#dump    result workpiece cfg 100 *.cfg id type xs ys zs x y z

thermo     100
thermo_style    custom step  c_temperature3  c_force[1] c_force[2] c_force[3]  etotal press v_pressx v_pressy v_px v_py v_pgx v_pgy
timestep   0.001       # 步长 0.001fs
run    21429     # 运行 100 步
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

山槐之下

金虫 (正式写手)


小木虫: 金币+0.5, 给个红包,谢谢回帖
我自己写的in文件一个都没跑出来过,完全看不懂

发自小木虫Android客户端
个人邮箱lqe7714@163.com
2楼2019-12-19 07:48:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pl965

禁虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
本帖内容被屏蔽

3楼2019-12-31 14:40:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pl950

禁虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
本帖内容被屏蔽

4楼2020-01-02 15:44:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pl810

禁虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
本帖内容被屏蔽

5楼2020-01-03 17:21:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pl932

禁虫 (小有名气)

本帖内容被屏蔽

6楼2020-01-06 15:19:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pl984

禁虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
本帖内容被屏蔽

7楼2020-01-08 15:23:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pl913

禁虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
本帖内容被屏蔽

8楼2020-01-10 15:07:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 s455761311 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 15/750 2026-08-07 12:49 by 医学老男孩
[基金申请] 面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇! +23 低垂的野花 2026-07-31 31/1550 2026-08-07 12:22 by speculiar
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] 基金中了 +11 laoda193707 2026-08-06 11/550 2026-08-07 10:54 by TT和NN
[基金申请] 听说今天filecode变了 +21 布布和一二 2026-08-06 44/2200 2026-08-07 10:11 by 布布和一二
[基金申请] 固定端突然变了,今天 +4 archvillain 2026-08-06 8/400 2026-08-07 08:06 by 带你看大海
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 6/300 2026-08-06 20:19 by 苏知砚
[有机交流] 一个有机合成实验室都需要哪些设备? 50+3 kf2781974 2026-07-31 12/600 2026-08-06 15:11 by eddyin
[基金申请] 求各位大神看下 100+6 hpkpkpkp 2026-08-05 33/1650 2026-08-06 14:49 by zhiyanjiang
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 4/200 2026-08-05 09:59 by lfy8008
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
[论文投稿] 十年后又回来了,论文投稿求助 +3 哈哈114477 2026-08-01 3/150 2026-08-04 15:40 by tegsgjy20
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 娱乐 +4 Tide man 2026-08-03 4/200 2026-08-04 11:51 by wgch518
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见