24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1681  |  回复: 6

taipoboy

新虫 (初入文坛)

[交流] 求國內同胞幫幫港澳兄弟解決Quantum Espresso 的運行問題 已有2人参与

求幫忙:當我試驗運行一些以下文件,發現運行不了,主要問題顯示:

     Error in routine pw_readfile (1):
     error opening xml data file

我的文件:
#!/bin/sh

###############################################################################
##
##  HIGH VERBOSITY EXAMPLE
##
###############################################################################

# run from directory where this script is
cd `echo $0 | sed 's/\(.*\)\/.*/\1/'` # extract pathname
EXAMPLE_DIR=`pwd`

# check whether echo has the -e option
if test "`echo -e`" = "-e" ; then ECHO=echo ; else ECHO="echo -e" ; fi

$ECHO
$ECHO "$EXAMPLE_DIR : starting"
$ECHO
$ECHO "This example tests pw.x with USPS and DFT+U in the noncollinear, spin-orbit case."
$ECHO "It calculates the band structure of ferromagnetic LiZnSb."
$ECHO

# set the needed environment variables
. ../../../environment_variables

# required executables and pseudopotentials
BIN_LIST="pw.x"
PSEUDO_LIST="Li.pw-mt_fhi, Zn.pw-mt_fhi, Sb.pw-mt_fhi.UPF"

$ECHO
$ECHO "  executables directory: $BIN_DIR"
$ECHO "  pseudo directory:      $PSEUDO_DIR"
$ECHO "  temporary directory:   $TMP_DIR"
$ECHO "  checking that needed directories and files exist...\c"

# check for directories
for DIR in "$BIN_DIR" "$PSEUDO_DIR" ; do
    if test ! -d $DIR ; then
        $ECHO
        $ECHO "ERROR: $DIR not existent or not a directory"
        $ECHO "Aborting"
        exit 1
    fi
done
for DIR in "$TMP_DIR" "$EXAMPLE_DIR/results" ; do
    if test ! -d $DIR ; then
        mkdir $DIR
    fi
done
cd $EXAMPLE_DIR/results

# check for executables
for FILE in $BIN_LIST ; do
    if test ! -x $BIN_DIR/$FILE ; then
        $ECHO
        $ECHO "ERROR: $BIN_DIR/$FILE not existent or not executable"
        $ECHO "Aborting"
        exit 1
    fi
done

# check for pseudopotentials
for FILE in $PSEUDO_LIST ; do
    if test ! -r $PSEUDO_DIR/$FILE ; then
       $ECHO
       $ECHO "Downloading $FILE to $PSEUDO_DIR...\c"
            $WGET $PSEUDO_DIR/$FILE $NETWORK_PSEUDO/$FILE 2> /dev/null
    fi
    if test $? != 0; then
        $ECHO
        $ECHO "ERROR: $PSEUDO_DIR/$FILE not existent or not readable"
        $ECHO "Aborting"
        exit 1
    fi
done
$ECHO " done"

# how to run executables
PW_COMMAND="$PARA_PREFIX $BIN_DIR/pw.x $PARA_POSTFIX"
$ECHO
$ECHO "  running pw.x     as: $PW_COMMAND"
$ECHO

# self-consistent calculation for LiZnSb with fully relativistic US-PP
cat > LiZnSb.band_pbe.in << EOF
&control
    calculation = 'bands'
    prefix='LiZnSb',
    pseudo_dir = '$PSEUDO_DIR/',
    outdir='$TMP_DIR/'
/
&system   
    ibrav     = 4,
    nat       = 6,
    celldm(1) = 4.428346,
    celldm(3) = 1.616938,
    ntyp      = 3,
    ecutwfc   = 18.D0,
    ecutrho   = 180.0,
    noncolin=.true.
    lspinorb=.true.
    starting_magnetization(1)=0.5,
    angle1(1)=90.0
    angle2(1)=0.0
    occupations='smearing',
    smearing='mp',
    degauss=0.04,
    lda_plus_u=.true.
    lda_plus_u_kind=1
    Hubbard_U(1)=2.2
    Hubbard_J(1,1)=1.75
    Hubbard_J(2,1)=0.0
/
&electrons
    conv_thr =  1.0d-12,
/
ATOMIC_SPECIES
Li    6.94100  Li.pbe-mt_fhi.UPF
Zn   65.38000  Zn.pbe-mt_fhi.UPF
Sb  121.76000  Sb.pbe-hgh.UPF
ATOMIC_POSITIONS {bohr}
Li      0.999990977    0.999983308    0.175222936   
Li      0.000007824    0.000015649    0.675222656   
Zn      0.333351242    0.666702484    0.394028851   
Zn      0.666647559    0.333296472    0.894028572   
Sb      0.333362979    0.666725957    0.011748006   
Sb      0.666635822    0.333273000    0.511747727  
K_POINTS tpiba_b
3
1.0 0.0 0.0 40
0.0 0.0 0.0 40
0.0 0.0 1.0 1
EOF
$ECHO "  running the band calculation for LiZnSb with USPP and DFT+U and spin-orbit...\c"
$PW_COMMAND < LiZnSb.band_pbe.in > LiZnSb.band_pbe.out
check_failure $?
$ECHO " done"

# clean TMP_DIR
$ECHO "  cleaning $TMP_DIR...\c"
#rm -rf $TMP_DIR/LiZnSb*
$ECHO " done"


