Esempio n. 1
0
 def basis(self):
     from modepy.modes import tensor_product_basis, jacobi
     from functools import partial
     return tensor_product_basis(
             self.dim, tuple(
                 partial(jacobi, 0, 0, i)
                 for i in range(self.order+1)))
Esempio n. 2
0
 def basis(self):
     from modepy.modes import tensor_product_basis, jacobi
     from functools import partial
     return tensor_product_basis(
             self.dim, tuple(
                 partial(jacobi, 0, 0, i)
                 for i in range(self.order+1)))
Esempio n. 3
0
    def from_mesh_interp_matrix(self):
        from modepy.modes import tensor_product_basis, jacobi
        from functools import partial
        meg = self.mesh_el_group

        basis = tensor_product_basis(
            self.dim,
            tuple(partial(jacobi, 0, 0, i) for i in range(meg.order + 1)))

        return mp.resampling_matrix(basis, self.unit_nodes, meg.unit_nodes)
Esempio n. 4
0
    def from_mesh_interp_matrix(self):
        from modepy.modes import tensor_product_basis, jacobi
        from functools import partial
        meg = self.mesh_el_group

        basis = tensor_product_basis(
                self.dim, tuple(
                    partial(jacobi, 0, 0, i)
                    for i in range(meg.order+1)))

        return mp.resampling_matrix(basis, self.unit_nodes, meg.unit_nodes)