HalbachHero said:
The "Coil per phase" option its supposed to change the number of coil leg pairs (one with positive turns and one with negative). I wanted it to allow users to put arbitrary number of rotor poles or stator poles. But I realize that it makes sense for those numbers to be similar, otherwise your rotor could be way longer that the stator, ill change those to make it jive better. Also there is some oddness, because we do the half poles on the ends, which are technically not counted in the rotor poles.
About that what you could do is as I said previously, input "number of rotor pole pair" and "number of stator pole pair" that could be different, then model only the commun divider of the two number * 2 stator poles count and maybe that number time * 2 + 1 or 3 for the rotor modelling to account for half pole and make sure stator get the representativ flux. Then you get full torque value by multiplying the force result by this commun divider and the mean radius.
For outputting KV you can use the math I detailled on my previous post I think it is correct.
HalbachHero said:
I modeled my sim after your image you shared where you calculated Force. It appeared that a leg was sitting directly below a halbach magnet. And the others were not directly on top or below a magnet pole. Am I missing something or did I have the correct positioning?
The coil placement your code is outputing is correct, One leg is alligned with the hallback array and the returning one too with the next one so that the first phase is centered on rotor pole and his currect is 0 the next two are ofsetted -120° et + 120° from that position so they get -27.71A et +27.71A creating a magnetic flux alligned with that same hallaback magnet (90° off from magnet flux wich lead to highest achievable torque) Here is what's happening :
Cross are current entering the plane and Point exiting it. They create flux line around them oriented according to the right hand rule, being opposed in current phase they create the flux represented wich lead to a magnetic dipole. The attraction between the created stator dipole and magnet dipole create a force (You are probably well aware of all this but I explain it anyway so that people trying to understand this like myself a few years ago have an hands one explanation).
I did a femm analysis of the stator flux on one of my previous post showing exactly this.
HalbachHero said:
I think the next things I would like to add, is support for saving the file automatically, so that you can run the analysis through the script too. This way we could step the coils over, and re-run an analysis. Saving the results along the way. Thinking an upload to Google Sheets after that, and you could collect data pretty rapidly.
That's the ultimate goal of this development for sure ! I did the automatic saving and analysis by adding these line in your "analyse()" function :
mi_loadsolution()
mo_showdensityplot(1,0,1,0,bmag)
and this line in the "init" function just before "analyse" is called : mi_saveas("C:\\"path"\\"file_name.fem")
HalbachHero said:
I also would still like to show the inner, outer, and center diameter results. I think that could be helpful for designs like mine with the straight magnets.
Any other thoughts on what could be added? I think obviously it would be cool if this supported more motor architectures. A 3 Phase air-core toroidal axial flux motor is a bit niche. Id like others to get some use from this too.
That will be a great adition too, redoing the simulation each time with a different magnet spacing value. however the stator value are only applicable with your radial windings and not round coils or like mine skewwed toroidal since the coil placement varies with the radial position.
For this to be a generical axial flux design tool you would need parametrical coil shape (sectionnal, not all coil are round and radial, not all coil are oriented radialy) and support for parametrical core placement. That's for sure a lot of work if it's even possible.
HalbachHero said:
h, Thecoco974, also I added the depth, to the simulation, but I am trying to better understand what that means. currently the depth of the problem is calucalted as such
Depth = AIR_GAP + TALLEST_MAGNET_HEIGHT * 2
Should this only include the height of the coils, or the air gap too? Thanks!
The depth of the simulation is the torque producing radial length of your design, I called it "MAGNET_LENGTH" wich is usually the bigest dimension of your magnet 1/2" in your case.