PWscf (Plane-Wave Self-Consistent Field)是意大利国际理论物理研究中心主持开发的一个基于平面波的第一性原理计算软件包,目前PWscf 是Quantum ESPRESSO(ESPRESSO:
opEn-Source Package for Research in Electronic Structure, Simulation,
and Optimization)的一部分,主要集成了 pwscf.cpmd和fpmd这三个模块,可以进行总能相关计算和分子动力学模拟,功能还是比较强大的,具体可以查看 http://www.pwscf.org
下面简单介绍一下espress软件包的编译安装.现在的稳定版本是espresso-3.2.3,实际上出现了最新的v. 4.0cvs版本,不过还没有经过验证。
首先下载下来,解压缩之,tar xzvf  espresso-3.2.3.tar.gz
然后进入目录espresso-3.2.3,执行./configure,默认情况下它会自动探测出你所在机器上的编译器和库文件的位置。然后成功的话会出现一个Makefile,
很不幸,它并没有检测出来我这个cluster的一些信息,这个时候就需要自己手动指定
./configure ARCH=amd64 F90=pgf90 MPIF90=mpif90 MPIF77=mpif77 MPICC=mpicc
最后make all即可,当然如果并不需要所有都编译,也可以单独编译:
  make pw           compile PW/pw.x (electronic and ionic optimization)-电子和离子优化
  make cp           compile CPV/cp.x (Car-Parrinello MD with ultrasoft
                      pseudopotentials)-使用US赝势的CPMD方法
  make ph           compile PH/ph.x (phonons)-计算声子谱
  make pp           compile postprocessing codes in the PP directory-对赝势的预处理
  make gamma        compile Gamma/phcg.x (Gamma-only version of ph.x)-只计算Gamma点的声子频率
  make pwcond       compile PWCOND/pwcond.x (ballistic conductance)
  make d3           compile D3/d3.x (third-order energy derivatives)
  make raman        compile Raman/ram.x (Raman cross-section calculation)
  make tools        compile pwtools/* (miscellaneous tools for data analysis)
  make ld1          compile atomic/ld1.x code for pseudopotential generation
  make upf          compile upftools/* (utilities for pseudopotential conversion)
  make pwall        same as "make pw ph pp d3 raman pwcond gamma tools"
  make all          same as "make pwall ld1 cp upf"
  make clean        remove object files and executables
  make veryclean    remove configuration files too
  make tar          build a tarball of the current source tree
然后就会在./bin目录里看到生成的程序链接。
对于其他的数学库还没有考虑,以后有时间要试试其他的编译器和数学库。
 
没有评论:
发表评论