compute command 理解(持續更新)
阿新 • • 發佈:2021-01-08
技術標籤:lammps命令解讀lammps
compute chunk/atom command
compute chunk/atom command
compute ID group-ID chunk/atom style args keyword values
chunk/atom command 將一個group中的atom劃分成多個chunk(資料塊),以供其他計算使用。所以是chunk/atom。
這條命令做了兩件事。
- 設定chunk的數量(多少),數量可以是常數也可以是隨時間變化的量。
- 通過chunk ID 將每一個原子都分配到某個chunk中。Chunk ID 是從1到N。有些chunk可能未分配原子;而有些原子未分配到chunk中則被標記為0。不一定同時存在這種問題。
Ouput info:計算每個原子的向量,可以被任何使用每個原子值作為計算輸入的命令訪問。
命令基本是搭配其他命令使用,比如計算密度時的fix ave/chunk等。
fix ave/chunk command
fix ave/chunk command
fix ID group-ID ave/chunk Nevery Nrepeat Nfreq chunkID value1 value2 ... keyword args …
ave/chunk comnand 是在較長的時間段內計算了每一個chunk的平均值。
- 每隔一定的時間步(Nevery),將此時間步的原子向量作為輸入;
- 在此時間步上對每個chunk內原子的值求和;
- 在較長的時間尺度上進行平均(Nfreq)。
結果可以file檔案形式輸出。
fix ave/chunk計算的全域性陣列可以通過output command輸出。