CylMesh.py 文件源码

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

项目:discretize 作者: simpeg 项目源码 文件源码
def vol(self):
        """Volume of each cell"""
        if getattr(self, '_vol', None) is None:
            if self.nCy > 1:
                raise NotImplementedError('vol not yet implemented for 3D '
                                          'cyl mesh')
            az = pi*(self.vectorNx**2 - np.r_[0, self.vectorNx[:-1]]**2)
            self._vol = np.kron(self.hz, az)
        return self._vol

    ####################################################
    # Operators
    ####################################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号