Older stuff/heat_transfer_simulation_inverse.py
def prepare_simulation(self, progress_callback, temperature_plot,
                           heat_flux_plot, queue, parameters):
        """
        Prepare the Simulation, InverseProblem and Callback objects
        """

        my_material = Material(parameters["rho"], parameters["cp"], parameters["lmbd"])
        self.Sim = Simulation(length=parameters["object_length"],
                              material=my_material,
                              N=parameters["number_of_elements"],
                              theta=parameters["theta"],
                              robin_alpha=parameters["robin_alpha"],
                              dt=parameters["dt"],
                              x0=parameters["place_of_interest"])

        self.Problem = InverseProblem(self.Sim,
                                      q_init=20,
                                      window_span=parameters["window_span"],
                                      tolerance=parameters["tolerance"])

        self.MyCallBack = Callback(progress_callback=progress_callback,
                                   call_at=parameters["callback_period"],
                                   temperature_plot=temperature_plot,
                                   heat_flux_plot=heat_flux_plot,
                                   queue=queue)

        Prepare the Simulation, InverseProblem and Callback objects
        
Prepare the Simulation, InverseProblem and Callback objects
Prepare the Simulation InverseProblem and Callback objects
def prepare_simulation(self, progress_callback, temperature_plot,
                           heat_flux_plot, queue, parameters):
        my_material = Material(parameters["rho"], parameters["cp"], parameters["lmbd"])
        self.Sim = Simulation(length=parameters["object_length"],
                              material=my_material,
                              N=parameters["number_of_elements"],
                              theta=parameters["theta"],
                              robin_alpha=parameters["robin_alpha"],
                              dt=parameters["dt"],
                              x0=parameters["place_of_interest"])
        self.Problem = InverseProblem(self.Sim,
                                      q_init=20,
                                      window_span=parameters["window_span"],
                                      tolerance=parameters["tolerance"])
        self.MyCallBack = Callback(progress_callback=progress_callback,
                                   call_at=parameters["callback_period"],
                                   temperature_plot=temperature_plot,
                                   heat_flux_plot=heat_flux_plot,
                                   queue=queue)
def prepare_simulation ( self , progress_callback , temperature_plot , heat_flux_plot , queue , parameters ) : my_material = Material ( parameters [ "rho" ] , parameters [ "cp" ] , parameters [ "lmbd" ] ) self . Sim = Simulation ( length = parameters [ "object_length" ] , material = my_material , N = parameters [ "number_of_elements" ] , theta = parameters [ "theta" ] , robin_alpha = parameters [ "robin_alpha" ] , dt = parameters [ "dt" ] , x0 = parameters [ "place_of_interest" ] ) self . Problem = InverseProblem ( self . Sim , q_init = 20 , window_span = parameters [ "window_span" ] , tolerance = parameters [ "tolerance" ] ) self . MyCallBack = Callback ( progress_callback = progress_callback , call_at = parameters [ "callback_period" ] , temperature_plot = temperature_plot , heat_flux_plot = heat_flux_plot , queue = queue )
Prepare the Simulation, InverseProblem and Callback objects
Prepare the Simulation InverseProblem and Callback objects
"""
        Prepare the Simulation, InverseProblem and Callback objects
        """
self
progress_callback
temperature_plot
heat_flux_plot
queue
parameters