Frequently asked questions
-
Can PWTK be used on HPC
clusters, i.e., does it support batch queuing?
Yes. PWTK makes submitting jobs
to batch queues easier for the user. See the section
2.8 Batch Queuing Support or the corresponding
section in the PWTK Short
Guide.
-
Can PWTK use the Quantum ESPRESSO
executables from the container?
Yes, but it requires specific instructions. Here is an
example how to use Quantum ESPRESSO
executables using the Apptainer (aka Singularity)
container:
prefix "apptainer exec /path/to/container.sif mpirun
-np N"
serial_prefix "apptainer exec
/path/to/container.sif"
bin_query false
where /path/to/container.sif is the
full pathname of the apptainer container with Quantum ESPRESSO
executables and N stands for the number of
processors. To make these instructions permanent, these
specs can be included in the main user configuration file
~/.pwtk/pwtk.tcl.
-
I want to grep specific data from the pw.x
output file, but PWTK does not
have the corresponding retrieval command?
PWTK has kind of "grep" and
"egrep" commands (::pwtk::grep,
::pwtk::grep_field, ::pwtk::egrep,
::pwtk::egrep_field). For example, suppose that
we want to retrieve the following lines from a
pw.x output file:
internal energy E=F+TS = ............ Ry
where dots stand for a given internal energy
value. This can be achieved by:
::pwtk::grep "internal energy E=F+T" file.out
where file.out is the name of the
output file. To grep the last such line from the output:
::pwtk::grep "internal energy E=F+T" file.out end
Only the energy values can be obtained by:
::pwtk::grep_field "internal energy E=F+T" file.out 4
where 4 is the index of field to retrieve.
Beware that counting starts from 0, hence 4 means
5th field. To retrieve the last internal energy from the
output file:
::pwtk::grep_field "internal energy E=F+T" file.out 4
end
-
Can PWTK read Quantum ESPRESSO
input files, i.e., can it utilize the already existing
input files?
Yes. There are two different ways how to deal with this
issue:
- To utilize Quantum ESPRESSO
input files directly without loading them into
PWTK. This works for any
Quantum
ESPRESSO executable, whose usage is
PROGRAM < INPUT >
OUPUT. Here is an example how to run a
calculation with an existing input file within the
PWTK script:
run PROGRAM FILE.in
where PROGRAM stand for
the Quantum
ESPRESSO executable (e.g. pw.x, neb.x)
and FILE.in is the name of the input
file. The output is then written to
FILE.out. For more details, see
::pwtk::run.
- To load the existing Quantum ESPRESSO
input file into PWTK. This
works only for explicitly supported codes, which are
listed
here. Here is an example for pw.x:
load_fromPWI FILE.in
# let's change ecutwfc and run the calculation
SYSTEM { ecutwfc = 50.0 }
runPW FILE-ecut50.in
The advantage of loading the input into
PWTK (for pw.x
this is achieved via load_fromPWI) is that
input variables can then be changed on the fly. For
more info, see
Loading input data from existing input files and
Commands for running and restarting Quantum ESPRESSO
calculations.