示例#1
0
    def from_conf( conf, options ):
        from sfepy import data_dir
        from sfepy.fem import Mesh, Domain, Functions

        mesh = Mesh('test mesh',
                    data_dir + '/meshes/various_formats/abaqus_tet.inp')
        domain = Domain('test domain', mesh)

        conf_functions = {
            'get_nodes' : (get_nodes,),
            'get_elements' : (get_elements,),
        }
        functions = Functions.from_conf(transform_functions(conf_functions))

        test = Test(conf=conf, options=options,
                    domain=domain, functions=functions)
        return test
示例#2
0
    def from_conf( conf, options ):
        from sfepy import data_dir
        from sfepy.fem import Mesh, Domain, Functions

        mesh = Mesh('test mesh',
                    data_dir + '/meshes/various_formats/abaqus_tet.inp')
        mesh.nodal_bcs['set0'] = [0, 7]
        domain = Domain('test domain', mesh)

        conf_functions = {
            'get_vertices' : (get_vertices,),
            'get_cells' : (get_cells,),
        }
        functions = Functions.from_conf(transform_functions(conf_functions))

        test = Test(conf=conf, options=options,
                    domain=domain, functions=functions)
        return test
示例#3
0
    def from_conf(conf, options):
        from sfepy import data_dir
        from sfepy.fem import Mesh, Domain, Functions

        mesh = Mesh('test mesh',
                    data_dir + '/meshes/various_formats/abaqus_tet.inp')
        domain = Domain('test domain', mesh)

        conf_functions = {
            'get_nodes': (get_nodes, ),
            'get_elements': (get_elements, ),
        }
        functions = Functions.from_conf(transform_functions(conf_functions))

        test = Test(conf=conf,
                    options=options,
                    domain=domain,
                    functions=functions)
        return test
示例#4
0
    def from_conf(conf, options):
        from sfepy import data_dir
        from sfepy.fem import Mesh, Domain, Functions

        mesh = Mesh('test mesh',
                    data_dir + '/meshes/various_formats/abaqus_tet.inp')
        mesh.nodal_bcs['set0'] = [0, 7]
        domain = Domain('test domain', mesh)

        conf_functions = {
            'get_vertices': (get_vertices, ),
            'get_cells': (get_cells, ),
        }
        functions = Functions.from_conf(transform_functions(conf_functions))

        test = Test(conf=conf,
                    options=options,
                    domain=domain,
                    functions=functions)
        return test