Ase
Schemas for storing ASE-based data.
Summarize ¶
Summarize(
directory: str | Path | None = None,
move_magmoms: bool = False,
additional_fields: dict[str, Any] | None = None,
)
Get tabulated results from an Atoms object and calculator and store them in a database-friendly format. This is meant to be compatible with all calculator types.
Parameters:
-
directory(str | Path | None, default:None) –Path to the directory where the calculation was run and results were stored.
-
move_magmoms(bool, default:False) –Whether to move the final magmoms of the original Atoms object to the initial magmoms of the returned Atoms object, if relevant.
-
additional_fields(dict[str, Any] | None, default:None) –Additional fields to add to the task document.
Returns:
-
None–
Source code in quacc/schemas/ase.py
md ¶
Get tabulated results from an ASE MD run.
Parameters:
-
dyn(MolecularDynamics) –ASE MolecularDynamics object.
-
trajectory(list[Atoms] | None, default:None) –ASE Trajectory object or list[Atoms] from reading a trajectory file.
Returns:
-
DynSchema–Dictionary representation of the task document
Source code in quacc/schemas/ase.py
neb ¶
neb(
dyn: Optimizer,
n_images: int,
n_iter_return: int = -1,
trajectory: (
TrajectoryWriter | list[Atoms] | None
) = None,
) -> OptSchema
Summarize the NEB run results and store them in a database-friendly format.
Parameters:
-
dyn(Optimizer) –ASE Optimizer object used for the NEB run.
-
n_images(int) –Number of images in the NEB run.
-
n_iter_return(int, default:-1) –Number of iterations to return. If -1, all iterations are returned.
-
trajectory(TrajectoryWriter | list[Atoms] | None, default:None) –Trajectory of the NEB run, either as a Trajectory object or a list of Atoms objects.
Returns:
-
OptSchema–A dictionary containing the summarized NEB run results.
Source code in quacc/schemas/ase.py
opt ¶
opt(
dyn: Optimizer,
trajectory: list[Atoms] | None = None,
check_convergence: bool | DefaultSetting = QuaccDefault,
) -> OptSchema
Get tabulated results from an ASE optimization.
Parameters:
-
dyn(Optimizer) –ASE Optimizer object.
-
trajectory(list[Atoms] | None, default:None) –ASE Trajectory object or list[Atoms] from reading a trajectory file.
-
check_convergence(bool | DefaultSetting, default:QuaccDefault) –Whether to check the convergence of the calculation. Defaults to True in settings.
Returns:
-
OptSchema–Dictionary representation of the task document
Source code in quacc/schemas/ase.py
run ¶
Get tabulated results from a standard ASE run.
Parameters:
-
final_atoms(Atoms) –ASE Atoms following a calculation. A calculator must be attached.
-
input_atoms(Atoms) –Input ASE Atoms object to store.
Returns:
-
RunSchema–Dictionary representation of the task document
Source code in quacc/schemas/ase.py
VibSummarize ¶
VibSummarize(
vib_object: Vibrations | VibrationsData,
directory: str | Path | None = None,
additional_fields: dict[str, Any] | None = None,
)
Summarize an ASE Vibrations analysis.
Parameters:
-
vib_object(Vibrations | VibrationsData) –Instantiated ASE Vibrations object.
-
directory(str | Path | None, default:None) –Path to the directory where the results will be stored.
-
additional_fields(dict[str, Any] | None, default:None) –Additional fields to add to the task document.
Returns:
-
None–
Source code in quacc/schemas/ase.py
vib ¶
Get tabulated results from an ASE Vibrations object and store them in a database- friendly format.
Parameters:
-
is_molecule(bool) –Whether the Atoms object is a molecule. If True, the vibrational modes are sorted by their absolute value and the 3N-5 or 3N-6 modes are taken. If False, all vibrational modes are taken.
Returns:
-
VibSchema–Dictionary representation of the task document
Source code in quacc/schemas/ase.py
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | |
vib_and_thermo ¶
vib_and_thermo(
thermo_method: Literal["ideal_gas", "harmonic"],
energy: float = 0.0,
temperature: float = 298.15,
pressure: float = 1.0,
) -> VibThermoSchema
Get tabulated results from an ASE Vibrations object and thermochemistry.
Parameters:
-
thermo_method(Literal['ideal_gas', 'harmonic']) –Method to use for thermochemistry calculations. If None, no thermochemistry calculations are performed.
-
energy(float, default:0.0) –Potential energy in eV used as the reference point for thermochemistry calculations.
-
temperature(float, default:298.15) –Temperature in K for thermochemistry calculations.
-
pressure(float, default:1.0) –Pressure in atm for thermochemistry calculations
Returns:
-
VibThermoSchema–Dictionary representation of the task document