Add Grimme's quasi-RRHO vibrational entropy option - #67
Merged
Conversation
The rigid-rotor-harmonic-oscillator entropy diverges as a vibrational mode's frequency goes to zero, so low-frequency modes (floppy torsions, weak rotors) get a spuriously large entropy. Add Grimme's quasi-RRHO treatment (Chem. Eur. J. 2012, 18, 9955): each mode's entropy is interpolated between the harmonic-oscillator and free-rotor values with weight 1/(1+(100/nu)^4), so high-frequency modes are unchanged while low-frequency modes approach the finite free-rotor limit. - thermo/thermo.py: `Thermo(..., quasi_rrho=False)`; `_compute_vibrational_entropy` uses the new `_quasi_rrho_entropy` interpolation when enabled. The harmonic path is numerically unchanged, so the default preserves existing results. - thermo/api.py, thermo/screening.py, cli/thermo.py: thread `quasi_rrho` through `run_thermo`, `dftbplus_thermo`, `screen`, and `screen --quasi-rrho`. Applies to every engine (it acts on the frequencies) and pairs with implicit solvation, where low-mode entropy is the main RRHO weakness. Validated: modes above ~100 cm^-1 are unchanged (real DFTB+ ethane matches the harmonic result), while a molecule with 25/40 cm^-1 modes has its entropy reduced by ~3 cal/mol/K.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67 +/- ##
==========================================
+ Coverage 96.43% 96.47% +0.03%
==========================================
Files 22 22
Lines 1404 1419 +15
==========================================
+ Hits 1354 1369 +15
Misses 50 50
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
quasi_rrhooption (CLI--quasi-rrho) for the vibrational entropy.Why
The rigid-rotor-harmonic-oscillator entropy of a mode diverges as its frequency → 0, so low-frequency modes (floppy torsions, weak/hindered rotors, non-covalent complexes) get a spuriously large entropy — a well-known RRHO weakness. This is also the dominant error left in implicit-solvent free energies (#66).
What
Grimme's quasi-RRHO (Chem. Eur. J. 2012, 18, 9955): each mode's entropy is interpolated between the harmonic-oscillator and free-rotor values, weighted by
w = 1 / (1 + (100/ν)^4). High-frequency modes stay harmonic; low-frequency modes approach the finite free-rotor limit.thermo/thermo.py—Thermo(..., quasi_rrho=False);_compute_vibrational_entropyuses the new_quasi_rrho_entropyinterpolation when enabled. The harmonic path is numerically unchanged, so the default preserves existing results.thermo/api.py,thermo/screening.py,cli/thermo.py— threadquasi_rrhothroughrun_thermo,dftbplus_thermo,screen, andscreen --quasi-rrho.Engine-independent (it acts on the frequencies), so it also applies to a future xTB engine.
Usage
Validation