Skip to content

Commit 2a1f11c

Browse files
authored
Merge pull request #171 from upb-lea/dct
update return of reluctance model full simulation: core and winding loss
2 parents fca2f8d + 8122a9f commit 2a1f11c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

femmt/optimization/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,8 @@ def full_simulation(df_geometry: pd.DataFrame, current_waveform: list, inductor_
680680
reluctance_output: ReluctanceModelOutput = InductorOptimization.ReluctanceModel.single_reluctance_model_simulation(reluctance_model_input)
681681

682682
p_total = reluctance_output.p_loss_total
683-
return reluctance_output.volume, p_total, reluctance_output.area_to_heat_sink
683+
684+
return reluctance_output.volume, p_total, reluctance_output.area_to_heat_sink, reluctance_output.p_winding, reluctance_output.p_hyst
684685

685686
class FemSimulation:
686687
"""Contains methods to perform FEM simulations or process their results."""

femmt/optimization/sto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,8 @@ def full_simulation(df_geometry: pd.DataFrame, time_current_waveform_1: list, ti
886886

887887
p_total = reluctance_output.p_loss
888888

889-
return reluctance_output.volume, p_total, reluctance_output.area_to_heat_sink
889+
return (reluctance_output.volume, p_total, reluctance_output.area_to_heat_sink, reluctance_output.winding_1_loss,
890+
reluctance_output.winding_2_loss, reluctance_output.p_hyst)
890891

891892
class FemSimulation:
892893
"""Contains methods to perform FEM simulations or process their results."""

0 commit comments

Comments
 (0)