@@ -87,10 +87,10 @@ def example_thermal_simulation(show_thermal_visual_outputs: bool = True, flag_in
8787 # run geo.create_model in order for the thermal simulation to work (geo.single_simulation is not needed).
8888 # Obviously when the model is modified and the losses can be out of date and therefore the
8989 # geo.single_simulation needs to run again.
90- # geo.thermal_simulation(thermal_conductivity_dict, boundary_temperatures, boundary_flags, case_gap_top,
91- # case_gap_right, case_gap_bot, show_thermal_visual_outputs,
92- # color_scheme=fmt.colors_ba_jonas, colors_geometry=fmt.colors_geometry_ba_jonas,
93- # flag_insulation=flag_insulation)
90+ geo .thermal_simulation (thermal_conductivity_dict , boundary_temperatures , boundary_flags , case_gap_top ,
91+ case_gap_right , case_gap_bot , show_thermal_visual_outputs ,
92+ color_scheme = fmt .colors_ba_jonas , colors_geometry = fmt .colors_geometry_ba_jonas ,
93+ flag_insulation = flag_insulation )
9494
9595 example_results_folder = os .path .join (os .path .dirname (__file__ ), "example_results" )
9696 if not os .path .exists (example_results_folder ):
@@ -118,14 +118,11 @@ def example_thermal_simulation(show_thermal_visual_outputs: bool = True, flag_in
118118 window_h = core_db ["window_h" ],
119119 core_h = core_db ["core_h" ])
120120
121- core_material = fmt .ImportedComplexCoreMaterial (material = fmt .Material .N27 ,
121+ core_material = fmt .ImportedComplexCoreMaterial (material = fmt .Material .N49 ,
122122 temperature = 45 ,
123- permeability_datasource = fmt .DataSource .MagNet ,
123+ permeability_datasource = fmt .DataSource .TDK_MDT ,
124124 permittivity_datasource = fmt .DataSource .LEA_MTB )
125125
126- # ASA Needs to be calculated while initialisatin of core_material! self.database is a problem (database is to hide)
127- initial_mag_curve = core_material .database .get_initial_magnetization_curve (fmt .Material .N49 , 500 , 45 )
128-
129126 core = fmt .Core (material = core_material ,
130127 core_type = fmt .CoreType .Single ,
131128 core_dimensions = core_dimensions ,
@@ -135,8 +132,7 @@ def example_thermal_simulation(show_thermal_visual_outputs: bool = True, flag_in
135132
136133 # 3. set air gap parameters
137134 air_gaps = fmt .AirGaps (fmt .AirGapMethod .Percent , core )
138- # air_gaps.add_air_gap(fmt.AirGapLegPosition.CenterLeg, 0.0005, 50)
139- air_gaps .add_air_gap (fmt .AirGapLegPosition .CenterLeg , 0.0015 , 50 )
135+ air_gaps .add_air_gap (fmt .AirGapLegPosition .CenterLeg , 0.0005 , 50 )
140136 # air_gaps.add_air_gap(fmt.AirGapLegPosition.CenterLeg, 0.0002, 90)
141137 geo .set_air_gaps (air_gaps )
142138
@@ -172,11 +168,8 @@ def example_thermal_simulation(show_thermal_visual_outputs: bool = True, flag_in
172168 geo .create_model (freq = inductor_frequency , pre_visualize_geometry = show_visual_outputs , save_png = False )
173169
174170 # 6.a. start simulation
175- geo .single_simulation_with_current_offset (freq = inductor_frequency , current = [2 ], current_offset = 4.5 , initial_mag_curve = initial_mag_curve ,
176- plot_interpolation = False , show_fem_simulation_results = show_visual_outputs )
177-
178- # geo.single_simulation(freq=inductor_frequency, current=[4.5],
179- # plot_interpolation=False, show_fem_simulation_results=show_visual_outputs)
171+ geo .single_simulation (freq = inductor_frequency , current = [4.5 ],
172+ plot_interpolation = False , show_fem_simulation_results = show_visual_outputs )
180173 # geo.get_inductances(I0=2, op_frequency=20000, skin_mesh_factor=0.5)
181174 # geo.femm_reference(freq=inductor_frequency, current=[4.5], sign=[1], non_visualize=0)#
182175
0 commit comments