TABLE OF CONTENTS


::pwtk::dos_run

SYNOPSIS

proc ::pwtk::dos_run {args} {

PURPOSE

A configurable workflow for calculating and plotting total DOS.

USAGE

   ::pwtk::dos_run  ?SPECIFIC-OPTIONS?  ?PLOTTING-OPTIONS?  HEAD

   where SPECIFIC-OPTIONS are:

       -scf
       -nscf KGRID
       -gap
       -intdos
       -e    EFERMI
       -emin EMIN
       -emax EMAX

  PLOTTING-OPTIONS:

       -out   ROOTNAME
       -w     WITH
       -w_dw  WITH
       -fc    FILL_COLOR
       -fc_dw FILL_COLOR
       -iw    WITH
       -itc   INTDOS_TEXTCOLOR

   For other PLOTTING-OPTIONS, see: ::pwtk::plot.
   Ignored PLOTTING-OPTIONS: -u

SPECIFIC OPTIONS

PLOTTING OPTIONS

For other PLOTTING OPTIONS, see ::pwtk::plot

ARGUMENTS

DESCRIPTION

Run a workflow of calculations to calculate and plot the dos.x DOS. The sequence of jobs is:

      pw.x SCF (optional, requested by -scf)
       |
       +--> for -gap if needed: pw.x fixed-occupations SCF
      (|)                        |
       +<---------------------- pw.x fixed-occupations NSCF
       |
      pw.x NSCF (optional, requested by -nscf)
       |
      dos.x
       |
      PLOTTING

BEWARE

This workflow performs dos.x calculation, implying that an SCF (or *relax) pw.x calculation must be performed prior to using this workflow, unless the -scf option is specified, which performs such an SCF calculation.

EXAMPLE

   load_fromPWI scf.$head.in

   DOS { DeltaE  = 0.05 }
   dos_run -scf -nscf {8 8 8} -emin -10  -t png  $head

RETURN VALUE

Filenames of the created DOS plot (for file terminals) or the empty string (for window terminals).

SOURCE

    printTitle DOS_RUN "Running the DOS workflow"
    print "Workflow options & arguments :  $args" 

    # pase command-line options
    
    dosParseOpts_

    # calculate

    input_pushpop {        
        input_clear IONS CELL
        
        # SCF + NSCF calcs & fetch Efermi
        SCF_NSCF_
        Efermi_

        # dos.x
        dosCalc_
    }

    # plot
    
    return [dosPlot_]
}