| 5 | 1/1 | 返回列表 |
| 查看: 3281 | 回復(fù): 9 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
風(fēng)吹葉123金蟲 (小有名氣)
|
[求助]
【求助】關(guān)于LAMMPS建模
|
|
|
各位版主、大神: 你們好。我想問幾個(gè)關(guān)于LAMMPS建模的基本問題。我知道可能有點(diǎn)簡(jiǎn)單,但我真的是認(rèn)真查看過Manual中相關(guān)的命令說明之后,仍有一些疑問。我自己想了很久,也問過很多人,但是還是沒有解決。 命令來自一個(gè)很基礎(chǔ)的LAMMPS例子,該例子的全部命令如下: # Find minimum energy fcc configuration # Mark Tschopp, 2010 # ---------- Initialize Simulation --------------------- clear units metal dimension 3 boundary p p p atom_style atomic atom_modify map array # ---------- Create Atoms --------------------- lattice fcc 4 region box block 0 1 0 1 0 1 units lattice create_box 1 box lattice fcc 4 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1 create_atoms 1 box replicate 1 1 1 # ---------- Define Interatomic Potential --------------------- pair_style eam/alloy pair_coeff * * Al99.eam.alloy Al neighbor 2.0 bin neigh_modify delay 10 check yes # ---------- Define Settings --------------------- compute eng all pe/atom compute eatoms all reduce sum c_eng # ---------- Run Minimization --------------------- reset_timestep 0 fix 1 all box/relax iso 0.0 vmax 0.001 thermo 10 thermo_style custom step pe lx ly lz press pxx pyy pzz c_eatoms min_style cg minimize 1e-25 1e-25 5000 10000 variable natoms equal "count(all)" variable teng equal "c_eatoms" variable length equal "lx" variable ecoh equal "v_teng/v_natoms" print "Total energy (eV) = ${teng};" print "Number of atoms = ${natoms};" print "Lattice constant (Angstoms) = ${length};" print "Cohesive energy (eV) = ${ecoh};" print "All done!" 我的問題是: (1)lattice fcc 4 和 lattice fcc 4 orient x 100 orient y 0 1 0 orient z 0 0 1這兩句有什么區(qū)別?效果不是一樣的么?為什么在lattice fcc 4建立格子之后,還要有l(wèi)attice fcc 4 orient x 100 orient y 0 1 0 orient z 0 0 1這句?意義何在? (2)replicate 1 1 1這句不相當(dāng)于沒有復(fù)制么?為什么要寫這條命令呢?意義何在? (3)如果我只想建模,不進(jìn)行任何計(jì)算,然后想在LAMMPS中導(dǎo)出該模型,最后在VMD中查看該模型。那么在整個(gè)代碼的最后一行需要添加一個(gè)怎樣的dump語句?(我查過手冊(cè)中的dump語句,也試過很多次自己寫,但是都不對(duì)。) 跪求各路大神幫助。小弟在此謝過! |
金蟲 (著名寫手)

金蟲 (小有名氣)
鐵桿木蟲 (著名寫手)
|
對(duì)于問題1:好好看看手冊(cè),說的蠻詳細(xì)。The other 3 arguments are the crystallographic direction in the lattice that you want to orient along that axis, specified as integers. E.g. "orient x 2 1 0" means the x-axis in the simulation box will be the [210] lattice direction. 兩條命令有差別; 對(duì)于問題2:我覺得可以去掉; 對(duì)于問題3:dump 1 all atom 1 dump.lammpstrj 就可以了,其中的1不可以和其他的dump重復(fù);1000為每多少步輸出一次,可以自己設(shè)定,看手冊(cè)就知道啥意思了。關(guān)鍵在于文件名后綴為lammpstrj。 PS:我沒仔細(xì)看你的程序,只是針對(duì)你的問題。你可以試下! |

金蟲 (小有名氣)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 材料與化工306分找調(diào)劑 +10 | 滄海輕舟e 2026-04-02 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 319求調(diào)劑 +14 | 太容易1018 2026-04-01 | 14/700 |
|
|
[考研] 366求調(diào)劑一志愿東北大學(xué) +7 | 運(yùn)氣來得若有似?/a> 2026-04-02 | 7/350 |
|
|
[考研] 298求調(diào)劑 +3 | zzz,,r 2026-04-02 | 6/300 |
|
|
[考研] 08工科求調(diào)劑290分 +5 | 1314捧花 2026-04-02 | 8/400 |
|
|
[考研] 275求調(diào)劑 +13 | jjjjjjjjjjl 2026-03-27 | 13/650 |
|
|
[考研] 07生物學(xué)求調(diào)劑 一志愿同濟(jì)大學(xué)359分 +3 | LAMC. 2026-03-30 | 3/150 |
|
|
[考研] 292求調(diào)劑 +14 | 是妍子也是研子 2026-03-30 | 14/700 |
|
|
[考研] 266求調(diào)劑 +4 | 學(xué)員97LZgn 2026-04-02 | 4/200 |
|
|
[考研] 材料求調(diào)劑 +8 | 呢呢妮妮 2026-04-01 | 8/400 |
|
|
[考研] 材料科學(xué)與工程339求調(diào)劑 +11 | hyz0119 2026-03-31 | 12/600 |
|
|
[考研] 086000生物與醫(yī)藥 初試274求調(diào)劑 +5 | 小叮當(dāng)來了 2026-03-30 | 6/300 |
|
|
[考研] 262求調(diào)劑 +9 | 勵(lì)志一定發(fā)文章 2026-03-31 | 10/500 |
|
|
[考研] 333求調(diào)劑 +4 | 阿科逸 2026-03-31 | 4/200 |
|
|
[考研] 0856調(diào)劑 +7 | 曲聽筠 2026-03-30 | 7/350 |
|
|
[考研] 309分085801求調(diào)劑 +7 | 學(xué)員Gtwj7W 2026-03-31 | 7/350 |
|
|
[考研] 282求調(diào)劑 不挑專業(yè) 求收留 +4 | Yam. 2026-03-30 | 5/250 |
|
|
[考研] 085600,專業(yè)課化工原理,320分求調(diào)劑 +6 | 大饞小子 2026-03-29 | 6/300 |
|
|
[考研] 370求調(diào)劑 +3 | 080700調(diào)劑 2026-03-30 | 3/150 |
|
|
[考研] 356求調(diào)劑 +3 | gysy?s?a 2026-03-28 | 3/150 |
|