[转载]Quantum Espresso入门(一)
(2015-06-23 20:30:45)
标签:
转载 |
分类: 计算材料学 |
1. 创建目录
mkdir 320
cd 320
mkdir LAB2
cd LAB2
mkdir PROBLEM1
2.拷贝输入文件和脚本
cp ~mounet/LAB2/C.scf.in.
cp ~mounet/LAB2/C.scf.j.
或拷贝可执行文件
cp ~mounet/LAB2/pw.x
3.输入文件的内容
&control
calculation='scf'
restart_mode='from_scratch'
prefix='diamond'
tstress=.true.
tprnfor=.true.
pseudo_dir='/state/partitionl/marzari'
cutdir='/state/partitionl/marzari'
/
&system
ibrav=2, celldm(1)=6.60, nat=2, ntyp=
ecutwfc=40
/
&electrons
diagonalization='david'
mixing_mode='plain'
mixing_beta=0.7
conv_thr=1.0d-8
/
ATOMIC_SPECIES
C 12.011
C.pz-vbc.UPF
ATOMIC_POSITIONS
C 0.00 0.00
0.00
C 0.25 0.25 0.25
K_POINTS
(automatic)
4 4 4 0 0 0
4.提交工作给队列
qsub C.scf.j
检查你的工作状态:qstat
检查某一工作的详细情况:qstat -j jobnumber
检查所有工作和所有机器的工作状态:qstat -f
取消或停止某个工作:qdel jobnumber
你也能得到所有机器的状态和使用情况,在
http://hpcbeo2.mit.edu/ganglia/
关于 SGE 的更多信息见
http://hpcbeo2.mit.edu/roll-documentation/sge/3.2.0/index.html
http://bio.site.uottawa.ca/wiki/space/How-To/GridEngine/Intro
5.脚本文件
#!bin/bash
-f
#######################################################################################
#$ -N
C.scf
#$
-cwd
#$ -o
$HOME/3.320/LAB2/err.out
#$ -j
y
#$ -S
/bin/sh
http://bio.site.uottawa.ca/wiki/space/How-To/GridEngine/Intro
###########################################################################
# This is a script to run PWSCF 2.1.1 calculations in the hpcbeo2 cluster.
###########################################################################
# set the needed varibles
MYDIR="3.320/LAB2/PROBLEM1/"
LISTA='6.6'
LISTECUT='30 35 40 45 50 60'
LISTK='4'
USER='whoami'
OUTDIR="/state/partitional/$USER"
PSEUDO_DIR="/state/partitional/$USER"
OUTPUT="/home/$USER/$MYDIR"
if [! -d $OUTDIR ]; then
fi
if [! -d $PSEUDO_DIR ]; then
fi
if [!-d $OUTPUT ]; then
fi
cp /home/mounet/LAB2/C.pz-vbc.UPF $PSEUDO_DIR
rm -f $OUTDIR/diamond.*
#########################################################################
#calculations
for ecut in $LISTECUT
do
for k in $LISTK
do
for a in $LISTA
do
rm -f $OUTPUT/C.scf.$ecut.$k.in
cat > $OUTPUT/C.scf.$a.$ecut.$k.in << EOF
&control
/
&electrons
/
ATOMIC_SPECIES
C 12.011 C.pz-vbc.UPF
ATOMIC_POSITIONS
C 0.00 0.00 0.00
C 0.25 0.25 0.25
K_POINTS
EOF
rm -f $OUTPUT/C.scf.$a.$ecut.$k.out
/home/mounet/LAB2/pw.x < $OUTPUT/C.scf.$a.$ecut.$k.in>
$OUTPUT/C.scf.$a.$ecut.$k.out
done
done
done
rm -f $OUTDIR/diamond.* $PSEUDO_DIR/C.pz-vbc.UPF

加载中…