| 2 | 1/1 | 返回列表 |
| 查看: 7859 | 回復(fù): 27 | ||||||||||||||
| 本帖產(chǎn)生 1 個(gè) 1ST強(qiáng)帖 ,點(diǎn)擊這里進(jìn)行查看 | ||||||||||||||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||||||||||||||
gyldmy銅蟲 (小有名氣)
|
[交流]
簡(jiǎn)單且完美的把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)文檔 | 表征和測(cè)試分析 | 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自己按照自己想要組合的順序組合即可。 |
| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 26調(diào)劑/材料/英一數(shù)二/總分289/已過(guò)A區(qū)線 +7 | 步川酷紫123 2026-03-13 | 7/350 |
|
|---|---|---|---|---|
|
[教師之家] 焦慮 +8 | 水冰月月野兔 2026-03-13 | 12/600 |
|
|
[考研] 085601專碩,總分342求調(diào)劑,地區(qū)不限 +5 | share_joy 2026-03-16 | 5/250 |
|
|
[考研] 化工學(xué)碩306求調(diào)劑 +10 | 42838695 2026-03-12 | 10/500 |
|
|
[考研] 材料專碩274一志愿陜西師范大學(xué)求調(diào)劑 +6 | 薛云鵬 2026-03-13 | 6/300 |
|
|
[考研] 312求調(diào)劑 +8 | 陌宸希 2026-03-16 | 9/450 |
|
|
[考研] 一志愿天津大學(xué)化學(xué)工藝專業(yè)(081702)315分求調(diào)劑 +9 | yangfz 2026-03-17 | 9/450 |
|
|
[考研] 304求調(diào)劑 +12 | 小熊joy 2026-03-14 | 13/650 |
|
|
[考研] 296求調(diào)劑 +5 | 大口吃飯 身體健 2026-03-13 | 5/250 |
|
|
[考研] 有沒(méi)有道鐵/土木的想調(diào)劑南林,給自己招師弟中~ +3 | TqlXswl 2026-03-16 | 7/350 |
|
|
[考博] 26申博 +4 | 八旬速覽 2026-03-16 | 4/200 |
|
|
[考研] 278求調(diào)劑 +3 | Yy7400 2026-03-13 | 3/150 |
|
|
[考研] 326求調(diào)劑 +4 | 諾貝爾化學(xué)獎(jiǎng)覬?/a> 2026-03-15 | 7/350 |
|
|
[考研] 304求調(diào)劑 +3 | 曼殊2266 2026-03-14 | 3/150 |
|
|
[考研] 0703 物理化學(xué)調(diào)劑 +3 | 我可以上岸的對(duì)?/a> 2026-03-13 | 5/250 |
|
|
[考研] 085601材料工程315分求調(diào)劑 +3 | yang_0104 2026-03-15 | 3/150 |
|
|
[考研] 265求調(diào)劑 +4 | 威化餅07 2026-03-12 | 4/200 |
|
|
[考研] 297求調(diào)劑 +4 | 學(xué)海漂泊 2026-03-13 | 4/200 |
|
|
[考研] 26調(diào)劑/材料科學(xué)與工程/總分295/求收留 +9 | 2026調(diào)劑俠 2026-03-12 | 9/450 |
|
|
[考研] 311求調(diào)劑 +3 | 冬十三 2026-03-13 | 3/150 |
|