コード例 #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
ファイル: test_grid_function.py プロジェクト: getzze/bempp
 def grid(self):
     return grid_from_sphere(3)
コード例 #4
0
def complex_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid, "DP", 0)
    return helmholtz_slp(space, space, space, 1).weak_form()
コード例 #5
0
def real_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid, "DP", 0)
    return laplace_slp(space, space, space).weak_form()
コード例 #6
0
def space():
    grid = grid_from_sphere(3)
    space = function_space(grid,"DP",0)
    return space
コード例 #7
0
 def grid(self):
     return grid_from_sphere(3)
コード例 #8
0
def space():
    grid = grid_from_sphere(3)
    space = function_space(grid, "DP", 0)
    return space
コード例 #9
0
def complex_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid,"DP",0)
    return helmholtz_slp(space,space,space,1).weak_form()
コード例 #10
0
def real_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid,"DP",0)
    return laplace_slp(space,space,space).weak_form()