Skip to content

Mobile Block Hessian ​

Module: sci_form::beta::mbh (gated; F92 validated; promotion criteria not yet met) Feature flag: beta-mbh (experimental-mbh alias)


Validation and limits ​

QuestionAnswer
Compared withanalytic diatomic stretches plus the full Hessian
Measured separationstretch 1.3e-5 SI; zero modes ≤5 cm⁻¹; benzene 24/36 degrees of freedom
Confidence regiondiatomic and benzene-sized systems
Main limitationthe experimental reference is ±2 cm⁻¹ (Ghysels); global-minimum integration is not covered

The raw rows and the exact tolerances are in the full validation matrix.


Overview ​

Reduces vibrational analysis cost from O(3N) energy evaluations to O(nflex) by treating rigid groups (aromatic rings, fused ring systems) as rigid bodies with 6 degrees of freedom (3 translation + 3 rotation). Enables real-time IR spectra for large molecules where full Hessian computation is impractical.


Theory ​

Rigid Block Detection ​

Rigid blocks are identified from the SSSR (Smallest Set of Smallest Rings):

  • Aromatic rings → rigid
  • Saturated rings ≤ 8 atoms → rigid
  • Fused ring systems → merged into single blocks
  • All other atoms → flexible (full 3 Cartesian DOF)

DOF Reduction ​

Each rigid block contributes 6 collective DOF instead of 3Nblock:

nDOF=6⋅nblocks+3⋅nflex

For a molecule with 60% of atoms in rings, the Hessian size is reduced to ~40%.

Projection Matrix ​

The projection matrix L maps reduced coordinates to Cartesian displacements:

  • Translation columns: Uniform displacement of all block atoms along x, y, z
  • Rotation columns: Infinitesimal rotation of block atoms about COM along x, y, z axes
  • Flexible columns: Standard Cartesian unit vectors for non-block atoms

Generalized Eigenvalue Problem ​

HMBHc=λMMBHc

where HMBH=LTHL and MMBH=LTML. Frequencies in cm−1:

νi=12πcλi×108.59

API ​

rust
use sci_form::beta::mbh::*;

// Detect rigid blocks
let decomposition = detect_rigid_blocks(&elements, &positions, &ring_info);
// decomposition.blocks: Vec<RigidBlock>
// decomposition.flexible_atoms: Vec<usize>
// decomposition.n_dof_reduced: usize
// decomposition.n_dof_full: usize

// Build projection matrix
let l_matrix = build_projection_matrix(&decomposition, &positions);

// Compute MBH frequencies
let config = MbhConfig { fd_step: 0.005 };
let energy_fn = |coords: &[f64]| -> f64 { /* energy evaluation */ };
let result = compute_mbh_frequencies(&elements, &positions, &ring_info, &energy_fn, &config);
// result.frequencies: Vec<f64>    (cm⁻¹)
// result.n_dof_full: usize
// result.n_dof_reduced: usize
// result.n_blocks: usize

Speedup ​

MoleculeFull DOFMBH DOFSpeedup
Benzene (6 ring + 6 H)36241.5×
Naphthalene (10 ring + 8 H)54301.8×
Aspirin (1 ring + rest)63~451.4×
Penicillin (2 rings)99~601.7×

Validation (F92, 2026-10-14) ​

External gate tests/beta_mbh_validation.rs --features beta-mbh vs scripts/validation/oracle_mbh.py (diatomic stretches from SI constants, validates the 108.59 factor): stretch 1.3e-5, benzene 1 block 24/36 DOF speedup 1.5, zero modes ≤5 cm⁻¹ (linear-molecule quartic fd artifact). Gap: experimental ±2 cm⁻¹ (Ghysels).

Tests ​

bash
cargo test --features "beta-cpm beta-mbh" --test experimental_gates -- test_mbh

8 integration tests (tests/experimental/test_mbh.rs) covering: rigid block detection, block COM computation, projection matrix orthogonality, DOF reduction verification, frequency computation, frequency ordering, and comparison between full and reduced Hessian results.

These tests live in the experimental_gates target — see Overview for the full command matrix.

Released under the MIT License.