PES Distortion Analysis¶
pes_distortion
¶
PES distortion analysis along QM normal modes.
Displaces a molecule along its QM-derived normal mode eigenvectors and compares the MM energy change to the QM harmonic prediction.
load_normal_modes
¶
Load pre-computed normal mode decomposition from .npz file.
The file must contain arrays eigenvalues, eigenvectors, and
masses_amu (from a mass-weighted Hessian eigendecomposition).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
Path to the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
Dictionary with keys |
Source code in q2mm/diagnostics/pes_distortion.py
compute_distortions
¶
compute_distortions(mol: Q2MMMolecule, ff: ForceField, engine, modes: dict, target_norms_ang: list[float] | None = None) -> tuple[list[dict], float, float]
Displace molecule along QM normal modes and compare energies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mol
|
Q2MMMolecule
|
Equilibrium geometry molecule. |
required |
ff
|
ForceField
|
Force field to evaluate MM energies with. |
required |
engine
|
MMEngine
|
Any backend engine with an |
required |
modes
|
dict
|
Output from |
required |
target_norms_ang
|
list[float] | None
|
Cartesian displacement
magnitudes in Angstrom. Defaults to |
None
|
Returns:
| Type | Description |
|---|---|
tuple[list[dict], float, float]
|
tuple[list[dict], float, float]: A 3-tuple of:
|