Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions femmt/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,7 @@ def __init__(self,
if self.permittivity_datasource != DataSource.Datasheet:
self.permittivity = self.database.get_complex_permittivity(material=material,
data_source=permittivity_datasource)
self.permittivity.fit_permittivity_magnitude()
self.permittivity.fit_loss_angle()
self.permittivity.fit_sigma()

def update_permittivity(self, frequency: float) -> None:
"""Update permittivity and calculate equivalent conductivity at a given frequency.
Expand Down
104 changes: 52 additions & 52 deletions tests/integration/fixtures/log_inductor_core_material_measurement.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,87 +4,87 @@
"f": 100000,
"winding1": {
"turn_losses": [
0.07945097577223559,
0.0764345360211902,
0.04918479250316746,
0.02064986832301939,
0.009381724754891135,
0.02065360895491418,
0.04939527910813583,
0.0773327509757728,
0.08176262863609238
0.07945008081376806,
0.07643363504662454,
0.0491842506060318,
0.02064975594488234,
0.00938179454809244,
0.02065350204143978,
0.04939474251135665,
0.07733184689083202,
0.08176170921987985
],
"flux": [
9.22322500859072e-05,
-5.060535839834087e-07
9.22312784186069e-05,
-5.008014179173244e-07
],
"flux_over_current": [
2.0496023681614326e-05,
-1.1592323537190992e-07
2.0495807751205935e-05,
-1.1475608878138251e-07
],
"V": [
0.3277652261622774,
57.95114168336579
0.3244651969232604,
57.95053115451957
],
"number_turns": 9,
"I": [
4.5,
0.0
],
"winding_losses": 0.4642461650494175,
"P": 0.7374717588651241,
"Q": 130.39006878757303,
"S": 130.3921543001079
"winding_losses": 0.464241317622908,
"P": 0.7300466930773359,
"Q": 130.38869509766903,
"S": 130.39073884845877
},
"core_eddy_losses": 0.01394884488552167,
"core_hyst_losses": 0.2600364721327584,
"core_eddy_losses": 0.006522725916286227,
"core_hyst_losses": 0.260034723520191,
"core_parts": {
"core_part_1": {
"eddy_losses": 0.005748050493822775,
"hyst_losses": 0.1802238675929796,
"total_core_part_1": 0.18597191808680236
"eddy_losses": 0.002688136478074107,
"hyst_losses": 0.1802244257927051,
"total_core_part_1": 0.1829125622707792
},
"core_part_2": {
"eddy_losses": 0.008200794391698851,
"hyst_losses": 0.07981260453977895,
"total_core_part_2": 0.0880133989314778
"eddy_losses": 0.003834589438212139,
"hyst_losses": 0.07981029772748505,
"total_core_part_2": 0.08364488716569718
}
},
"all_winding_losses": 0.4642461650494175
"all_winding_losses": 0.464241317622908
}
],
"total_losses": {
"winding1": {
"total": 0.46424616504941896,
"total": 0.46424131762290743,
"turns": [
0.07945097577223559,
0.0764345360211902,
0.04918479250316746,
0.02064986832301939,
0.009381724754891135,
0.02065360895491418,
0.04939527910813583,
0.0773327509757728,
0.08176262863609238
0.07945008081376806,
0.07643363504662454,
0.0491842506060318,
0.02064975594488234,
0.00938179454809244,
0.02065350204143978,
0.04939474251135665,
0.07733184689083202,
0.08176170921987985
]
},
"all_windings": 0.4642461650494175,
"eddy_core": 0.01394884488552167,
"hyst_core_fundamental_freq": 0.2600364721327584,
"total_core_part_1": 0.18597191808680236,
"total_eddy_core_part_1": 0.005748050493822775,
"total_hyst_core_part_1": 0.1802238675929796,
"total_core_part_2": 0.0880133989314778,
"total_eddy_core_part_2": 0.008200794391698851,
"total_hyst_core_part_2": 0.07981260453977895,
"core": 0.27398531701828005,
"total_losses": 0.7382314820676976
"all_windings": 0.464241317622908,
"eddy_core": 0.006522725916286227,
"hyst_core_fundamental_freq": 0.260034723520191,
"total_core_part_1": 0.1829125622707792,
"total_eddy_core_part_1": 0.002688136478074107,
"total_hyst_core_part_1": 0.1802244257927051,
"total_core_part_2": 0.08364488716569718,
"total_eddy_core_part_2": 0.003834589438212139,
"total_hyst_core_part_2": 0.07981029772748505,
"core": 0.26655744943647725,
"total_losses": 0.7307987670593852
},
"simulation_settings": {
"simulation_name": null,
"date": "2026-03-05 13:32:31",
"date": "2026-04-21 16:12:29",
"component_type": "Inductor",
"working_directory": "/home/nikolasf/Dokumente/01_git/30_Python/FEMMT/tests/integration/temp",
"working_directory": "C:\\Users\\tpiepe\\Repositories\\FEM_Magnetics_Toolbox\\tests\\integration\\temp",
"core": {
"core_type": 1,
"core_inner_diameter": 0.0149,
Expand Down Expand Up @@ -193,4 +193,4 @@
],
"total_cost_incl_margin": 5.450519000032945
}
}
}
Loading
Loading