| 查看: 7857 | 回復(fù): 27 | ||||||||||||||
| 本帖產(chǎn)生 1 個 1ST強帖 ,點擊這里進(jìn)行查看 | ||||||||||||||
[交流]
簡單且完美的把MS導(dǎo)出的文件轉(zhuǎn)成POSCAR 已有19人參與
|
||||||||||||||
|
所需的軟件:MS和VMD(一款很好的查看分子結(jié)構(gòu)的軟件) 方法:在MS中把建立的模型Export成***.car文件,然后用VMD打開,點擊file-save coordinator,在type中選擇POSCAR,保存即可,軟件直接會輸出POSCAR格式文件。 |
VASP and MS | 第一性原理相關(guān)文檔 | 表征和測試分析 | vasp計算資料 |
@個人收集@ | Graduate | Photochemistry | condensed matter physics |
模擬 | good resources | 計算和軟件 |
金蟲 (小有名氣)
|
好吧,我貼出個自己寫的小程序吧: ============== #!/bin/sh # pick up the Lattice Vector sed -n '/BLOCK LATTICE_CART/,/ENDBLOCK LATTICE_CART/ p' $1 | grep -v LATTICE_CART > lat_temp # pick up the Position ordination of Atoms in Fractral style sed -n '/BLOCK POSITIONS_FRAC/,/ENDBLOCK POSITIONS_FRAC/ p' $1 | grep -v POSITIONS_FRAC > pos_temp # obtain the number of Species sed -n '/BLOCK SPECIES_LCAO_STATES/,/ENDBLOCK SPECIES_LCAO_STATES/ p' $1 |grep -v SPECIES_LCAO_STATES > species_temp species=`wc -l species_temp` #sed -n '1~2p' species_temp > temp awk '{print $1}' species_temp > temp mv -f temp species_temp >| POSCAR for i in `cat species_temp` do echo -n $i' ' >> POSCAR # split the every elements grep "\<$i\>" pos_temp > pos_$i # modify the pos_element sed -e 's/$/\ \ \ T\ \ \ T\ \ \ T/' pos_$i > temp colrm 1 4 < temp > temp1 mv -f temp1 temp # sort the ordination as the C- sort -r -n -k 3 temp > temp1 mv -f temp1 temp mv temp pos_$i done echo >> POSCAR # delete the pos files rm -f pos_temp # add the default lattice factor 1.000 echo ' '1.000 >> POSCAR # add the Lattice Vector cat lat_temp >> POSCAR # add the number of every species echo -n ' ' >> POSCAR for i in `cat species_temp` do atoms=`wc -l pos_$i|awk '{print $1}'` echo -n $atoms' ' >> POSCAR done echo >> POSCAR #delete the speies file rm -f species_temp # delete the temp files rm -f lat_temp echo 'Selective Dynamics' >> POSCAR echo 'Direct' >> POSCAR ===================== 把=====之間的保持為cell2POSCAR,運行的時候./cell2POSCAR cellfile就可以了,最后生成每個元素的文件,然后可以使用cat自己按照自己想要組合的順序組合即可。 |
榮譽版主 (職業(yè)作家)
榮譽版主 (文壇精英)
super-emuch

鐵桿木蟲 (正式寫手)
小木蟲

鐵桿木蟲 (正式寫手)
小木蟲

金蟲 (正式寫手)

新蟲 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 266求調(diào)劑 +5 | 陽陽哇塞 2026-03-14 | 9/450 |
|
|---|---|---|---|---|
|
[考研] 314求調(diào)劑 +8 | 無懈可擊的巨人 2026-03-12 | 8/400 |
|
|
[考研] 281求調(diào)劑(0805) +5 | 煙汐憶海 2026-03-16 | 13/650 |
|
|
[考研] 302求調(diào)劑 +10 | 呼呼呼。。。。 2026-03-17 | 10/500 |
|
|
[考研] 一志愿天津大學(xué)化學(xué)工藝專業(yè)(081702)315分求調(diào)劑 +9 | yangfz 2026-03-17 | 9/450 |
|
|
[考研] 303求調(diào)劑 +4 | 睿08 2026-03-17 | 6/300 |
|
|
[考研] 293求調(diào)劑 +11 | zjl的號 2026-03-16 | 16/800 |
|
|
[考研] 301求調(diào)劑 +4 | A_JiXing 2026-03-16 | 4/200 |
|
|
[考研] 考研化學(xué)學(xué)碩調(diào)劑,一志愿985 +4 | 張vvvv 2026-03-15 | 6/300 |
|
|
[考研] 290求調(diào)劑 +6 | 孔志浩 2026-03-12 | 11/550 |
|
|
[考研] 285化工學(xué)碩求調(diào)劑(081700) +9 | 柴郡貓_ 2026-03-12 | 9/450 |
|
|
[考研] 267一志愿南京工業(yè)大學(xué)0817化工求調(diào)劑 +6 | SUICHILD 2026-03-12 | 6/300 |
|
|
[考研] 機械專碩325,尋找調(diào)劑院校 +3 | y9999 2026-03-15 | 5/250 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 0854控制工程 359求調(diào)劑 可跨專業(yè) +3 | 626776879 2026-03-14 | 9/450 |
|
|
[考研] 318求調(diào)劑 +3 | Yanyali 2026-03-15 | 3/150 |
|
|
[考研] 材料工程327求調(diào)劑 +3 | xiaohe12w 2026-03-11 | 3/150 |
|
|
[考研] 330求調(diào)劑 +3 | ?醬給調(diào)劑跪了 2026-03-13 | 3/150 |
|
|
[考研] 土木第一志愿276求調(diào)劑,科研和技能十分豐富,求新興方向的導(dǎo)師收留 +3 | 土木小天才 2026-03-12 | 3/150 |
|
|
[考研] 081200-11408-276學(xué)碩求調(diào)劑 +3 | 崔wj 2026-03-12 | 4/200 |
|