def to_continuum(self,grid_func):
coeffs_x = np.dot(self.stencil_x.c2s,grid_func)
coeffs_xy = np.dot(coeffs_x,self.stencil_y.c2s.transpose())
def f(x,y):
mx,my = [s._coord_global_to_ref(c) \
for c,s in zip([x,y],self.stencils)]
return pval2d(mx,my,coeffs_xy)
return f
评论列表
文章目录