-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
09 - How to solve optimization problem in Pyleecan not useable #701
Comments
Hello, If I understand correctly you want to run an optimization simulation that would change the geometry of a slot while keeping a constant fill factor and add an objective on efficiency. Regarding the first one, there is no function in pyleecan to do that, you will need to write yourself the setter function of the DesignVariable (a function that takes the simulation and a value in argument, the value would be the desired slot dimensions and the function would edit several parameters to adapat the slot and the winding). For the efficiency, it's still a work in progress in pyleecan there is a notebook tuto_Efficiency_map.ipynb but we will need to check if this is still relevant. Best regards, |
Hello Bonnel, def set_slot_geometry(simulation, slot_dimensions):
def compute_slot_area(slot):
Or am I on the false route🫡 |
Hello, You can take inspiration from https://github.com/Eomys/pyleecan/blob/master/Tests/Validation/Multisimulation/test_slot_scale.py The slot area is already available with simulation.machine.stator.slot.comp_surface() and even comp_active_surface(). You can also use simulation.machine.stator. comp_fill_factor() To make sure that the fill factor doesn’t change you can either play on the conductor dimensions or introduce a clever scaling rule on your slot that keeps the active surface constant. Best regards, |
Hello and Thank you Bonnel, Great work you do! For me this should be
implemented in Library that the winding factor is not allowed to change and
the conductor diameter is the same, and only the Surface has changed you
got more winding so more inductivity and and Impedance in general I think
everyone who want to make a optimization for a electrical machine expects
that this feature is in it because otherwise the simulation makes no sense
because the optimizer is optimizing some thing that is not possible for
example you optimize for Tem_av so you allow to vary the geometry but you
are have not always the highest possible winding in the simulation so you
get not the best machine out of it. Lg Lukas
Am Fr., 21. Juni 2024 um 16:21 Uhr schrieb Pierre Bonneel <
***@***.***>:
… Hello,
You can take inspiration from
https://github.com/Eomys/pyleecan/blob/master/Tests/Validation/Multisimulation/test_slot_scale.py
Your setter is linked to a Design Variable, so I would suggest setting a
float in an interval for the value rather than a dictionary
The slot area is already available with
simulation.machine.stator.slot.comp_surface() and even
comp_active_surface(). You can also use simulation.machine.stator.
comp_fill_factor()
To make sure that the fill factor doesn’t change you can either play on
the conductor dimensions or introduce a clever scaling rule on your slot
that keeps the active surface constant.
Best regards,
Pierre
—
Reply to this email directly, view it on GitHub
<#701 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3JD5TAUQA7FTDEHNHQMDPLZIQZGNAVCNFSM6AAAAABJUV4DXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHA2TAOBTGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
i have many questions for pyleecan and i can go to no one whether documentation or youtube, there is no good explanantion of the Methods Classes etc. and if Tutorials exist there are generally false Methods for Example in the Opimization, we vary geometrical variables without changing the winding so fill factors up to 180% are easily possible.I want set up this right to have something useable. And I do not understand how Objectives like efficiency etc. can be put in the simulation. And then there is the point of how i can add new geometries for me and maybe share it later with the community. There is no useful Documentation. Maybe anyone can help me:(
The text was updated successfully, but these errors were encountered: