spectrum¶
- psi4.driver.p4util.spectrum(*, poles, residues, kind='opa', lineshape='gaussian', gamma=0.2, npoints=5000, out_units='nm')[source]¶
One-photon absorption (OPA) or electronic circular dichroism (ECD) spectra with phenomenological line broadening.
This function gives arrays of values ready to be plotted as OPA spectrum:
or ECD spectrum:
in macroscopic units of
. The lineshape function with phenomenological broadening is used for the convolution of the infinitely narrow results from a linear response calculation.- Parameters:
poles (
Union
[List
[float
],ndarray
]) – Poles of the response function, i.e. the excitation energies. These are expected in atomic units of angular frequency.residues (
Union
[List
[float
],ndarray
]) – Residues of the linear response functions, i.e. transition dipole moments (OPA) and rotatory strengths (ECD). These are expected in atomic units.kind (
str
) – {“opa”, “ecd”} Which kind of spectrum to generate, one-photon absorption (“opa”) or electronic circular dichroism (“ecd”). Default is opa.lineshape (
str
) – {“gaussian”, “lorentzian”} The lineshape function to use in the fitting. Default is gaussian.gamma (
float
) – Full width at half maximum of the lineshape function. Default is 0.2 au of angular frequency. This value is expected in atomic units of angular frequency.npoints (
int
) – How many points to generate for the x axis. Default is 5000.out_units (
str
) –Units for the output array x, the x axis of the spectrum plot. Default is wavelengths in nanometers. Valid (and case-insensitive) values for the units are:
au atomic units of angular frequency
Eh atomic units of energy
eV
nm
THz
- Returns:
spectrum – The fitted electronic absorption spectrum, with units for the x axis specified by the out_units parameter. This is a dictionary containing the convoluted (key: convolution) and the infinitely narrow spectra (key: sticks).
{"convolution": {"x": np.ndarray, "y": np.ndarray}, "sticks": {"poles": np.ndarray, "residues": np.ndarray}}
- Return type:
Dict[str, numpy.ndarray]
Notes
Conversion of the broadening parameter
. The lineshape functions are formulated as functions of the angular frequency . When converting to other physical quantities, the broadening parameter has to be modified accordingly. If is the chosen broadening parameter then:Wavelength:
Frequency:
Energy:
References
A. Rizzo, S. Coriani, K. Ruud, “Response Function Theory Computational Approaches to Linear and Nonlinear Optical Spectroscopy”. In Computational Strategies for Spectroscopy. https://doi.org/10.1002/9781118008720.ch2