How-to: Parse ORCA NEB Calculations#
Problem#
You have an ORCA NEB calculation and want to extract energies, geometries, and barriers.
Solution#
For ORCA 6.1+ (Recommended)#
Use OPI-based parser:
from pathlib import Path
from chemparseplot.parse.orca.neb import parse_orca_neb
data = parse_orca_neb("job", working_dir=Path("calculation"))
# Access parsed data
energies = data["energies"] # eV
n_images = data["n_images"]
barrier = data["barrier_forward"]
converged = data["converged"]
For ORCA < 6.1#
Use legacy .interp file parser:
from pathlib import Path
from chemparseplot.parse.orca.neb import parse_orca_neb_fallback
data = parse_orca_neb_fallback("job", Path("calculation"))
if data is None:
print("Parsing failed - check .interp file exists")
Automatic Fallback#
Let the parser choose automatically:
from chemparseplot.parse.orca.neb import parse_orca_neb, HAS_OPI
if HAS_OPI:
data = parse_orca_neb("job", Path("calc"))
else:
data = parse_orca_neb_fallback("job", Path("calc"))
Data Format#
Returned dictionary contains:
Key |
Type |
Description |
|---|---|---|
|
|
Energies in eV |
|
|
RMSD from reactant |
|
|
RMSD from product |
|
|
Gradients (RMSD-r) |
|
|
Gradients (RMSD-p) |
|
|
Force vectors |
|
|
Normal termination |
|
|
Number of NEB images |
|
|
Forward barrier (eV) |
|
|
Reverse barrier (eV) |
|
|
|
|
|
ORCA version string |