IdealGasThermochemistry
Rigid-rotor, harmonic-oscillator, ideal-gas thermochemistry of one stationary point (a minimum or a first-order saddle point), per molecule and in atomic units.
The free energy at temperature T and standard state c0 (number density) is
G = E_el - kT [ln g_el + ln w_chiral + ln(q_trans/(V c0)) + ln q_rot + ln q_vib]
with vibrations counted from the bottom of the well (so G includes the zero-point energy),
g_el the electronic (spin) degeneracy, and w_chiral the chiral-isomer weight: 2 for a
chiral structure when include_chiral_isomer_weighting is on (the default), so that the
structure and its mirror image are counted as one species, else 1. For a chiral transition
state with a distinct mirror image this is the factor of two of Fernández-Ramos et al.,
Theor. Chem. Acc. 118, 813 (2007) (equivalently σ/2), and it cancels between a chiral reactant
and a chiral transition state. It also adds k ln 2 to the entropy of a chiral minimum, which
single-enantiomer tables do not include; turn the weighting off to compare with those.
Transition states have exactly one imaginary mode, which is excluded from q_vib; minima
have none.
Low-frequency modes can optionally use Grimme’s quasi-RRHO entropy (quasi_rrho, off by
default); soft modes are always reported in diagnostics.
Not handled: hindered rotors, anharmonicity, tunnelling, excited electronic states, solvation, heat capacities.
default_soft_mode_threshold: int
default_symmetry_check_tolerance: float
__init__(self, energy, mass, rotor: Psience.Roto.RigidRotor.RigidRotor, frequencies, *, transition_state=False, allow_imaginary=False, electronic_degeneracy=1, chiral=None, include_chiral_isomer_weighting=True, gradient=None, soft_mode_threshold=None, quasi_rrho=None, label=None, metadata=None):
energy:floatthe electronic energy (Hartree)
mass:floatthe total mass (electron masses)
rotor:RigidRotorthe rigid rotor
frequencies:Iterable[float]the vibrational frequencies
ħω(Hartree), imaginary ones negative, translations and rotations already removedtransition_state:boolwhether this is a first-order saddle point
allow_imaginary:boolaccept any number of imaginary modes (all excluded from
q_vib)electronic_degeneracy:intthe electronic degeneracy (spin multiplicity)
chiral:bool | Nonewhether the structure is chiral (non-superimposable on its mirror image); taken from the rotor’s point group if not given, and treated as achiral if that is unknown
include_chiral_isomer_weighting:boolweight a chiral structure by 2 (its mirror image counted as the same species)
gradient:np.ndarray | Nonethe Cartesian gradient at the geometry (Hartree/Bohr), for diagnostics
soft_mode_threshold:float | Nonefrequencies below this (cm⁻¹) are reported as soft
quasi_rrho:GrimmeQuasiRRHO | bool | dict | NoneGrimme’s quasi-RRHO entropy:
Truefor the defaults, a dict ofGrimmeQuasiRRHOoptions, orNone/Falsefor plain RRHOlabel:str | Nonea label for messages
metadata:dict | Noneextra diagnostic data
__repr__(self):
@classmethod
from_molecule(cls, mol, energy=None, hessian=None, gradient=None, *, evaluator=None, modes=None, transition_state=False, allow_imaginary=False, symmetry_number=None, point_group=None, spin_multiplicity=None, chiral=None, include_chiral_isomer_weighting=True, soft_mode_threshold=None, quasi_rrho=None, label=None, point_group_tolerances=None, symmetry_check_tolerance=None, **evaluator_opts):
Thermochemistry of a Molecule at its current geometry. The Hessian (and energy and
gradient) are computed with evaluator (or the molecule’s own) unless given; normal modes
come from Molecule.get_normal_modes with translations and rotations projected out, unless
a NormalModes object is passed as modes.
mol:Psience.Molecools.Moleculethe molecule (coordinates in Bohr)
energy:float | Nonethe electronic energy (Hartree)
hessian:np.ndarray | Nonethe Cartesian Hessian (Hartree/Bohr²)
gradient:np.ndarray | Nonethe Cartesian gradient (Hartree/Bohr), used for the stationarity diagnostic
evaluator:Anythe energy evaluator to use for anything not supplied
modes:Psience.Modes.NormalModes | Noneprecomputed vibrational normal modes (frequencies in Hartree)
transition_state:boolwhether this is a first-order saddle point
allow_imaginary:boolaccept any number of imaginary modes
symmetry_number:int | Noneoverride the rotational symmetry number from the point group
point_group:McUtils.Symmetry.PointGroup | Noneuse this point group instead of identifying one
spin_multiplicity:int | Nonethe electronic degeneracy; defaults to
mol.spinor 1chiral:bool | Noneoverride the chirality from the point group
include_chiral_isomer_weighting:boolweight a chiral structure by 2 (see the class docs)
soft_mode_threshold:float | Nonesoft-mode reporting threshold (cm⁻¹)
quasi_rrho:GrimmeQuasiRRHO | bool | dict | NoneGrimme’s quasi-RRHO entropy settings (see the constructor)
label:str | Nonea label for messages
point_group_tolerances:dict | Nonetolerances for
Molecule.get_point_groupsymmetry_check_tolerance:float | bool | Nonethe point group is also identified with this looser tolerance (Bohr;
default_symmetry_check_toleranceif not given,Falseto skip), and a warning is raised if that changes the symmetry number or chirality, i.e. if the structure is a slightly distorted version of a more symmetric one (common for optimized transition states). Pass looserpoint_group_tolerances(e.g.dict(tol=0.1, grouping_tol=0.1)) to use the higher symmetry.evaluator_opts:dictextra options for
Molecule.calculate_energy:returns:IdealGasThermochemistrythe thermochemistry
@classmethod
check_near_symmetry(cls, mol, point_group, point_group_tolerances=None, symmetry_check_tolerance=None, label=None):
Identify the point group again with a looser tolerance and warn if the symmetry number or chirality would change
mol:Psience.Molecools.Moleculethe molecule
point_group:McUtils.Symmetry.PointGroupthe point group found with the working tolerances
point_group_tolerances:dict | Nonethe working tolerances
symmetry_check_tolerance:float | bool | Nonethe loose tolerance (Bohr), or
Falseto skiplabel:str | Nonea label for the warning
:returns:dictdiagnostic data (
loose_point_group,symmetry_check_tolerance)
@classmethod
from_normal_modes(cls, mol, modes, energy=None, **opts):
Thermochemistry from precomputed NormalModes (e.g. a reaction-profile stage’s output),
see from_molecule
mol:Psience.Molecools.Moleculethe molecule
modes:Psience.Modes.NormalModesthe vibrational normal modes
energy:float | Nonethe electronic energy (Hartree)
:returns:IdealGasThermochemistrythe thermochemistry
@staticmethod
vibrational_mode_count(mol):
The number of vibrational modes, from the rank of the molecule’s translation/rotation projector (3N-6, 3N-5 for a linear molecule)
mol:Psience.Molecools.Moleculethe molecule
:returns:intthe mode count
@classmethod
harmonic_frequencies(cls, mol, hessian, gradient=None, n_vib=None):
Harmonic frequencies (Hartree, imaginary ones negative) from Molecule.get_normal_modes with
translations and rotations projected out. No frequency cutoff is applied: the 3N - n_vib
smallest-magnitude modes (the projected-out ones) are dropped, so soft and imaginary modes
are never discarded.
mol:Psience.Molecools.Moleculethe molecule
hessian:np.ndarraythe Cartesian Hessian (Hartree/Bohr²)
gradient:np.ndarray | Nonethe Cartesian gradient
n_vib:int | Nonethe number of vibrational modes, from
vibrational_mode_countif not given:returns:tuple[np.ndarray, float]the frequencies and the largest frequency that was dropped
@property
imaginary_frequencies(self):
The imaginary modes as negative frequencies (Hartree)
@property
real_frequencies(self):
The real vibrational frequencies (Hartree) entering q_vib
@property
zero_point_energy(self):
The harmonic zero-point energy of the real modes (Hartree)
@property
symmetry_number(self):
The rotational symmetry number used
@property
point_group(self):
The point group the symmetry number and chirality came from (if one was identified)
get_soft_modes(self, threshold=None):
Real frequencies below threshold (cm⁻¹; the instance’s soft_mode_threshold by default), in Hartree
threshold:float | Nonethe threshold (cm⁻¹)
:returns:np.ndarraythe soft-mode frequencies
translational_terms(self, temperature, standard_state=None):
Translational ln q (per standard-state volume), internal energy, enthalpy (with pV = kT),
entropy (Sackur–Tetrode) and free energy
temperature:floatthe temperature (K)
standard_state:StandardState | Nonethe standard state (1 bar by default)
:returns:dictthe term
rotational_terms(self, temperature):
Rotational terms from the rigid rotor (classical)
temperature:floatthe temperature (K)
:returns:dictthe term
vibrational_terms(self, temperature):
Vibrational terms of the real modes, from the bottom of the well (energies include the ZPE):
harmonic, with Grimme’s quasi-RRHO entropy if enabled. ln_q is (TS - U)/kT, which is the
harmonic ln q_vib without the quasi-RRHO correction.
temperature:floatthe temperature (K)
:returns:dictthe term
electronic_terms(self, temperature):
Electronic energy and spin degeneracy
temperature:floatthe temperature (K)
:returns:dictthe term
@property
chiral_isomer_weight(self) -> int:
2 for a chiral structure with include_chiral_isomer_weighting on, else 1
chiral_isomer_terms(self, temperature):
The chiral-isomer weight, ln w_chiral, as an entropy
temperature:floatthe temperature (K)
:returns:dictthe term
terms(self, temperature, standard_state=None):
Per-term breakdown (electronic, translational, rotational, vibrational, chiral_isomers)
of ln q, internal energy, enthalpy, entropy and free energy, plus their total
temperature:floatthe temperature (K)
standard_state:StandardState | Nonethe standard state (1 bar by default)
:returns:dict[str, dict]the terms
free_energy(self, temperature, standard_state=None):
The standard Gibbs free energy per molecule (Hartree), including E_el and the ZPE
temperature:floatthe temperature (K)
standard_state:StandardState | Nonethe standard state (1 bar by default)
:returns:floatG
enthalpy(self, temperature):
The enthalpy per molecule (Hartree), including E_el, the ZPE and pV = kT
(independent of the standard state for an ideal gas)
temperature:floatthe temperature (K)
:returns:floatH
entropy(self, temperature, standard_state=None):
The standard entropy per molecule (Hartree/K)
temperature:floatthe temperature (K)
standard_state:StandardState | Nonethe standard state (1 bar by default)
:returns:floatS
diagnostics(self, temperature=None, standard_state=None):
Diagnostic data: frequencies (Hartree and cm⁻¹), imaginary and soft modes, ZPE, residual gradient, point group, symmetry number, chirality, degeneracies, and (if a temperature is given) the per-term breakdown
temperature:float | Nonethe temperature (K) for the breakdown
standard_state:StandardState | Nonethe standard state for the breakdown
:returns:dictthe diagnostics