scf.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:McMurchie-Davidson 作者: jjgoings 项目源码 文件源码
def computeDipole(self):
        """Routine to compute the SCF electronic dipole moment"""
        self.el_energy = np.einsum('pq,qp',self.Core+self.F,self.P)
        for i in range(3):
            self.mu[i] = -2*np.trace(np.dot(self.P,self.M[i])) + sum([atom.charge*(atom.origin[i]-self.center_of_charge[i]) for atom in self.atoms])  
        # to debye
        self.mu *= 2.541765
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号