def __init__(self, nx, ny):
"""
:param nx: The number of cells in the x direction.
:param ny: The number of cells in the y direction.
"""
points = list((x, y)
for x in np.linspace(0, 1, nx + 1)
for y in np.linspace(0, 1, ny + 1))
mesh = Delaunay(points)
super(UnitSquareMesh, self).__init__(mesh.points,
mesh.simplices)
评论列表
文章目录