| 5 | 1/1 | 返回列表 |
| 查看: 1890 | 回復(fù): 7 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||
s455761311鐵蟲 (初入文壇)
|
[交流]
哪位大佬能幫著看看這個(gè) 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 # 能量最小化參數(shù),指數(shù)越大最小化程度越深 #write_restart restart.txt compute 3 all pe/atom # 計(jì)算每個(gè)原子的勢(shì)能 compute 4 all ke/atom # 計(jì)算每個(gè)原子的動(dòng)能 compute temperature2 hengwen temp compute temperature3 newton temp/region 2 compute p all pressure thermo_temp # 計(jì)算應(yīng)力,計(jì)算結(jié)果記為p variable pressx equal c_p[1] #定義變量pressx=c_p[1],c_p[1]的意思是p里第一個(gè)值 variable pressy equal c_p[2] #定義變量pressy=c_p[2],c_p[2]的意思是p里第二個(gè)值 compute m workpiece stress/atom # 計(jì)算工件應(yīng)力,計(jì)算結(jié)果記為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 # 計(jì)算磨粒應(yīng)力,計(jì)算結(jié)果記為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 # 步長(zhǎng) 0.001fs run 21429 # 運(yùn)行 100 步 |
|
本帖內(nèi)容被屏蔽 |

|
本帖內(nèi)容被屏蔽 |
|
本帖內(nèi)容被屏蔽 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 085600材料與化工,一志愿廣州985,求調(diào)劑 +6 | qqyyaill 2026-03-05 | 6/300 |
|
|---|---|---|---|---|
|
[考研] 080500材料科學(xué)與工程 +11 | 202114020319 2026-03-03 | 11/550 |
|
|
[考研] 材料與化工,291,求調(diào)劑 +6 | 咕嚕咕嚕123123 2026-03-05 | 7/350 |
|
|
[考研] 274環(huán)境工程求調(diào)劑 +6 | 扶柳盈江 2026-03-05 | 6/300 |
|
|
[考研] 304求調(diào)劑 +3 | 曼殊2266 2026-03-04 | 3/150 |
|
|
[考研] 材料085600 303求調(diào)劑 +7 | 1bygone 2026-03-04 | 7/350 |
|
|
[考研] 267調(diào)劑求助 +5 | 聰少OZ 2026-03-04 | 5/250 |
|
|
[考研] 316求調(diào)劑 +3 | 林小星發(fā)大財(cái) 2026-03-04 | 3/150 |
|
|
[考研] 266求調(diào)劑 +7 | 哇塞王帥 2026-03-03 | 7/350 |
|
|
[考研] 0857求調(diào)劑 +4 | CDDD1013 2026-03-04 | 4/200 |
|
|
[論文投稿]
EST拒稿重投
5+3
|
15102603076 2026-03-02 | 3/150 |
|
|
[考研] 環(huán)境工程學(xué)碩288求助調(diào)劑 +7 | 多吃億口芝士 2026-03-02 | 7/350 |
|
|
[基金申請(qǐng)] 請(qǐng)問大家,研究風(fēng)險(xiǎn)與應(yīng)對(duì)措施那里, 大家都怎么寫呢 ? +3 | cauasen 2026-03-02 | 3/150 |
|
|
[考研] 085600材料與化工調(diào)劑 280分 +10 | yyqqhh 2026-03-03 | 10/500 |
|
|
[考研] 299求調(diào)劑 +5 | kkcoco25 2026-03-02 | 9/450 |
|
|
[考研] 26考研報(bào)考西工大材料308分求調(diào)劑 +4 | weizhong123 2026-03-01 | 5/250 |
|
|
[考研] 338求調(diào)劑 +5 | 18162027187 2026-03-02 | 6/300 |
|
|
[考研] 298求調(diào)劑 +7 | axyz3 2026-02-28 | 8/400 |
|
|
[考研] 一志愿山東大學(xué)材料與化工325求調(diào)劑 +5 | 半截的詩(shī)0927 2026-03-02 | 5/250 |
|
|
[考研] 275求調(diào)劑 +3 | L-xin? 2026-03-01 | 6/300 |
|