ParallelAssembly: Define the cell gap in x and y direction differently?
Show older comments
Hi,
I want to build a battery modul of cylindrical cells in hexagonal arrangement. But with a different cell gap in x and y direction to the cells. Is this possible? Or to define the position for each cell in the Parallel Assembly?
Thanks
Answers (1)
Hi @Fabian,
Thanks for your question — I looked into this and wanted to share what I found.
Unfortunately, the short answer is that this isn't currently supported. The InterCellGap property in ParallelAssembly only takes a single value, which means the gap between cells ends up being the same in all directions. There's no built-in way to set a different gap for X and Y separately, and you also can't manually define the position of each individual cell within the assembly.
A couple of things you could try as a workaround:
If your gaps are only slightly different, you could use an average gap value as a rough approximation.
Switching to a Square topology instead of Hexagonal might give you a bit more control over how the rows and columns are spaced, though it still won't let you set X and Y gaps independently.
Honestly, the best move here would be to submit a feature request to MathWorks directly. This seems like a legitimate design need for real-world battery packs, and they've been adding new features to the Battery Pack Builder regularly. There's a good chance they'd consider it.
Hope that helps — feel free to follow up if you have more questions!
Categories
Find more on Battery Pack Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!