-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTHT_uvvis.py
More file actions
35 lines (32 loc) · 1.02 KB
/
Copy pathTHT_uvvis.py
File metadata and controls
35 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import numpy as np
import math as mth
import cmath as cmth
import scipy.constants as cnst
from scipy.fftpack import fft, ifft, fftfreq, fftshift,dct,idct
import matplotlib.pyplot as plt
from ramanlib import uvvis
##############################################################################
# APPLICATIONS: hexatriene
# Petrenko & Neese 2007
##############################################################################
omega_nm = np.array([354.,444.,934.,1192.,1285.,1295.,1403.,1581.,1635.])
delta_nm = np.array([0.55,0.23,0.23,0.82,0.485,0.02,0.085,0.38,1.32])
gamma = 160.
omega0=39805
fig1,ax = plt.subplots(ncols=1,nrows=1,figsize=(8,8))
states_list = np.identity(9)
states_list.tolist()
xmax=48000
xmin=38000
ymax=300
ymin=0
plt.xlim(xmin,xmax)
plt.ylim(ymin,ymax)
freq,spec = uvvis(delta_nm,omega_nm,omega0,gamma)
ax.plot(freq, spec)
ax.set_xlim(xmin,xmax)
ax.set_ylim(ymin,ymax)
ax.set_xlabel(r'$\omega_I$ (cm$^{-1}$)')
ax.set_aspect((xmax-xmin)/(ymax-ymin),'box')
ax.set_ylabel(r'ABSORPTION INTENSITY')
plt.show()