def running_shock_tube_simulations(self, loop_counter=0): optimization_instance = opt.Optimization_Utility() if loop_counter == 0: experiment_dictonaries = optimization_instance.looping_over_parsed_yaml_files( self.list_of_parsed_yamls, self.yaml_file_list_with_working_directory, processor=self.processor, kineticSens=self.kineticSens, physicalSens=self.physicalSens, dk=self.perturbment) experiment_dict_uncertainty_original = optimization_instance.saving_experimental_dict( experiment_dictonaries) #self.experiment_dict_uncertainty_original = experiment_dict_uncertainty_original self.experiment_dict_uncertainty_original = copy.deepcopy( experiment_dict_uncertainty_original) #call function taht loops opver experient dicts og and saves them else: experiment_dictonaries = optimization_instance.looping_over_parsed_yaml_files( self.list_of_parsed_yamls, self.updated_yaml_file_name_list, processor=self.processor, kineticSens=self.kineticSens, physicalSens=self.physicalSens, dk=self.perturbment) self.experiment_dictonaries = experiment_dictonaries #maybe save this and just pass it in return
def running_shock_tube_simulations(self): optimization_instance = opt.Optimization_Utility() experiment_dictonaries = optimization_instance.looping_over_parsed_yaml_files( self.list_of_parsed_yamls, self.yaml_file_list_with_working_directory, processor=self.processor, kineticSens=self.kineticSens, physicalSens=self.physicalSens, dk=self.perturbment) self.experiment_dictonaries = experiment_dictonaries return
# test_p = pr.Processor( '/Users/carlylagrotta/Desktop/MSI/data/test_data/FFCM1_custom.cti') yaml_file_list = [ ('MSI/data/test_data/Hong_4.yaml', 'MSI/data/test_data/Hong_4_abs.yaml'), ('MSI/data/test_data/Hong_1.yaml', ), ('MSI/data/test_data/Troe_6.yaml', 'MSI/data/test_data/Troe_6_abs.yaml'), ('MSI/data/test_data/Hong_4.yaml', 'MSI/data/test_data/Hong_4_abs.yaml') ] yaml_instance = yp.Parser() list_of_yaml_objects = yaml_instance.load_yaml_list(yaml_list=yaml_file_list) list_of_experiment_dicts = yaml_instance.parsing_multiple_dictonaries( list_of_yaml_objects=list_of_yaml_objects) optimization_instance = opt.Optimization_Utility() test = optimization_instance.looping_over_parsed_yaml_files( list_of_experiment_dicts, yaml_file_list, processor=test_p, kineticSens=1, physicalSens=1, dk=.01) matix_instance = ml.OptMatrix() Y_matrix, Y1 = matix_instance.load_Y(test, list_of_experiment_dicts, loop_counter=0) z_matrix, z1, sigma = matix_instance.build_Z(