SEMAFORInformatik / femagtools

Python API for FEMAG
BSD 2-Clause "Simplified" License
20 stars 15 forks source link

Winding analysis for concentric windings is not working #70

Closed c-wohlers closed 2 years ago

c-wohlers commented 3 years ago

For concentric windings, the pictures are not complete and the example code from doc is not working properly. Also typo in winding doc: it is "femagtools.windings.Windings()" not "femagtools.windings.Winding()".

Here is my code example:

from femagtools import windings, plot

w = windings.Windings(dict(Q=12, p=10, m=3, l=2))
plot.zoneplan(w)
plot.winding(w)

mmf = w.mmf()
plot.mmf(mmf)
plot.mmf_fft(mmf)

w.mmf() ends in following error: "need at least one array to concatenate"

c-wohlers commented 2 years ago

fixed with newest verson