python-planar-magnetics icon indicating copy to clipboard operation
python-planar-magnetics copied to clipboard

Feature: Add support for spirals with non-integer turns

Open dzimmanck opened this issue 2 years ago • 4 comments

When creating a winding that spans multiple layers, it is often useful to be able to generate spirals which have a non-integer number of turns. For example, if I wanted to create a 5 turn coil over 2 layers, then I would want to have 2.5 turns on each layer. Even in designs that technically have an integer # of turns, it is necessary to over-rotate each layer in order to create some overlap between spirals on different layers for placing via arrays to connect layers.

dzimmanck avatar Apr 07 '22 16:04 dzimmanck

I have a prototype of this somewhat functional. I think the code can be simplified a lot, and the polygon smoothing code does not work with these spirals for some reason. Here is what a 2.5 turn spiral looks like.

Figure_1

dzimmanck avatar Apr 12 '22 00:04 dzimmanck

@dzimmanck Do you have the half-turn code available to post?

HJFSTX avatar Aug 21 '23 15:08 HJFSTX

Greetings @HJFSTX,

I have not worked on this code in a while. I just pushed my my current code to feature/issue-9-fractional_turns. I was having issues with the code that was responsible for smoothing the corners.

dzimmanck avatar Aug 21 '23 16:08 dzimmanck

@dzimmanck,

Thanks much. I'll check it out.

HJFSTX avatar Aug 21 '23 17:08 HJFSTX