python-planar-magnetics
python-planar-magnetics copied to clipboard
Feature: Add support for spirals with non-integer turns
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.
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.
@dzimmanck Do you have the half-turn code available to post?
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,
Thanks much. I'll check it out.