Skip to content

Using Bash script

  1. copy files to working dir

    1
    cp bash/* .
    

  2. generate input files:

    1
    bash ./k_conv.sh
    

  3. run pw.x for each input file:

    1
    2
    3
    4
    for val in {02..10..1}
    do
    pw.x < $inp &> ${inp%.*}.out_conv
    done
    

  4. extract total energy from output files:

    1
    bash get_data.sh
    

  5. plot

    1
    gnuplot plot_k_conv.gplt
    

Using python

  1. copy files to working dir

    1
    cp python/* .
    

  2. generate input files:

    1
    python k_conv.py
    

  3. run pw.x for each input file:

    1
    2
    3
    4
    for val in {02..10..1}
    do
    pw.x < $inp &> ${inp%.*}.out_conv
    done
    

  4. extract total energy from output files:

    1
    python get_data.py
    

  5. plot

    1
    gnuplot plot_k_conv.py