Seminario Method¶
seminario
¶
Seminario/QFUERZA force constant estimation using Q2MM's clean data models.
Estimates bond and angle force constants directly from a QM Hessian matrix using the Seminario (FUERZA) projection method. This implementation uses Q2MM's internal models (Q2MMMolecule, ForceField) instead of the legacy MM3-specific data structures.
Reference
Farrugia et al., J. Chem. Theory Comput. 2026, 22, 469-476. Seminario, Int. J. Quantum Chem. 1996, 60, 1271-1277.
seminario_bond_fc
¶
seminario_bond_fc(atom_i: int, atom_j: int, coords: ndarray, hessian: ndarray, au_units: bool = True, dft_scaling: float = DEFAULT_DFT_SCALING) -> float
Estimate bond stretching force constant via Seminario method.
Averages the i->j and j->i projections (bidirectional) to match the original Seminario method and upstream Q2MM implementation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atom_i
|
int
|
0-based index of the first atom. |
required |
atom_j
|
int
|
0-based index of the second atom. |
required |
coords
|
ndarray
|
Atomic coordinates, shape (N, 3) in Angstrom. |
required |
hessian
|
ndarray
|
Full Cartesian Hessian, shape (3N, 3N). |
required |
au_units
|
bool
|
If True, Hessian is in Hartree/Bohr^2 (Gaussian/Psi4 default). |
True
|
dft_scaling
|
float
|
Scaling factor for DFT Hessians (default 0.963). |
DEFAULT_DFT_SCALING
|
Returns:
| Type | Description |
|---|---|
float
|
Force constant in kcal/(mol·Å²) (scaled) |
Source code in q2mm/models/seminario.py
seminario_angle_fc
¶
seminario_angle_fc(atom_i: int, atom_j: int, atom_k: int, coords: ndarray, hessian: ndarray, au_units: bool = True, dft_scaling: float = DEFAULT_DFT_SCALING) -> float
Estimate angle bending force constant via modified Seminario method.
Uses the Q2MM approximation for angles (FUERZA overestimates by ~2x). Uses |dot| projection and DFT scaling to match upstream Q2MM.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
atom_i
|
int
|
outer atom (0-based) |
required |
atom_j
|
int
|
center atom (0-based) |
required |
atom_k
|
int
|
outer atom (0-based) |
required |
coords
|
ndarray
|
Atomic coordinates, shape (N, 3) in Angstrom |
required |
hessian
|
ndarray
|
Full Cartesian Hessian, shape (3N, 3N) |
required |
au_units
|
bool
|
If True, Hessian is in Hartree/Bohr^2 |
True
|
dft_scaling
|
float
|
Scaling factor for DFT Hessians (default 0.963) |
DEFAULT_DFT_SCALING
|
Returns:
| Type | Description |
|---|---|
float
|
Force constant in kcal/(mol·rad²) (scaled) |
Source code in q2mm/models/seminario.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | |
estimate_force_constants
¶
estimate_force_constants(molecule: Q2MMMolecule | Iterable[Q2MMMolecule], forcefield: ForceField | None = None, zero_torsions: bool = True, au_hessian: bool = True, invalid_policy: Literal['keep', 'skip'] = 'keep', ts_method: Literal['C', 'D'] | None = None) -> ForceField
Estimate force constants from one or more QM Hessians using Seminario.
This is the main entry point for QFUERZA force constant estimation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
molecule
|
Q2MMMolecule | Iterable[Q2MMMolecule]
|
Molecule with Hessian attached, or an iterable of molecules. |
required |
forcefield
|
ForceField | None
|
Starting force field (if None, auto-creates from one molecule) |
None
|
zero_torsions
|
bool
|
Whether to zero out torsional parameters |
True
|
au_hessian
|
bool
|
Whether Hessian is in atomic units (Hartree/Bohr^2) |
True
|
invalid_policy
|
Literal['keep', 'skip']
|
Whether to keep negative force constants ("keep") or mimic legacy MM3 Seminario averaging by skipping non-positive estimates ("skip") |
'keep'
|
ts_method
|
Literal['C', 'D'] | None
|
Eigenvalue treatment for transition-state Hessians.
|
None
|
Returns:
| Type | Description |
|---|---|
ForceField
|
ForceField with estimated parameters |
Source code in q2mm/models/seminario.py
262 263 264 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 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 | |
estimate_force_constants_method_e
¶
estimate_force_constants_method_e(molecule: Q2MMMolecule | Iterable[Q2MMMolecule], forcefield: ForceField | None = None, zero_torsions: bool = True, au_hessian: bool = True, invalid_policy: Literal['keep', 'skip'] = 'keep', fc_threshold: float = 0.0) -> tuple[ForceField, dict]
Estimate force constants using Method E (hybrid D/C).
Implements "Method E" from Limé & Norrby (J. Comput. Chem. 2015, 36, 1130): run Method D (natural eigenvalues) first, identify parameters that converge to physically unreasonable values, then replace those with Method C estimates.
This gives the accuracy benefits of Method D (~13× lower RMS error) where possible, while falling back to Method C for parameters that become unstable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
molecule
|
Q2MMMolecule | Iterable[Q2MMMolecule]
|
Molecule(s) with Hessian attached. |
required |
forcefield
|
ForceField | None
|
Starting force field. When |
None
|
zero_torsions
|
bool
|
Whether to zero out torsional parameters. |
True
|
au_hessian
|
bool
|
Whether Hessian is in atomic units. |
True
|
invalid_policy
|
Literal['keep', 'skip']
|
How to handle negative projected force constants. |
'keep'
|
fc_threshold
|
float
|
Force constants at or below this value are considered problematic and replaced with Method C values. |
0.0
|
Returns:
| Type | Description |
|---|---|
tuple[ForceField, dict]
|
Tuple of:
- ForceField with Method E hybrid parameters.
- Diagnostics dict with keys:
|