vasp
Schemas for VASP.
VaspSummarize ¶
VaspSummarize(
directory: str | Path | None = None,
move_magmoms: bool = True,
run_bader: bool | DefaultSetting = QuaccDefault,
run_chargemol: bool | DefaultSetting = QuaccDefault,
check_convergence: bool | DefaultSetting = QuaccDefault,
report_mp_corrections: bool = False,
additional_fields: dict[str, Any] | None = None,
)
Get tabulated results from a VASP run and store them in a database-friendly format.
Parameters:
-
directory
(str | Path | None
, default:None
) –Path to VASP outputs. A value of None specifies the calculator directory.
-
move_magmoms
(bool
, default:True
) –Whether to move the final magmoms of the original Atoms object to the initial magmoms of the returned Atoms object.
-
run_bader
(bool | DefaultSetting
, default:QuaccDefault
) –Whether a Bader analysis should be performed. Will not run if bader executable is not in PATH even if bader is set to True. Defaults to VASP_BADER in settings.
-
run_chargemol
(bool | DefaultSetting
, default:QuaccDefault
) –Whether a Chargemol analysis should be performed. Will not run if chargemol executable is not in PATH even if chargmeol is set to True. Defaults to VASP_CHARGEMOL in settings.
-
check_convergence
(bool | DefaultSetting
, default:QuaccDefault
) –Whether to throw an error if convergence is not reached. Defaults to True in settings.
-
report_mp_corrections
(bool
, default:False
) –Whether to apply the MP corrections to the task document. Defaults to False.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the task document.
Returns:
-
None
–
Source code in quacc/schemas/vasp.py
ase_opt ¶
ase_opt(
optimizer: Optimizer,
trajectory: list[Atoms] | None = None,
) -> VaspASEOptSchema
Summarize an ASE-based VASP optimization.
Parameters:
-
optimizer
(Optimizer
) –The ASE optimizer object
-
trajectory
(list[Atoms] | None
, default:None
) –ASE Trajectory object or list[Atoms] from reading a trajectory file. If None, the trajectory must be found in dyn.trajectory.filename.
Returns:
-
VaspASEOptSchema
–Dictionary representation of the task document
Source code in quacc/schemas/vasp.py
run ¶
run(final_atoms: Atoms) -> VaspSchema
Get tabulated results from a VASP run and store them in a database-friendly format.
Parameters:
-
final_atoms
(Atoms
) –ASE Atoms object following a calculation.
Returns:
-
VaspSchema
–Dictionary representation of the task document
Source code in quacc/schemas/vasp.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
|
bader_runner ¶
bader_runner(path: Path | str) -> BaderSchema
Runs a Bader partial charge and spin moment analysis using the VASP output
files in the given path. This function requires that bader
is located in
your PATH environment variable. See
http://theory.cm.utexas.edu/henkelman/code/bader for the bader code.
Parameters:
-
path
(Path | str
) –The path where the VASP output files are located. Must include CHGCAR, AECCAR0, AECCAR2, and POTCAR files. These files can be gzip'd or not -- it doesn't matter. If None, the current working directory is used.
Returns:
-
BaderSchema
–Dictionary containing the Bader analysis summary
Source code in quacc/schemas/vasp.py
chargemol_runner ¶
chargemol_runner(
path: Path | str,
atomic_densities_path: str | None = None,
) -> ChargemolSchema
Runs a Chargemol (i.e. DDEC6 + CM5) analysis using the VASP output files in
the given path. This function requires that the chargemol executable, given
by the name Chargemol_09_26_2017_linux_parallel
,
Chargemol_09_26_2017_linux_serial
, or chargemol
is in the system PATH
environment variable. See https://sourceforge.net/projects/ddec/files for
the Chargemol code.
Parameters:
-
path
(Path | str
) –The path where the VASP output files are located. Must include CHGCAR, AECCAR0, AECCAR2, and POTCAR files. These files can be gzip'd or not -- it doesn't matter. If None, the current working directory is used.
-
atomic_densities_path
(str | None
, default:None
) –The path where the reference atomic densities are located for Chargemol. If None, we assume that this directory is defined in an environment variable named DDEC6_ATOMIC_DENSITIES_DIR. See the Chargemol documentation for more information.
Returns:
-
ChargemolSchema
–Dictionary containing the Chargemol analysis summary