13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
-
17
- ###################################
18
- # Example of IR intensity
19
- ###################################
16
+ '''
17
+ IR intensity
18
+ '''
20
19
21
20
import pyscf
22
21
from gpu4pyscf .dft import rks
28
27
H 0.7570000000 0.0000000000 -0.4696000000
29
28
'''
30
29
31
- mol = pyscf . M ( atom = atom , basis = '631g' , max_memory = 32000 )
30
+ bas = '631g'
32
31
33
- mf = rks .RKS (mol , xc = 'b3lyp' )
32
+ mol = pyscf .M (atom = atom , basis = bas )
33
+
34
+ mf = mol .RKS (xc = 'b3lyp' ).to_gpu ()
34
35
e_gpu = mf .kernel () # -76.3849465432042
35
36
36
37
h = mf .Hessian ()
37
38
freq , intensity = ir .eval_ir_freq_intensity (mf , h )
38
39
print ('------------------- IR frequncy and intensity -----------------------------' )
39
40
for i in range (freq .shape [0 ]):
40
- print (f"IR frequency|intensity for { i } -th mode is { freq [i ]:.4f} |{ intensity [i ]:.4f} " )
41
+ print (f"IR frequency|intensity for { i } -th mode is { freq [i ]:.4f} (cm^-1) |{ intensity [i ]:.4f} (km/mol)" )
42
+ """
43
+ IR frequency|intensity for 0-th mode is 1613.0866 (cm^-1) |62.3982 (km/mol)
44
+ IR frequency|intensity for 1-th mode is 3874.9540 (cm^-1) |3.7823 (km/mol)
45
+ IR frequency|intensity for 2-th mode is 4006.0173 (cm^-1) |5.0603 (km/mol)
41
46
"""
42
- IR frequency|intensity for 0-th mode is 1613.0866|62.3982
43
- IR frequency|intensity for 1-th mode is 3874.9540|3.7823
44
- IR frequency|intensity for 2-th mode is 4006.0173|5.0603
45
- """
0 commit comments