| 查看: 7860 | 回復(fù): 27 | ||||||||||||||
| 本帖產(chǎn)生 1 個(gè) 1ST強(qiáng)帖 ,點(diǎn)擊這里進(jìn)行查看 | ||||||||||||||
gyldmy銅蟲 (小有名氣)
|
[交流]
簡單且完美的把MS導(dǎo)出的文件轉(zhuǎn)成POSCAR 已有19人參與
|
|||||||||||||
|
所需的軟件:MS和VMD(一款很好的查看分子結(jié)構(gòu)的軟件) 方法:在MS中把建立的模型Export成***.car文件,然后用VMD打開,點(diǎn)擊file-save coordinator,在type中選擇POSCAR,保存即可,軟件直接會(huì)輸出POSCAR格式文件。 |
VASP and MS | 第一性原理相關(guān)文檔 | 表征和測試分析 | vasp計(jì)算資料 |
@個(gè)人收集@ | Graduate | Photochemistry | condensed matter physics |
模擬 | good resources | 計(jì)算和軟件 |
金蟲 (小有名氣)
|
好吧,我貼出個(gè)自己寫的小程序吧: ============== #!/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,運(yùn)行的時(shí)候./cell2POSCAR cellfile就可以了,最后生成每個(gè)元素的文件,然后可以使用cat自己按照自己想要組合的順序組合即可。 |
榮譽(yù)版主 (職業(yè)作家)
榮譽(yù)版主 (文壇精英)
super-emuch

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

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

金蟲 (正式寫手)

新蟲 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0703化學(xué)調(diào)劑,求各位老師收留 +9 | 秋有木北 2026-03-14 | 9/450 |
|
|---|---|---|---|---|
|
[考研] 307求調(diào)劑 +3 | 冷笙123 2026-03-17 | 3/150 |
|
|
[考研] 環(huán)境工程調(diào)劑 +8 | 大可digkids 2026-03-16 | 8/400 |
|
|
[考研] 268求調(diào)劑 +6 | 簡單點(diǎn)0 2026-03-17 | 6/300 |
|
|
[考研] 268求調(diào)劑 +7 | 好運(yùn)連綿不絕 2026-03-12 | 8/400 |
|
|
[考研] 290求調(diào)劑 +6 | 孔志浩 2026-03-12 | 11/550 |
|
|
[考研] 275求調(diào)劑 +4 | 太陽花天天開心 2026-03-16 | 4/200 |
|
|
[考研] 285化工學(xué)碩求調(diào)劑(081700) +9 | 柴郡貓_ 2026-03-12 | 9/450 |
|
|
[考研] 藥學(xué)383 求調(diào)劑 +3 | 藥學(xué)chy 2026-03-15 | 4/200 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 304求調(diào)劑 +3 | 曼殊2266 2026-03-14 | 3/150 |
|
|
[考研] 285求調(diào)劑 +6 | ytter 2026-03-12 | 6/300 |
|
|
[考研] 中科大材料專碩319求調(diào)劑 +3 | 孟鑫材料 2026-03-13 | 3/150 |
|
|
[考研] 330求調(diào)劑 +3 | ?醬給調(diào)劑跪了 2026-03-13 | 3/150 |
|
|
[考研] 304求調(diào)劑 +6 | Mochaaaa 2026-03-12 | 7/350 |
|
|
[考研] 304求調(diào)劑 +7 | 7712b 2026-03-13 | 7/350 |
|
|
[考研] 材料專碩350 求調(diào)劑 +4 | 王金科 2026-03-12 | 4/200 |
|
|
[考研] 307求調(diào)劑 +5 | 超級(jí)伊昂大王 2026-03-12 | 5/250 |
|
|
[考研] 295求調(diào)劑 +3 | 小匕仔汁 2026-03-12 | 3/150 |
|
|
[考研] 290求調(diào)劑 +3 | ADT 2026-03-13 | 3/150 |
|