Replies: 4 comments 2 replies
-
I implemented the algorithm in the SurfLine object as suggested by Pierre. To support this, I added a couple of new functions (see the image below). Additionally, if no reference line is set when defining the active area, the get_ref_line function will instead identify the longest line. To plot the results currently i added "is_show_wires" in the plot_active method of the "Slot" class and the following code: `
` It works fine for the slot I have created but others need to be tested as well. I am not sure how to procede further. Shoud I create separate, e.g. plot_wires funciton in Slot to focus the results to only one slot? I would like to plot the conductor directly instead of round wires as conductor could have multiply wires as well... |
Beta Was this translation helpful? Give feedback.
-
Hello, That looks amazing :) Instead of adding a "is_ref" property maybe you can use the "prop_dict" property of any Line. It is what we use to set "this line is particular" (for instance to set Boundary conditions). For the next step, I would see several possibilities:
Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello Pierre, Thanks for your feedback! I'll work on implementing your suggestions next week. I still need to come up with a solution for arcs, but it should be doable. Returning conductors instead of active surfaces is a great idea, especially if one needs to consider skin and proximity effects. In the mean time i changed a Conductor12 a bit (I added new class Conductor12B). I wanted to be able to use actual conductor objects inside a slot. This enables better visualization for multiwire conducotrs as well. Here first resuts: As i have a need for more thant 4 wires in conductor i have extended the plot method of Conductor12B. It is ok for now but I think we can do better. We might need separate discusson for that as it is not trivial. I used this approach just to test, but I kept your solution up to 4 wires. How can i add a new color to config_dict? I would like to define new color when plotting only the slot. Currently the blue color is used for both, slot and conductor isolation which does not look very nice.
|
Beta Was this translation helpful? Give feedback.
-
Hello Pierre, following to your suggestions. I added the followig:
This is added code in build_geometry of LamSLotWind: `
` Here the results: Next steps for me are to check the calculations of the phase resistance. It would be great if you take a look at the error i got when adding new color to "pyleecan_color.json". Regards, |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if I should open a new topic for this or if it should be part of the discussion for SlotW31B. I've made some progress on the wire visualization inside active surfaces. Here's the algorithm I've come up with for now:
Any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions