24小时热门版块排行榜    

查看: 7843  |  回复: 27
本帖产生 1 个 1ST强帖 ,点击这里进行查看
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

gyldmy

铜虫 (小有名气)

[交流] 简单且完美的把MS导出的文件转成POSCAR 已有19人参与

所需的软件:MS和VMD(一款很好的查看分子结构的软件)
方法:在MS中把建立的模型Export成***.car文件,然后用VMD打开,点击file-save coordinator,在type中选择POSCAR,保存即可,软件直接会输出POSCAR格式文件。
回复此楼

» 收录本帖的淘帖专辑推荐

VASP and MS 第一性原理相关文档 表征和测试分析 vasp计算资料
@个人收集@ Graduate Photochemistry condensed matter physics
模拟 good resources 计算和软件

» 本帖已获得的红花(最新10朵)

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chenweiguang

金虫 (小有名气)

★ ★ ★ ★
小木虫: 金币+0.5, 给个红包,谢谢回帖
fzx2008: 金币+3, 谢谢分享 2012-08-28 10:17:47
好吧,我贴出个自己写的小程序吧:
==============
#!/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自己按照自己想要组合的顺序组合即可。
10楼2012-08-27 09:45:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 gyldmy 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 301求调剂 +3 A_JiXing 2026-03-16 3/150 2026-03-17 08:21 by 无际的草原
[考研] 0703化学336分求调剂 +3 zbzihdhd 2026-03-15 4/200 2026-03-16 23:52 by zbzihdhd
[基金申请] 国自科面上基金字体 +6 iwuli 2026-03-12 7/350 2026-03-16 21:18 by sculhf
[考研] 328求调剂,英语六级551,有科研经历 +3 生物工程调剂 2026-03-16 4/200 2026-03-16 20:13 by Wangjingyue
[考研] 283求调剂 +10 小楼。 2026-03-12 14/700 2026-03-16 16:08 by 13811244083
[考研] 一志愿华中师范071000,325求调剂 +6 RuitingC 2026-03-12 6/300 2026-03-16 14:50 by 可淡不可忘
[教师之家] 焦虑 +7 水冰月月野兔 2026-03-13 9/450 2026-03-16 10:00 by Quakerbird
[考研] 0856专硕279求调剂 +5 加油加油!? 2026-03-15 5/250 2026-03-15 11:58 by 2020015
[考研] 289求调剂 +4 这么名字咋样 2026-03-14 6/300 2026-03-14 18:58 by userper
[考研] 267一志愿南京工业大学0817化工求调剂 +5 SUICHILD 2026-03-12 5/250 2026-03-14 14:53 by jean5056
[考研] 材料与化工(0856)304求B区调剂 +7 邱gl 2026-03-10 11/550 2026-03-14 12:18 by 邱gl
[考研] 一志愿华中农业大学071010,总分三百二,求调剂 +3 困困困困坤坤 2026-03-10 3/150 2026-03-14 00:35 by JourneyLucky
[考研] 材料与化工(0856)304求B区调剂 +6 邱gl 2026-03-12 7/350 2026-03-13 23:24 by 邱gl
[考研] 304求调剂 +6 Mochaaaa 2026-03-12 7/350 2026-03-13 22:18 by 星空星月
[考研] 材料与化工求调剂一志愿 985 总分 295 +8 dream…… 2026-03-12 8/400 2026-03-13 22:17 by 星空星月
[考研] 290求调剂 +9 ADT 2026-03-11 9/450 2026-03-13 21:55 by JourneyLucky
[考研] 333求调剂 +3 球球古力 2026-03-11 3/150 2026-03-13 21:27 by JourneyLucky
[考研] 0856化学工程280分求调剂 +4 shenzxsn 2026-03-11 4/200 2026-03-13 11:55 by ymwdoctor
[考研] 0817化学工程与技术考研312分调剂 +3 T123 tt 2026-03-12 3/150 2026-03-13 10:49 by houyaoxu
[考研] 材料专硕274一志愿陕西师范大学求调剂 +4 薛云鹏 2026-03-13 4/200 2026-03-13 10:40 by 学员8dgXkO
信息提示
请填处理意见