当前位置: 首页>>代码示例>>Python>>正文


Python Molecule.toRadian方法代码示例

本文整理汇总了Python中molecule.Molecule.toRadian方法的典型用法代码示例。如果您正苦于以下问题:Python Molecule.toRadian方法的具体用法?Python Molecule.toRadian怎么用?Python Molecule.toRadian使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在molecule.Molecule的用法示例。


在下文中一共展示了Molecule.toRadian方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: open

# 需要导入模块: from molecule import Molecule [as 别名]
# 或者: from molecule.Molecule import toRadian [as 别名]
#!/usr/bin/env python

import sys, numpy as np

sys.path.insert(0,'../../')
from molecule import Molecule
from hessian import Hessian
from frequencies import Frequencies

f    = open("template.dat","r").read()
mol  = Molecule(f)
mol.toBohr()
mol.toRadian()

hess  = Hessian(mol,f)
hess.writeHessian()

##  build Gmatrix for H2  ## 

muH  = 1/mol.masses[0]

G      = np.matrix(np.zeros((1,1)))
G[0,0] = 2*muH

h    = open("hessian.dat","r").read()
freq = Frequencies(mol,h,G)

for i in freq.getFrequencies():
	print(i)
开发者ID:CCQC,项目名称:summer-program,代码行数:31,代码来源:h2.py

示例2: open

# 需要导入模块: from molecule import Molecule [as 别名]
# 或者: from molecule.Molecule import toRadian [as 别名]
#!/usr/bin/env python

import sys, numpy as np

sys.path.append("../../")
from molecule import Molecule
from frequencies import Frequencies

f    = open("template.dat","r").read()
h2cn = Molecule(f)
h2cn.toBohr()
h2cn.toRadian()

##  from CFOUR, CCSD(T) / cc-pVTZ
hessianString = open("FCMINT","r").read()

##  from Andreas' 8950C code 
G = np.array([[  1.54746225e-01,  -4.31856759e-02,  -6.50791831e-02,  -4.31856759e-02,
   -6.50791831e-02,   0.00000000e+00],
 [ -4.31856759e-02,   1.07556906e+00,  -5.68642680e-02,  -3.85732708e-02,
    1.24315992e-01,   1.35385841e-17],
 [ -6.50791831e-02,  -5.68642680e-02,   1.05825984e+00,   1.24315992e-01,
   -1.29274488e-01,  -2.34948504e-17],
 [ -4.31856759e-02,  -3.85732708e-02,   1.24315992e-01,   1.07556906e+00,
   -5.68642680e-02,   1.35385841e-17],
 [ -6.50791831e-02,   1.24315992e-01,  -1.29274488e-01,  -5.68642680e-02,
    1.05825984e+00,  -2.34948504e-17],
 [  0.00000000e+00,   1.35385841e-17,  -2.34948504e-17,   1.35385841e-17,
   -2.34948504e-17,   3.13101008e+00]])

开发者ID:CCQC,项目名称:summer-program,代码行数:31,代码来源:h2cn.py


注:本文中的molecule.Molecule.toRadian方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。