API reference¶
The names below are available directly from the speccert package.
Functions¶
speccert.calculate_uv_vis_spectrum(energies_ev, oscillator_strengths, transitions_character=None, spin_multiplicities=None, fwhm_ev=0.3, wavelength_range_nm=None, n_grid_points=600)
¶
Simulates optical absorption spectrum from TD-DFT vertical excitation energies and oscillator strengths using Gaussian line-shape convolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
energies_ev
|
list of float
|
Excited state vertical transition energies (eV). |
required |
oscillator_strengths
|
list of float
|
Electric dipole oscillator strengths (dimensionless). |
required |
transitions_character
|
list of str
|
|
None
|
spin_multiplicities
|
list of int
|
|
None
|
fwhm_ev
|
float
|
Full Width at Half Maximum for Gaussian broadening. |
0.30 eV
|
wavelength_range_nm
|
tuple of (float, float)
|
Plot/search window. By default it spans all transitions: from min(200 nm, shortest transition - 40 nm) to max(800 nm, longest transition + 100 nm), so that absorption maxima below 200 nm are not clipped at the edge of the grid. |
None
|
n_grid_points
|
int
|
|
600
|
Returns:
| Name | Type | Description |
|---|---|---|
result |
UVVisResult
|
|
speccert.calculate_scaled_vibrational_spectrum(frequencies_cm1, ir_intensities=None, raman_activities=None, functional='B3LYP', custom_scaling_factor=None, fwhm_cm1=12.0, freq_range_cm1=(400.0, 4000.0), n_grid_points=720, basis=None)
¶
Scales harmonic frequencies and broadens the IR stick spectrum with area-normalised Lorentzians.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequencies_cm1
|
list of float
|
Harmonic vibrational frequencies in cm^-1 (imaginary modes as negative numbers). |
required |
ir_intensities
|
list of float
|
IR intensities in km/mol. Without them no IR spectrum is computed (only scaled frequencies). |
None
|
raman_activities
|
list of float
|
Stored with the modes; not broadened. |
None
|
functional
|
str
|
Method and basis set for the CCCBDB scaling factor. |
'B3LYP'
|
basis
|
str
|
Method and basis set for the CCCBDB scaling factor. |
'B3LYP'
|
custom_scaling_factor
|
float
|
Overrides the table. |
None
|
fwhm_cm1
|
float
|
|
12.0 cm^-1
|
freq_range_cm1
|
tuple of (float, float)
|
|
(400.0, 4000.0)
|
n_grid_points
|
int
|
|
720
|
Returns:
| Name | Type | Description |
|---|---|---|
result |
VibrationalSpectrumResult
|
ir_absorbance_convoluted is in km mol^-1 per cm^-1: its integral over a band equals the intensity. |
speccert.calculate_dos_and_dband_center(energies_ev, total_dos, projected_d_dos=None, fermi_energy_ev=0.0)
¶
Analyzes electronic density of states, centers grid relative to Fermi level (E - E_F), and computes Hammer-Norskov d-band center (epsilon_d), d-band width (W_d), and filling fraction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
energies_ev
|
list of float
|
Raw energy grid (eV). |
required |
total_dos
|
list of float
|
Total density of states (states / eV). |
required |
projected_d_dos
|
list of float
|
Projected density of states for d-orbitals (states / eV). |
None
|
fermi_energy_ev
|
float
|
|
0.0 eV
|
Returns:
| Name | Type | Description |
|---|---|---|
result |
DOSAnalysisResult
|
|
speccert.assess_spectroscopy_quality(metadata, uv_vis_res=None, vib_res=None, dos_res=None)
¶
Consolidates simulated optical UV-Vis spectra, scaled IR/Raman vibrational profiles, and electronic density of states / d-band metrics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metadata
|
dict
|
|
required |
uv_vis_res
|
UVVisResult
|
|
None
|
vib_res
|
VibrationalSpectrumResult
|
|
None
|
dos_res
|
DOSAnalysisResult
|
|
None
|
Returns:
| Name | Type | Description |
|---|---|---|
report |
SpectroscopyReport
|
|