Page 1 of 1

WFK file cannot be used during phonon calculations

Posted: Sat Dec 10, 2011 5:56 am
by vistawanted
Dear all:
I am new to use Abinit for phonon calculations. However, when I tried the tutorial of tr2_1, it failed at the begining of data set 4 as:

Code: Select all

-inwffil : will read wavefunctions from disk file AlAs.o_DS1_WFK
application called MPI_Abort(MPI_COMM_WORLD, 13) - process 3
application called MPI_Abort(MPI_COMM_WORLD, 13) - process 1
-P-0000
-P-0000  inwffil: ERROR
-P-0000   The file AlAs.o_DS1_WFK cannot be used to start the
-P-0000   present calculation. It was asked that the wavefunctions be accurate, but
-P-0000   at least one of the k points could not be generated from a symmetrical one.
-P-0000   dksqmax=    6.662397E-05
-P-0000   Action: check your wf file and k point input variables
-P-0000     (e.g. kptopt or shiftk might be wrong in the present dataset or the preparatory one.

The pseudopotential I used is HGH, and the input file has been changed a little for better result:

Code: Select all

# Crystalline AlAs : computation of the phonon spectrum

   ndtset   10
#Set 1 : ground state self-consistency

  getwfk1   0            # Cancel default
  kptopt1   1            # Automatic generation of k points, taking
                         # into account the symmetry
    nqpt1   0            # Cancel default
  tolvrs1   1.0d-18      # SCF stopping criterion (modify default)
  rfphon1   0            # Cancel default
 
#Q vectors for all datasets

     nqpt   1            # One qpt for each dataset (only 0 or 1 allowed)
                         # This is the default for all datasets and must
                         #  be explicitly turned off for dataset 1.

     qpt2   0.00000000E+00  0.00000000E+00  0.00000000E+00
     qpt3   0.00000000E+00  0.00000000E+00  0.00000000E+00
     qpt4   2.50000000E-01  0.00000000E+00  0.00000000E+00
     qpt5   5.00000000E-01  0.00000000E+00  0.00000000E+00
     qpt6   2.50000000E-01  2.50000000E-01  0.00000000E+00
     qpt7   5.00000000E-01  2.50000000E-01  0.00000000E+00
     qpt8  -2.50000000E-01  2.50000000E-01  0.00000000E+00
     qpt9   5.00000000E-01  5.00000000E-01  0.00000000E+00
     qpt10 -2.50000000E-01  5.00000000E-01  2.50000000E-01

#Set 2 : Response function calculation of d/dk wave function

    iscf2   -3         # Need this non-self-consistent option for d/dk
  kptopt2   2          # Modify default to use time-reversal symmetry
  rfphon2   0          # Cancel default
  rfelfd2   2          # Calculate d/dk wave function only
  tolwfr2   1.0d-22    # Use wave function residual criterion instead

#Set 3 : Response function calculation of Q=0 phonons and electric field pert.

  getddk3   2          # d/dk wave functions from last dataset
  kptopt3   2          # Modify default to use time-reversal symmetry
  rfelfd3   3          # Electric-field perturbation response only

#Sets 4-10 : Finite-wave-vector phonon calculations (defaults for all datasets)

   getwfk   1          # Use GS wave functions from dataset1
   kptopt   3          # Need full k-point set for finite-Q response
   rfphon   1          # Do phonon response
  rfatpol   1 2        # Treat displacements of all atoms
    rfdir   1 1 1      # Do all directions (symmetry will be used)
   tolvrs   1.0d-8     # This default is active for sets 3-10

#######################################################################
#Common input variables

#Definition of the unit cell
    acell   3*10.61       
    rprim   0.0  0.5  0.5   
            0.5  0.0  0.5   
            0.5  0.5  0.0   

#Definition of the atom types
   ntypat   2         
    znucl   13 33     

#Definition of the atoms
    natom   2         
    typat   1 2     
                       
     xred   0.0  0.0  0.0
            0.25 0.25 0.25 

#Gives the number of band, explicitely (do not take the default)
    nband   4         

#Exchange-correlation functional

      ixc   1             # LDA Teter Pade parametrization

#Definition of the planewave basis set

     ecut   15.0           # Maximal kinetic energy cut-off, in Hartree

#Definition of the k-point grid
    ngkpt   5  5  5         
  nshiftk   4              # Use one copy of grid only (default)
   shiftk   0.0 0.0 0.5    # This gives the usual fcc Monkhorst-Pack grid
            0.0 0.5 0.0
            0.5 0.0 0.0
            0.5 0.5 0.5

#Definition of the SCF procedure
     iscf   7          # Self-consistent calculation, using algorithm 5
    nstep   100        # Maximal number of SCF cycles
   diemac   9.0        # Although this is not mandatory, it is worth to

 optforces 1

The version of Abinit is 6.10.2, compiled by mpif90, which was compiled by ifort 2011. My OS is CentOS 6.0 x86_64, running on AMD phenom II x6 & 16GB platform.

Re: WFK file cannot be used during phonon calculations

Posted: Sat Dec 10, 2011 11:41 am
by jzwanzig
I think the problem may be that you have changed ngkpt to 5 5 5 but you did not change qpt accordingly. abinit at least works best and may even require that the qpt in a phonon calculation be the difference of two kpts in the scf calculation. If you change ngkpt then you should first do a run where you set nshiftk to 1 and shiftk to 0 0 0, to get the list of kpts which are appropriate to use as q pts (this procedure is more fully described in the documentation).

Re: WFK file cannot be used during phonon calculations

Posted: Sun Dec 11, 2011 6:17 am
by vistawanted
jzwanzig wrote:I think the problem may be that you have changed ngkpt to 5 5 5 but you did not change qpt accordingly. abinit at least works best and may even require that the qpt in a phonon calculation be the difference of two kpts in the scf calculation. If you change ngkpt then you should first do a run where you set nshiftk to 1 and shiftk to 0 0 0, to get the list of kpts which are appropriate to use as q pts (this procedure is more fully described in the documentation).

Thank you, Prof. Zwanziger, for your kindly reply.
I have tested the problem for several times and finally found such problem were caused by the mismatch between k-points and q-points.
Up to now, I think if we wanna calculate phonon at x y z q-mesh, the k-points have to be setted as mx ny iz grid, where m, n, and i are integer. And the x y z q-mesh could be obtained through x y z MP-k points calculation.