免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2095 | 回复: 0
打印 上一主题 下一主题

NEB的POSCAR处理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-07 22:54 |只看该作者 |倒序浏览

                好主意,先支持一个
官方ftp上的interpolatePOSCAR
script功能简介:将两个POSCAR线性插值得到n个POSCAR用于NEB计算
script:
#
# interpolate two POSCAR files
# POSCAR files must be concated before passing them to  
# this awk script
# first line of the first POSCAR file should be
# rep number_of_replicase
# if there is any line containing the term center
# differences in the center of mass will be removed
#  
file=$1
if [ ! -x $file ]
then
  usage: interpolatePOS POSCAR1_POSCAR2
fi
awk = 8 )  
          {  
              x2[line-7] = $1; y2[line-7] = $2 ; z2[line-7] = $3  }
             if (line==lines) {
                   print "second set read"
             }  
    }
}
END  {
   lines=lines-7
   for ( line=1; linefile
       for ( line=1; linefile
       }
   }
}'
script用法:./interpolatePOSCAR [file]
interpolatePOSCAR 为script的文件名,file为要处理的POSCAR
第一行写成rep n的格式,把要插值的两个POSCAR文件写到一个file里面
注意要建一些目录00 01 02 ...0n,否则会出错
PS:我的fedroa5.0运行不成功,不过我的ubuntu9。04运行成功了。开心阿。
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/104783/showart_2089125.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP