vasp
Schemas for VASP.
summarize_vasp_opt_run ¶
summarize_vasp_opt_run(
optimizer: Optimizer,
trajectory: Trajectory | list[Atoms] | None = None,
directory: str | Path | None = None,
move_magmoms: bool = True,
run_bader: bool = _DEFAULT_SETTING,
run_chargemol: bool = _DEFAULT_SETTING,
check_convergence: bool = _DEFAULT_SETTING,
report_mp_corrections: bool = False,
additional_fields: dict[str, Any] | None = None,
store: Store | None = _DEFAULT_SETTING,
) -> VaspASEOptSchema
Merges the vasp_summarize_run
with an summarize_opt_run
, meant to
be used for an ASE-based VASP relaxation.
Parameters:
-
optimizer
(Optimizer
) –The ASE optimizer object
-
trajectory
(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.traj_atoms.
-
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
, default:_DEFAULT_SETTING
) –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
, default:_DEFAULT_SETTING
) –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
, default:_DEFAULT_SETTING
) –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.
-
store
(Store | None
, default:_DEFAULT_SETTING
) –Maggma Store object to store the results in. Defaults to
SETTINGS.STORE
,
Source code in quacc/schemas/vasp.py
vasp_summarize_run ¶
vasp_summarize_run(
final_atoms: Atoms,
directory: str | Path | None = None,
move_magmoms: bool = True,
run_bader: bool = _DEFAULT_SETTING,
run_chargemol: bool = _DEFAULT_SETTING,
check_convergence: bool = _DEFAULT_SETTING,
report_mp_corrections: bool = False,
additional_fields: dict[str, Any] | None = None,
store: Store | None = _DEFAULT_SETTING,
) -> 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.
-
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
, default:_DEFAULT_SETTING
) –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
, default:_DEFAULT_SETTING
) –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
, default:_DEFAULT_SETTING
) –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.
-
store
(Store | None
, default:_DEFAULT_SETTING
) –Maggma Store object to store the results in. Defaults to
SETTINGS.STORE
,
Returns:
-
VaspSchema
–Dictionary representation of the task document
Source code in quacc/schemas/vasp.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 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 |
|