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: float

    the electronic energy (Hartree)

  • mass: float

    the total mass (electron masses)

  • rotor: RigidRotor

    the rigid rotor

  • frequencies: Iterable[float]

    the vibrational frequencies ħω (Hartree), imaginary ones negative, translations and rotations already removed

  • transition_state: bool

    whether this is a first-order saddle point

  • allow_imaginary: bool

    accept any number of imaginary modes (all excluded from q_vib)

  • electronic_degeneracy: int

    the electronic degeneracy (spin multiplicity)

  • chiral: bool | None

    whether 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: bool

    weight a chiral structure by 2 (its mirror image counted as the same species)

  • gradient: np.ndarray | None

    the Cartesian gradient at the geometry (Hartree/Bohr), for diagnostics

  • soft_mode_threshold: float | None

    frequencies below this (cm⁻¹) are reported as soft

  • quasi_rrho: GrimmeQuasiRRHO | bool | dict | None

    Grimme’s quasi-RRHO entropy: True for the defaults, a dict of GrimmeQuasiRRHO options, or None/False for plain RRHO

  • label: str | None

    a label for messages

  • metadata: dict | None

    extra 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.Molecule

    the molecule (coordinates in Bohr)

  • energy: float | None

    the electronic energy (Hartree)

  • hessian: np.ndarray | None

    the Cartesian Hessian (Hartree/Bohr²)

  • gradient: np.ndarray | None

    the Cartesian gradient (Hartree/Bohr), used for the stationarity diagnostic

  • evaluator: Any

    the energy evaluator to use for anything not supplied

  • modes: Psience.Modes.NormalModes | None

    precomputed vibrational normal modes (frequencies in Hartree)

  • transition_state: bool

    whether this is a first-order saddle point

  • allow_imaginary: bool

    accept any number of imaginary modes

  • symmetry_number: int | None

    override the rotational symmetry number from the point group

  • point_group: McUtils.Symmetry.PointGroup | None

    use this point group instead of identifying one

  • spin_multiplicity: int | None

    the electronic degeneracy; defaults to mol.spin or 1

  • chiral: bool | None

    override the chirality from the point group

  • include_chiral_isomer_weighting: bool

    weight a chiral structure by 2 (see the class docs)

  • soft_mode_threshold: float | None

    soft-mode reporting threshold (cm⁻¹)

  • quasi_rrho: GrimmeQuasiRRHO | bool | dict | None

    Grimme’s quasi-RRHO entropy settings (see the constructor)

  • label: str | None

    a label for messages

  • point_group_tolerances: dict | None

    tolerances for Molecule.get_point_group

  • symmetry_check_tolerance: float | bool | None

    the point group is also identified with this looser tolerance (Bohr; default_symmetry_check_tolerance if not given, False to 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 looser point_group_tolerances (e.g. dict(tol=0.1, grouping_tol=0.1)) to use the higher symmetry.

  • evaluator_opts: dict

    extra options for Molecule.calculate_energy

  • :returns: IdealGasThermochemistry

    the 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.Molecule

    the molecule

  • point_group: McUtils.Symmetry.PointGroup

    the point group found with the working tolerances

  • point_group_tolerances: dict | None

    the working tolerances

  • symmetry_check_tolerance: float | bool | None

    the loose tolerance (Bohr), or False to skip

  • label: str | None

    a label for the warning

  • :returns: dict

    diagnostic 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.Molecule

    the molecule

  • modes: Psience.Modes.NormalModes

    the vibrational normal modes

  • energy: float | None

    the electronic energy (Hartree)

  • :returns: IdealGasThermochemistry

    the 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.Molecule

    the molecule

  • :returns: int

    the 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.Molecule

    the molecule

  • hessian: np.ndarray

    the Cartesian Hessian (Hartree/Bohr²)

  • gradient: np.ndarray | None

    the Cartesian gradient

  • n_vib: int | None

    the number of vibrational modes, from vibrational_mode_count if 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 | None

    the threshold (cm⁻¹)

  • :returns: np.ndarray

    the 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: float

    the temperature (K)

  • standard_state: StandardState | None

    the standard state (1 bar by default)

  • :returns: dict

    the term

 

rotational_terms(self, temperature): 

Rotational terms from the rigid rotor (classical)

  • temperature: float

    the temperature (K)

  • :returns: dict

    the 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: float

    the temperature (K)

  • :returns: dict

    the term

 

electronic_terms(self, temperature): 

Electronic energy and spin degeneracy

  • temperature: float

    the temperature (K)

  • :returns: dict

    the 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: float

    the temperature (K)

  • :returns: dict

    the 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: float

    the temperature (K)

  • standard_state: StandardState | None

    the 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: float

    the temperature (K)

  • standard_state: StandardState | None

    the standard state (1 bar by default)

  • :returns: float

    G

 

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: float

    the temperature (K)

  • :returns: float

    H

 

entropy(self, temperature, standard_state=None): 

The standard entropy per molecule (Hartree/K)

  • temperature: float

    the temperature (K)

  • standard_state: StandardState | None

    the standard state (1 bar by default)

  • :returns: float

    S

 

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 | None

    the temperature (K) for the breakdown

  • standard_state: StandardState | None

    the standard state for the breakdown

  • :returns: dict

    the diagnostics


Feedback

Examples

Templates

Documentation