core
Core recipes for VASP.
ase_relax_job ¶
ase_relax_job(
atoms: Atoms,
preset: str | None = "BulkSet",
relax_cell: bool = True,
opt_params: OptParams | None = None,
copy_files: (
SourceDirectory
| dict[SourceDirectory, Filenames]
| None
) = None,
additional_fields: dict[str, Any] | None = None,
**calc_kwargs
) -> VaspASEOptSchema
Relax a structure.
Parameters:
-
atoms
(Atoms
) –Atoms object
-
preset
(str | None
, default:'BulkSet'
) –Preset to use from
quacc.calculators.vasp.presets
. -
relax_cell
(bool
, default:True
) –True if a volume relaxation should be performed. False if only the positions should be updated.
-
opt_params
(OptParams | None
, default:None
) –Dictionary of custom kwargs for the optimization process. For a list of available keys, refer to quacc.runners.ase.Runner.run_opt.
-
copy_files
(SourceDirectory | dict[SourceDirectory, Filenames] | None
, default:None
) –Files to copy (and decompress) from source to the runtime directory.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the results dictionary.
-
**calc_kwargs
–Custom kwargs for the Vasp calculator. Set a value to
None
to remove a pre-existing key entirely. For a list of available keys, refer to the quacc.calculators.vasp.vasp.Vasp calculator.
Returns:
-
VaspASEOptSchema
–Dictionary of results. See the type-hint for the data structure.
Source code in quacc/recipes/vasp/core.py
double_relax_flow ¶
double_relax_flow(
atoms: Atoms,
preset: str | None = "BulkSet",
relax_cell: bool = True,
relax1_kwargs: dict[str, Any] | None = None,
relax2_kwargs: dict[str, Any] | None = None,
) -> DoubleRelaxSchema
Double-relax a structure. This is particularly useful for a few reasons:
-
To carry out a cheaper pre-relaxation before the high-quality run.
-
To carry out a GGA calculation before a meta-GGA or hybrid calculation that requires the GGA wavefunction.
-
To carry out volume relaxations where large changes in volume can require a second relaxation to resolve forces.
Parameters:
-
atoms
(Atoms
) –Atoms object
-
preset
(str | None
, default:'BulkSet'
) –Preset to use from
quacc.calculators.vasp.presets
. -
relax_cell
(bool
, default:True
) –True if a volume relaxation (ISIF = 3) should be performed. False if only the positions (ISIF = 2) should be updated.
-
relax1_kwargs
(dict[str, Any] | None
, default:None
) –Dictionary of custom kwargs for the first relaxation.
-
relax2_kwargs
(dict[str, Any] | None
, default:None
) –Dictionary of custom kwargs for the second relaxation.
Returns:
-
DoubleRelaxSchema
–Dictionary of results from each step.
Source code in quacc/recipes/vasp/core.py
freq_job ¶
freq_job(
atoms: Atoms,
preset: str | None = "BulkSet",
energy: float = 0.0,
temperature: float = 298.15,
pressure: float = 1.0,
thermo_method: Literal[
"harmonic", "ideal_gas"
] = "harmonic",
vib_kwargs: VibKwargs | None = None,
copy_files: (
SourceDirectory
| dict[SourceDirectory, Filenames]
| None
) = None,
**calc_kwargs
) -> VibThermoSchema
Run a frequency job and calculate thermochemistry.
Parameters:
-
atoms
(Atoms
) –Atoms object
-
preset
(str | None
, default:'BulkSet'
) –Preset to use from
quacc.calculators.vasp.presets
. -
energy
(float
, default:0.0
) –Potential energy in eV. If 0, then the output is just the correction.
-
temperature
(float
, default:298.15
) –Temperature in Kelvins.
-
pressure
(float
, default:1.0
) –Pressure in bar.
-
thermo_method
(Literal['harmonic', 'ideal_gas']
, default:'harmonic'
) –Method to use for thermochemistry. Options are "harmonic" or "ideal_gas".
-
vib_kwargs
(VibKwargs | None
, default:None
) –Dictionary of kwargs for the ase.vibrations.Vibrations class.
-
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 Vasp calculator. Set a value to
None
to remove a pre-existing key entirely. For a list of available keys, refer to quacc.calculators.vasp.vasp.Vasp.
Returns:
-
VibThermoSchema
–Dictionary of results
Source code in quacc/recipes/vasp/core.py
non_scf_job ¶
non_scf_job(
atoms: Atoms,
prev_dir: SourceDirectory,
preset: str | None = "BulkSet",
nbands_factor: float = 1.2,
kpts_mode: Literal["uniform", "line"] = "uniform",
uniform_kppvol: float = 100,
line_kpt_density: float = 20,
calculate_optics: bool = False,
additional_fields: dict[str, Any] | None = None,
**calc_kwargs
) -> VaspSchema
Carry out a non-self-consistent field (NSCF) calculation.
Parameters:
-
atoms
(Atoms
) –Atoms object.
-
prev_dir
(SourceDirectory
) –Directory of the prior job. Must contain a CHGCAR and vasprun.xml file.
-
preset
(str | None
, default:'BulkSet'
) –Preset to use from
quacc.calculators.vasp.presets
. -
nbands_factor
(float
, default:1.2
) –A multiplicative factor used to adjust NBANDS when vasprun.xml(.gz) exists in prev_dir
-
kpts_mode
(Literal['uniform', 'line']
, default:'uniform'
) –Type of k-points mode. Options are "uniform" or "line".
-
uniform_kppvol
(float
, default:100
) –The k-point per volume density for the uniform k-point mode.
-
line_kpt_density
(float
, default:20
) –The k-point density for the line k-point mode.
-
calculate_optics
(bool
, default:False
) –Whether to calculate optical properties.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the results dictionary.
-
**calc_kwargs
–Custom kwargs for the Vasp calculator. Set a value to
None
to remove a pre-existing key entirely. For a list of available keys, refer to quacc.calculators.vasp.vasp.Vasp.
Returns:
-
VaspSchema
–Dictionary of results from quacc.schemas.vasp.VaspSummarize.run. See the type-hint for the data structure.
Source code in quacc/recipes/vasp/core.py
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
|
relax_job ¶
relax_job(
atoms: Atoms,
preset: str | None = "BulkSet",
relax_cell: bool = True,
copy_files: (
SourceDirectory
| dict[SourceDirectory, Filenames]
| None
) = None,
additional_fields: dict[str, Any] | None = None,
**calc_kwargs
) -> VaspSchema
Relax a structure.
Parameters:
-
atoms
(Atoms
) –Atoms object
-
preset
(str | None
, default:'BulkSet'
) –Preset to use from
quacc.calculators.vasp.presets
. -
relax_cell
(bool
, default:True
) –True if a volume relaxation (ISIF = 3) should be performed. False if only the positions (ISIF = 2) should be updated.
-
copy_files
(SourceDirectory | dict[SourceDirectory, Filenames] | None
, default:None
) –Files to copy (and decompress) from source to the runtime directory.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the results dictionary.
-
**calc_kwargs
–Custom kwargs for the Vasp calculator. Set a value to
None
to remove a pre-existing key entirely. For a list of available keys, refer to the quacc.calculators.vasp.vasp.Vasp calculator.
Returns:
-
VaspSchema
–Dictionary of results from quacc.schemas.vasp.VaspSummarize.run. See the type-hint for the data structure.
Source code in quacc/recipes/vasp/core.py
static_job ¶
static_job(
atoms: Atoms,
preset: str | None = "BulkSet",
copy_files: (
SourceDirectory
| dict[SourceDirectory, Filenames]
| None
) = None,
additional_fields: dict[str, Any] | None = None,
**calc_kwargs
) -> VaspSchema
Carry out a single-point calculation.
Parameters:
-
atoms
(Atoms
) –Atoms object
-
preset
(str | None
, default:'BulkSet'
) –Preset to use from
quacc.calculators.vasp.presets
. -
copy_files
(SourceDirectory | dict[SourceDirectory, Filenames] | None
, default:None
) –Files to copy (and decompress) from source to the runtime directory.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the results dictionary.
-
**calc_kwargs
–Custom kwargs for the Vasp calculator. Set a value to
None
to remove a pre-existing key entirely. For a list of available keys, refer to quacc.calculators.vasp.vasp.Vasp.
Returns:
-
VaspSchema
–Dictionary of results from quacc.schemas.vasp.VaspSummarize.run. See the type-hint for the data structure.