Fast slot-filling algorithm
Version 1.0 (3.78 KB) by
Jan Kaska
Matlab algorithm for fast filling of the slot with round conductors.
Algorithm was developed for electrical machines, but can be used for many other purposes. The algorithm works with random variables, so it is able to generate different layouts for the same inputs. The slot is filled from the top edge, this can be easily changed by modifying the code.
Inputs:
- Vector of points defining the shape of the slot (x,y)
- Radius of the conductors
- Desired number of conductors / desired fill-factor (Area_conductors / Area_slot)
- Additional parameter defining the filling density (shown in the picture)
Output:
- Vector of coordinates of the conductor centers
I will be glad for any feedback and possible improvements to the algorithm.
Cite As
Jan Kaska (2024). Fast slot-filling algorithm (https://github.com/kaskaj/FillSlot/releases/tag/1.0), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2021b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.