Using Bash script
-
copy files to working dir
1
cp bash/* .
-
generate input files:
1
bash ./k_conv.sh
-
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
-
extract total energy from output files:
1
bash get_data.sh
-
plot
1
gnuplot plot_k_conv.gplt
Using python
-
copy files to working dir
1
cp python/* .
-
generate input files:
1
python k_conv.py
-
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
-
extract total energy from output files:
1
python get_data.py
-
plot
1
gnuplot plot_k_conv.py