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

        # set search options:
        number_of_avg_elems = 10
        mesh_id = 0
         
        # define search utility
        elemental_neighbour_search = KratosPfemBase.ElementalNeighboursSearch(self.model_part, self.domain_size, self.echo_level, number_of_avg_elems, mesh_id)

        # execute search:
        elemental_neighbour_search.Execute()

        print("::[Modeler_Utility]:: Elemental Search executed ")
コード例 #2
0
    def SearchElementNeighbours(self, model_part, echo_level):

        mesh_id = 0

        domain_size = model_part.ProcessInfo[KratosMultiphysics.DOMAIN_SIZE]
        # set search options:
        number_of_avg_elems = 10

        # define search utility
        elemental_neighbour_search = KratosPfemBase.ElementalNeighboursSearch(
            model_part, domain_size, echo_level, number_of_avg_elems, mesh_id)

        # execute search:
        elemental_neighbour_search.Execute()

        if (echo_level > 0):
            print("::[Domain_Utilities]:: Elemental Search executed ")