Beispiel #1
0
    def SetPreMeshingProcesses(self):
        
        # The order set is the order of execution:


        # process to refine elements / refine boundary
        refine_mesh_elements  = KratosPfemBase.SetElementNodesToRefineOnThreshold(self.model_part, self.MeshingParameters, self.echo_level)
        self.mesher.SetPreMeshingProcess(refine_mesh_elements)
        
        # process to refine boundary / contact boundary  
        refine_mesh_boundary = RefineMeshBoundary(self.model_part, self.RefiningParameters, self.echo_level)            
        self.mesher.SetPreMeshingProcess(refine_mesh_boundary)


        # process to remove nodes / remove boundary
        remove_mesh_nodes = KratosPfemBase.RemoveMeshNodes(self.model_part, self.MeshingParameters, self.echo_level)
        self.mesher.SetPreMeshingProcess(remove_mesh_nodes)
    def SetPreMeshingProcesses(self):

        # process to refine elements /refine boundary
        refine_mesh_elements = KratosPfemBase.SetElementNodesToRefineOnThreshold(
            self.model_part, self.MeshingParameters, self.echo_level)
        self.mesher.SetPreMeshingProcess(refine_mesh_elements)

        refine_edge_elements = KratosPfemBase.SetElementEdgesToRefine(
            self.model_part, self.MeshingParameters, self.echo_level)
        self.mesher.SetPreMeshingProcess(refine_edge_elements)

        refine_mesh_boundary = KratosPfemBase.RefineMeshBoundary(
            self.model_part, self.MeshingParameters, self.echo_level)
        self.mesher.SetPreMeshingProcess(refine_mesh_boundary)

        # process to remove nodes / remove boundary
        remove_mesh_nodes = KratosPfemBase.RemoveMeshNodes(
            self.model_part, self.MeshingParameters, self.echo_level)
        self.mesher.SetPreMeshingProcess(remove_mesh_nodes)