| 3 | 1/1 | 返回列表 |
| 查看: 3950 | 回復(fù): 2 | |||
水壺呼呼新蟲 (小有名氣)
|
[交流]
lammps學(xué)習(xí)記錄----restart write_restart read_restart 已有1人參與
|
|
Sample Text 在網(wǎng)上看到一個總結(jié)很好的,掛下鏈接~侵刪 https://www.360doc.com/content/12/1120/08/8275160_249016551.shtml restart命令是lammps提供的重啟動命令。比如馳豫各個計(jì)算都要用,可以先單獨(dú)馳豫一下,生成restart文件,供其他計(jì)算直接調(diào)用,從而避免每個計(jì)算都進(jìn)行馳豫。 中間寫一個restart文件,在文件中記錄某個狀態(tài)的絕大部分信息,restart文件是二進(jìn)制文件。 restart2data可以將restart的二進(jìn)制文件轉(zhuǎn)化為文本文件,可以由read_data讀入。 restart和write_restart不同點(diǎn):前者周期性將系統(tǒng)狀態(tài)寫入不同的restart文件,后者寫出該命令使用前的系統(tǒng)狀態(tài)。使用位置也不同: restart files文件必須是N的整數(shù)倍才可以輸出,與dump不同,dump會輸出剛開始的還有如果最后是能量最小化的也會輸出,所以可以先用write_restart文件在run之前寫一個e二進(jìn)制文件,對于最后一步是能量最小化,并且收斂的話(N>0),restart會輸出最后一步 read_restart是讀前兩者的文件,開始新的計(jì)算 需要注意的是,并不是所有的模擬信息都保存在restart.equil文件中。 比如fix命令就需要在新的模擬文件中重新設(shè)置,官方手冊已經(jīng)列舉的很全面,有需要可以查查手冊。 關(guān)于read_restart: 什么信息包括:重建模擬盒子,原子,和他們的分布,以及一些相關(guān)的全局設(shè)定 根據(jù)當(dāng)前模擬中的處理器數(shù)量和處理器命令的設(shè)置,將模擬盒子劃分為矩形磚的常規(guī)3d網(wǎng)格,每個處理器一個。以后可以通過balance或fix balance命令更改分區(qū)。 units newton bond (see discussion of newton command below) atom style and atom_modify settings id, map, sort comm style and comm_modify settings mode, cutoff, vel timestep simulation box size and shape and boundary settings atom group definitions per-type atom settings such as mass per-atom attributes including their group assignments and molecular topology attributes (bonds, angles, etc) force field styles (pair, bond, angle, etc) force field coefficients (pair, bond, angle, etc) in some cases (see below) pair_modify settings, except the compute option special_bonds settings 什么沒包括:某些fix命令,包括fix shake fix langevin。某些 pair styles,因?yàn)橛?jì)算力的時候依賴于速度,只用half-step的值,而重新讀入時,剛開始計(jì)算時用的時full-step的速度,這些fix命令包括 granular pair styles, pair dpd, and pair lubricate (個人建議:將fix命令重寫) newton pair (see discussion of newton command below) fix commands (see below) compute commands (see below) variable commands region commands neighbor list criteria including neigh_modify settings kspace_style and kspace_modify settings info for thermodynamic, dump, or restart output many-body和tabulated勢不能用,需要重新寫pair_coeff bond_coeff 等 |
至尊木蟲 (職業(yè)作家)
至尊木蟲 (職業(yè)作家)
| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 324求調(diào)劑 +5 | wxz2 2026-03-03 | 7/350 |
|
|---|---|---|---|---|
|
[考博] 2026年博士名額撿漏 +4 | 科研ya 2026-03-04 | 5/250 |
|
|
[考研] 085701環(huán)境工程 求調(diào)劑 +7 | xiiiia 2026-03-04 | 7/350 |
|
|
[考研] 304求調(diào)劑 +7 | 曼殊2266 2026-02-28 | 8/400 |
|
|
[考研] 264求調(diào)劑 +8 | 26調(diào)劑 2026-03-03 | 8/400 |
|
|
[考研] 成績276,專業(yè)代碼0856求調(diào)劑 +10 | 小陳朵 2026-03-03 | 10/500 |
|
|
[考研] 282求調(diào)劑 +5 | 2103240126 2026-03-02 | 8/400 |
|
|
[考研] 求調(diào)劑 +4 | 熬夜的貓頭鷹 2026-03-02 | 4/200 |
|
|
[考研] 能動297求調(diào)劑,本科川大 +4 | 邵11 2026-03-04 | 4/200 |
|
|
[考研] 281求調(diào)劑 +3 | 我是小小蔥蔥 2026-03-03 | 5/250 |
|
|
[考研] 材料工程269求調(diào)劑 +7 | 白刺玫 2026-03-02 | 7/350 |
|
|
[考研] 復(fù)試調(diào)劑 +4 | 杰尼龜aaa 2026-03-03 | 4/200 |
|
|
[考研] 環(huán)境工程學(xué)碩288求助調(diào)劑 +7 | 多吃億口芝士 2026-03-02 | 7/350 |
|
|
[考研] 環(huán)境調(diào)劑 +8 | chenhanheng 2026-03-02 | 8/400 |
|
|
[考研] 求調(diào)劑 +4 | Guo_yuxuan 2026-03-02 | 5/250 |
|
|
[考研] 0857調(diào)劑 +6 | 一ll半 2026-02-28 | 8/400 |
|
|
[考研] 1 +7 | 黑!在干嘛 2026-02-28 | 8/400 |
|
|
[考研] 272求調(diào)劑 +9 | 材紫有化 2026-02-28 | 9/450 |
|
|
[考研] 0856材料求調(diào)劑 +4 | 麻辣魷魚 2026-02-28 | 4/200 |
|
|
[考研] 調(diào)劑 +3 | 簡木ChuFront 2026-02-28 | 3/150 |
|