core
Core recipes for DFTB+
relax_job ¶
relax_job(
atoms: Atoms,
method: Literal[
"GFN1-xTB", "GFN2-xTB", "DFTB"
] = "GFN2-xTB",
kpts: tuple | list[tuple] | dict | None = None,
relax_cell: bool = False,
copy_files: (
SourceDirectory
| dict[SourceDirectory, Filenames]
| None
) = None,
**calc_kwargs
) -> RunSchema
Carry out a structure relaxation.
Parameters:
-
atoms
(Atoms
) –Atoms object
-
method
(Literal['GFN1-xTB', 'GFN2-xTB', 'DFTB']
, default:'GFN2-xTB'
) –Method to use.
-
kpts
(tuple | list[tuple] | dict | None
, default:None
) –k-point grid to use.
-
relax_cell
(bool
, default:False
) –Whether to relax the unit cell shape/volume in addition to the positions.
-
copy_files
(SourceDirectory | dict[SourceDirectory, Filenames] | None
, default:None
) –Files to copy (and decompress) from source to the runtime directory.
-
**calc_kwargs
–Custom kwargs for the calculator that would override the calculator defaults. Set a value to
quacc.Remove
to remove a pre-existing key entirely. For a list of available keys, refer to the ase.calculators.dftb.Dftb calculator.
Returns:
-
RunSchema
–Dictionary of results, specified in quacc.schemas.ase.summarize_run. See the return type-hint for the data structure.
Source code in quacc/recipes/dftb/core.py
static_job ¶
static_job(
atoms: Atoms,
method: Literal[
"GFN1-xTB", "GFN2-xTB", "DFTB"
] = "GFN2-xTB",
copy_files: (
SourceDirectory
| dict[SourceDirectory, Filenames]
| None
) = None,
kpts: tuple | list[tuple] | dict | None = None,
**calc_kwargs
) -> RunSchema
Carry out a single-point calculation.
Parameters:
-
atoms
(Atoms
) –Atoms object
-
method
(Literal['GFN1-xTB', 'GFN2-xTB', 'DFTB']
, default:'GFN2-xTB'
) –Method to use.
-
kpts
(tuple | list[tuple] | dict | None
, default:None
) –k-point grid to use.
-
copy_files
(SourceDirectory | dict[SourceDirectory, Filenames] | None
, default:None
) –Files to copy (and decompress) from source to the runtime directory.
-
**calc_kwargs
–Custom kwargs for the calculator that would override the calculator defaults. Set a value to
quacc.Remove
to remove a pre-existing key entirely. For a list of available keys, refer to the ase.calculators.dftb.Dftb calculator.
Returns:
-
RunSchema
–Dictionary of results, specified in quacc.schemas.ase.summarize_run. See the return type-hint for the data structure.