Example #1
0
    def set_max_relaxation(self,scale = 3.0):
        """set_scaling_movement( scale:float ).

        Function to change
        the behaviour of the mesh algorithm at the beginning of the
        mesh generation. It increases the max displacement before a
        re-triangulation, the time_step and the topology threshold
        """
        self.scaling_movement = scale
        ocaml.mesher_defaults_set_tolerated_rel_movement(self.my_mesher,self.scaling_movement)
Example #2
0
    def set_tolerated_rel_move(self,scale = 0.004):
        """set_tolerated_rel_move( scale:float ).

        Function to change
        the default value of the tolerated relative movement.
        The mesher stops when the relative movement of all the points
        is within this value. 
        """
        
        self.scaling_tolerated_move = scale
        ocaml.mesher_defaults_set_tolerated_rel_movement(self.my_mesher, self.scaling_tolerated_move)