コード例 #1
0
    def test_shape(self):

        grid = grid_from_sphere(2)
        space_const = function_space(grid,"DP",0)
        space_lin = function_space(grid,"P",1)
        op = laplace_slp(space_lin,space_lin,space_const).weak_form()
        assert op.shape==(space_const.global_dof_count,space_lin.global_dof_count)
コード例 #2
0
    def test_shape(self):

        grid = grid_from_sphere(2)
        space_const = function_space(grid, "DP", 0)
        space_lin = function_space(grid, "P", 1)
        op = laplace_slp(space_lin, space_lin, space_const).weak_form()
        assert op.shape == (space_const.global_dof_count,
                            space_lin.global_dof_count)
コード例 #3
0
def real_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid, "DP", 0)
    return laplace_slp(space, space, space).weak_form()
コード例 #4
0
def real_operator(space):
    return laplace_slp(space,space,space)
コード例 #5
0
def real_operator(space):
    return laplace_slp(space, space, space)
コード例 #6
0
def real_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid,"DP",0)
    return laplace_slp(space,space,space).weak_form()