Skip to content

Commit 820de61

Browse files
authored
Merge pull request #444 from Eomys/SebGue-patch-2
[CO] loss test winding losses
2 parents a6c3fdf + 2d35d19 commit 820de61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Validation/Loss/test_FEMM_Loss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ def test_FEMM_Loss():
132132

133133
loss_st_iron = loss_stator_iron.get_along("Speed=4000", "time")["Loss"].mean()
134134
loss_ro_iron = loss_rotor_iron.get_along("Speed=4000", "time")["Loss"].mean()
135-
loss_st_wdg = loss_stator_wind.get_along("time", "phase")["Loss"].mean()
135+
loss_st_wdg = loss_stator_wind.get_along("time", "phase=sum")["Loss"].mean()
136136

137137
print(f"mechanical power = {P_mech} W")
138138
print(f"stator iron loss = {loss_st_iron} W")
139139
print(f"rotor iron loss = {loss_ro_iron} W")
140-
print(f"stator winding loss = {qs*loss_st_wdg} W")
140+
print(f"stator winding loss = {loss_st_wdg} W")
141141

142142
delta = 5 / 100 # arbitary allowed relative difference
143143

0 commit comments

Comments
 (0)