$ECHO
$ECHO "$EXAMPLE_DIR: done"

Sample Text
Program PWSCF v.5.2.0 starts on 11Jul2015 at  5:50:32

     This program is part of the open-source Quantum ESPRESSO suite
     for quantum simulation of materials; please cite
         "P. Giannozzi et al., J. Phys.:Condens. Matter 21 395502 (2009);
          URL http://www.quantum-espresso.org",
     in publications or presentations arising from this work. More details at
     http://www.quantum-espresso.org/quote

     Serial version
     Waiting for input...
     Reading input from standard input

     Current dimensions of program PWSCF are:
     Max number of different atomic species (ntypx) = 10
     Max number of k-points (npk) =  40000
     Max angular momentum in pseudopotentials (lmaxx) =  3

     Atomic positions and unit cell read from directory:
     /home/kayi/Desktop/Program/espresso-5.2.0/tempdir/LiZnSb.save/

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     Error in routine pw_readfile (1):
     error opening xml data file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     stopping ...


error.png
回复此楼

» 猜你喜欢

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

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

ljw4010

荣誉版主 (职业作家)

小木虫从头派教主

条件错误?
不要说话
2楼2015-07-11 21:02:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

KalaShayminS

铁杆木虫 (著名写手)


小木虫: 金币+0.5, 给个红包,谢谢回帖
这个脚本需要预先计算好的scf输出文件才能计算,单单只有这个脚本是不能计算的。
3楼2015-07-11 21:55:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

taipoboy

新虫 (初入文坛)

那應該怎麼樣做~~是不是先把SCF算好,才可以算下一步Bands
4楼2015-07-12 09:53:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

taipoboy

新虫 (初入文坛)

引用回帖:
3楼: Originally posted by KalaShayminS at 2015-07-11 21:55:47
这个脚本需要预先计算好的scf输出文件才能计算,单单只有这个脚本是不能计算的。

那應該怎麼樣做~~是不是先把SCF算好,才可以算下一步Bands
5楼2015-07-12 10:34:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

KalaShayminS

铁杆木虫 (著名写手)

引用回帖:
5楼: Originally posted by taipoboy at 2015-07-12 10:34:07
那應該怎麼樣做~~是不是先把SCF算好,才可以算下一步Bands...

是的
6楼2015-07-12 19:06:21
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

taipoboy

新虫 (初入文坛)

引用回帖:
6楼: Originally posted by KalaShayminS at 2015-07-12 19:06:21
是的...

謝謝~~真的解決了。
7楼2015-07-15 16:35:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 taipoboy 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 272分材料子求调剂 +41 Loy0361 2026-04-10 54/2700 2026-04-14 18:00 by lhj2009
[考研] 一志愿085502,267分求调剂 +19 再忙也要吃饭啊 2026-04-08 20/1000 2026-04-14 16:03 by zs92450
[考研] 材料085601调剂 +32 何润采123 2026-04-10 34/1700 2026-04-14 08:47 by 木木mumu~
[考研] 一志愿中南大学 0855 机械 286 求调剂 +11 不会吃肉 2026-04-12 11/550 2026-04-13 21:59 by bljnqdcc
[考研] B区0809 ,数一英一,290 求调剂 +3 泠潍1111 2026-04-12 4/200 2026-04-13 20:35 by 学员JpLReM
[考研] +10 李多米lee. 2026-04-12 11/550 2026-04-12 22:58 by yuyin1233
[考研] 一志愿华中农微生物,288分,三年实验经历 +11 代fish 2026-04-09 11/550 2026-04-12 10:21 by Hayaay
[考研] 材料与化工300求调剂 +39 肖开文 2026-04-09 43/2150 2026-04-12 01:30 by 秋豆菜芽
[找工作] 山东高校教师考核超级无底线,员工过不下去啦 +4 qut2026 2026-04-09 9/450 2026-04-12 00:54 by qut2026
[考研] 270求调剂 +14 杨乐369 2026-04-11 14/700 2026-04-11 20:16 by 蓝云思雨
[考研] 求调剂 +11 翩翩一书生 2026-04-09 11/550 2026-04-11 19:57 by 逆水乘风
[考研] 求调剂,一志愿大连理工大学354分 +5 雨声余生 2026-04-11 6/300 2026-04-11 16:12 by 雨声余生
[考研] 296求调剂 +6 汪!?! 2026-04-09 6/300 2026-04-11 11:25 by zhq0425
[考研] 0854调剂 +8 950824he@ 2026-04-09 8/400 2026-04-11 10:11 by zhq0425
[考研] 0854调剂 +4 长弓傲 2026-04-09 4/200 2026-04-11 09:18 by 猪会飞
[考研] 调剂 +19 小张ZA 2026-04-10 20/1000 2026-04-10 22:08 by 猪会飞
[考研] 263能源动力专硕求调剂 +4 加大号饭盒袋 2026-04-10 4/200 2026-04-10 20:52 by gong120082
[考研] 337求调剂 +4 Gky09300550, 2026-04-09 4/200 2026-04-09 17:18 by 帕尔马拉特
[考研] 0860004 求调剂 309分 +6 Yin DY 2026-04-09 6/300 2026-04-09 10:19 by 啊李999
[考研] 二次调剂求老师收留 +3 笑笑袁 2026-04-08 3/150 2026-04-08 23:50 by 醉在风里
信息提示
请填处理意见