abics.applications.latgas_abinitio_interface.qe module¶
To deal with QuantumESPRESSO
-
class
abics.applications.latgas_abinitio_interface.qe.QESolver(path_to_solver, *, parallel_level=None)[source]¶ Bases:
abics.applications.latgas_abinitio_interface.base_solver.SolverBaseSolver class dealing with QuantumESPRESSO (with new XML format).
Initialize the solver.
- Parameters
path_to_solver (str) – Path to the solver.
parallel_level (dict) – Parallelization levels
-
class
Input(*, parallel_level=None)[source]¶ Bases:
objectQE input files manager.
-
pwi¶ QE input.
- Type
qe_tools.parsers.PwInputFile
-
datadir¶ Path to the data directory of QE.
- Type
str
-
filetocheck¶ Name of the file to be used for check finished.
- Type
str
-
parallel_level¶ Parallelization levels
- Type
dict
-
check_finished(workdir)[source]¶ Check if the solver program has finished or not.
- Parameters
workdir (str) – Path to the working directory.
-
cl_args(nprocs, nthreads, workdir)[source]¶ Generate command line arguments of the solver program.
- Parameters
nprocs (int) – The number of processes.
nthreads (int) – The number of threads.
workdir (str) – Path to the working directory.
- Returns
args – Arguments of command
- Return type
list[str]
-
cleanup(workdir)[source]¶ Remove file for check finished.
- Parameters
workdir (str) – Path to the working directory.
-
from_directory(base_input_dir)[source]¶ Initialize information from files in base_input_dir.
- Parameters
base_input_dir (str) – Path to the directory including base input files.
-
-
class
Output(prefix)[source]¶ Bases:
objectOutput manager.
-
get_results(workdir)[source]¶ Get energy and structure obtained by the solver program.
- Parameters
workdir (str) – Path to the working directory.
- Returns
phys – Total energy and atomic structure. The energy is measured in the units of eV and coordinates is measured in the units of Angstrom.
- Return type
named_tuple(“energy”, “structure”)
-