@@ -1161,15 +1161,17 @@ def fem_logs_to_df(reluctance_df: pd.DataFrame, fem_results_folder_path: str) ->
11611161 return reluctance_df_copy
11621162
11631163 @staticmethod
1164- def full_simulation (df_geometry : pd .DataFrame , current_waveform : list , stacked_transformer_config_filepath : str , process_number : int = 1 ,
1165- show_visual_outputs : bool = False , print_derivations : bool = False ):
1164+ def full_simulation (df_geometry : pd .DataFrame , current_1_waveform : list , current_2_waveform : list , stacked_transformer_config_filepath : str ,
1165+ process_number : int = 1 , show_visual_outputs : bool = False , print_derivations : bool = False ):
11661166 """
11671167 Reluctance model (hysteresis losses) and FEM simulation (winding losses and eddy current losses) for geometries from df_geometry.
11681168
11691169 :param df_geometry: Pandas dataframe with geometries
11701170 :type df_geometry: pd.DataFrame
1171- :param current_waveform: Current waveform to simulate
1172- :type current_waveform: list
1171+ :param current_1_waveform: Time and current waveform for winding 1 to simulate. Structure: [[],[]]
1172+ :type current_1_waveform: list
1173+ :param current_2_waveform: Time and current waveform for winding 2 to simulate. Structure: [[],[]]
1174+ :type current_2_waveform: list
11731175 :param stacked_transformer_config_filepath: Filepath of the inductor optimization configuration file
11741176 :type stacked_transformer_config_filepath: str
11751177 :param process_number: process number to run the simulation on
@@ -1197,7 +1199,9 @@ def full_simulation(df_geometry: pd.DataFrame, current_waveform: list, stacked_t
11971199 window_w = df_geometry ['params_window_w' ][index_number ]
11981200
11991201 # overwrite the old time-current vector with the new one
1200- local_config .time_current_vec = current_waveform
1202+ local_config .time_current_1_vec = current_1_waveform
1203+ local_config .time_current_2_vec = current_2_waveform
1204+
12011205 target_and_fix_parameters = StackedTransformerOptimization .ReluctanceModel .calculate_fix_parameters (local_config )
12021206
12031207 # material properties
0 commit comments