Older stuff/heat_transfer_simulation_inverse.py
def complete_simulation(self):
        """
        Running all the simulation steps, if not stopped
        """

        while self.Sim.current_step_idx < self.Sim.max_step_idx:
            # Processing the callback and getting the simulation state
            # Then acting accordingly to the current state
            simulation_state = self.MyCallBack(self.Sim)
            if simulation_state == "running":
                self.Problem.evaluate_one_inverse_step()
            elif simulation_state == "paused":
                time.sleep(0.1)
            elif simulation_state == "stopped":
                print("stopping")
                break

        # Calling callback at the very end, to update the plot with complete results
        self.MyCallBack(self.Sim, force_update=True)

        # Getting the error margin
        self.error_norm = self.calculate_error()
        print("Error norm: {}".format(self.error_norm))

        Running all the simulation steps, if not stopped
        
Running all the simulation steps, if not stopped
Running all the simulation steps if not stopped
def complete_simulation(self):
        while self.Sim.current_step_idx < self.Sim.max_step_idx:
            simulation_state = self.MyCallBack(self.Sim)
            if simulation_state == "running":
                self.Problem.evaluate_one_inverse_step()
            elif simulation_state == "paused":
                time.sleep(0.1)
            elif simulation_state == "stopped":
                print("stopping")
                break
        self.MyCallBack(self.Sim, force_update=True)
        self.error_norm = self.calculate_error()
        print("Error norm: {}".format(self.error_norm))
def complete_simulation ( self ) : while self . Sim . current_step_idx < self . Sim . max_step_idx : simulation_state = self . MyCallBack ( self . Sim ) if simulation_state == "running" : self . Problem . evaluate_one_inverse_step ( ) elif simulation_state == "paused" : time . sleep ( 0.1 ) elif simulation_state == "stopped" : print ( "stopping" ) break self . MyCallBack ( self . Sim , force_update = True ) self . error_norm = self . calculate_error ( ) print ( "Error norm: {}" . format ( self . error_norm ) )
Running all the simulation steps, if not stopped
Running all the simulation steps if not stopped
"""
        Running all the simulation steps, if not stopped
        """ # Processing the callback and getting the simulation state # Then acting accordingly to the current state # Calling callback at the very end, to update the plot with complete results # Getting the error margin
self