sp (single point)¶
sp computes the energy and atomic forces of one structure with the selected backend, and with --hess also the Hessian. It runs no optimization: the geometry stays as given.
What it is for¶
Check before an optimization: confirm that the charge and multiplicity are accepted and that the backend returns a finite energy and forces.
Compare backends: evaluate the same structure with the MLIPs (machine-learning interatomic potentials) UMA, ORB, MACE, and AIMNet2, or with DFT (
-b dft).Reference values: forces and Hessians as
.npyfiles, and the energy in the console orresult.json, for your own analysis.
Examples¶
1. Energy and forces¶
Evaluate a neutral singlet with the default backend (UMA).
pdb2reaction sp -i structure.pdb -q 0 -m 1 --out-json
The run succeeded when the console prints [sp] energy = … a.u. |force|_max = … a.u./bohr and result_sp/ has forces.npy and result.json with energy_au.
2. Add the full Hessian¶
--hess also computes the Hessian.
pdb2reaction sp -i structure.pdb -q 0 -m 1 --hess
How it works¶
Reading the structure: PDB, mmCIF, XYZ, and GJF inputs are read. The charge comes from
-q,-l(PDB/mmCIF input), YAMLcalc.charge, or a.gjfheader. Atoms given with--freeze-atomsare frozen.Energy and forces: The backend is called once at the input geometry.
spprints the energy and the largest force component and saves the forces toforces.npy.Hessian (with
--hess):--hessian-calc-mode FiniteDifferencedifferentiates the forces numerically;Analyticaluses the analytical Hessian of UMA, ORB, MACE, AIMNet2, or DFT. With UMA,Analyticalcannot run with--uma-workersabove 1.
Output files¶
sp writes these files to --out-dir:
File |
Contents |
Written |
|---|---|---|
|
Forces as an |
Always |
|
Cartesian Hessian without mass weighting (Hartree/bohr²): |
With |
|
Energy ( |
With |
|
Same content as |
With |
Main options¶
Option |
Type |
Default |
Description |
|---|---|---|---|
|
path |
(required) |
Input structure ( |
|
integer |
|
Total charge. Required unless |
|
integer |
|
Spin multiplicity (2S+1); a |
|
text |
|
Per-residue formal charges (e.g. |
|
text |
|
Calculator ( |
|
flag |
|
Also compute the Hessian and write |
|
|
|
Hessian method (finite difference / analytical); used with |
|
text |
|
Atoms to freeze (1-based, comma-separated, e.g. |
|
path |
|
Output directory |
|
flag |
|
Write |
See the generated CLI reference for every option.
Note: In YAML (
--config),calcsets the backend andgeom.freeze_atomsadds frozen atoms (1-based), merged with--freeze-atoms.
Notes¶
Energy looks wrong: re-check the charge and multiplicity.
Frozen atoms get zero force.
Cap hydrogens:
spdoes not freeze the parent atoms of the cap hydrogens thatextractadds; list them in--freeze-atomsif you want them fixed.Atomic charges:
sp -b dftgives the DFT energy and forces only. For Mulliken, meta-Löwdin, and IAO charges, usedft.A failed run prints a one-line
Error: …orUnhandled error during single-point calculation:with a traceback, and exits with a nonzero code; see Error handling.Exit codes: see Exit codes.
See also¶
opt — optimize the structure
tsopt — optimize a transition-state (TS) candidate
freq — vibrational analysis and thermochemistry
dft — DFT single point with atomic charges
MLIP Backends — choosing a backend, and the Hugging Face login that UMA needs
Refine an MLIP TS with DFT —
-b dftsettings and GPU memoryTroubleshooting — what to do when a run fails