orbital_viewer.py 文件源码

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

项目:notebook-molecular-visualization 作者: Autodesk 项目源码 文件源码
def _calc_orb_grid(self, orbital):
        """ Calculate grid of values for this orbital

        Args:
            orbital (moldesign.Orbital): orbital to calcualte grid for

        Returns:
            VolumetricGrid: grid that amplitudes where computed on
            Vector[1/length**1.5]: list of orbital amplitudes at each point on grid
        """
        # NEWFEATURE: limit grid size based on the non-zero atomic centers. Useful for localized
        #    orbitals, which otherwise require high resolution
        grid = padded_grid(self.wfn.positions,
                           padding=3.0 * u.angstrom,
                           npoints=self.numpoints)
        with np.errstate(under='ignore'):
            values = orbital(grid.allpoints())
        return grid, values
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号