Eomys / pyleecan

Electrical engineering open-source software providing a user-friendly, unified, flexible simulation framework for the multiphysic design and optimization of electrical machines and drives
https://www.pyleecan.org
Apache License 2.0
156 stars 130 forks source link

[BC] Error with closing lines for slot with tangential winding #651

Closed BonneelP closed 1 year ago

BonneelP commented 1 year ago

Hello all,

We found a very specific bug with the FEMM coupling, 2 layer tangential winding and some particular slots with overlapping winding/slot lines: When a slot have a double layer tangential winding and that a line perfectly overlap the opening/active zone the copy/rotate method of fast draw fails (the closing line is missing): 260493120-8c17ca81-7627-43ff-a58a-938531b01ec6

The reason is that FEMM selects the surface to copy rotate by selecting all the lines of the surface by selecting the closest line to the center of the line. As the slot and winding line overlap there are in fact two lines to select and if the slot line is longer that the winding line, then only the slot line is copy/rotate and the winding surface is not closed ! Ex: SlotW22 with W0 < W2*0.75

Best regards, Pierre

AdrienLeduqueEomys commented 1 year ago