rmgpy.statmech.
HarmonicOscillator
(frequencies=None, quantum=True)¶A statistical mechanical model of a set of one-dimensional independent harmonic oscillators. The attributes are:
Attribute | Description |
---|---|
frequencies | The vibrational frequencies of the oscillators |
quantum | True to use the quantum mechanical model, False to use the classical model |
In the majority of chemical applications, the energy levels of the harmonic oscillator are of similar magnitude to \(k_\mathrm{B} T\), requiring a quantum mechanical treatment. Fortunately, the harmonic oscillator has an analytical quantum mechanical solution.
Many vibrational motions are well-described as one-dimensional quantum harmonic oscillators. The time-independent Schrodinger equation for such an oscillator is given by
where \(m\) is the total mass of the particle. The harmonic potential results in quantized solutions to the above with the following energy levels:
Above we have introduced \(n\) as the quantum number. Note that, even in the ground state (\(n = 0\)), the harmonic oscillator has an energy that is not zero; this energy is called the zero-point energy.
The harmonic oscillator partition function is obtained by summing over the above energy levels:
This summation can be evaluated explicitly to give a closed-form analytical expression for the vibrational partition function of a quantum harmonic oscillator:
In RMG the convention is to place the zero-point energy in with the ground-state energy of the system instead of the numerator of the vibrational partition function, which gives
The energy levels of the harmonic oscillator in chemical systems are often significant compared to the temperature of interest, so we usually use the quantum result. However, the classical limit is provided here for completeness:
frequencies
¶The vibrational frequencies of the oscillators.
getDensityOfStates
(self, ndarray Elist, ndarray densStates0=None) → ndarray¶Return the density of states \(\rho(E) \ dE\) at the specified energies Elist in J/mol above the ground state. If an initial density of states densStates0 is given, the rotor density of states will be convoluted into these states.
getEnthalpy
(self, double T) → double¶Return the enthalpy in J/mol for the degree of freedom at the specified temperature T in K.
getEntropy
(self, double T) → double¶Return the entropy in J/mol*K for the degree of freedom at the specified temperature T in K.
getHeatCapacity
(self, double T) → double¶Return the heat capacity in J/mol*K for the degree of freedom at the specified temperature T in K.
getPartitionFunction
(self, double T) → double¶Return the value of the partition function \(Q(T)\) at the specified temperature T in K.
getSumOfStates
(self, ndarray Elist, ndarray sumStates0=None) → ndarray¶Return the sum of states \(N(E)\) at the specified energies Elist in J/mol above the ground state. If an initial sum of states sumStates0 is given, the rotor sum of states will be convoluted into these states.
quantum
¶quantum: ‘bool’