How can I resolve: model continues in compilation mode indefinitely with no error.
조회 수: 52 (최근 30일)
이전 댓글 표시
Hello,
Using MATLAB (R2024a), I have built a battery pack library (1 Pack having 20 Module Assemblies, each module assembly having 5 modules, each module assembly having 20 parallel assemblies, with each parallel assembly having 120 cells). Then, I am trying to simulate (using Simulink and simscape components), a system where this battery pack is connected to a resistance as load and monitoring current flowing out of the battery pack and temparature of the pack.
When I run this integrated model (this battery pack library with the battery thermal monitoring, current monitoring and boost DC-DC Converter with resistive load), the model remains in the compilation mode for many hours. The status in the status bar at the righthand side below the diagnostic window shows: "Compiling: Evaluating Block Parameters: Completed". There is no error displayed in the diagnostic window. During this time, the MATLAB does not allow any other operation on the model and must be terminated via task manager to exit.
This issue is encoutered on a MATLAB student version downloaded on an i7 machine with 16GB RAM as well as MATLAB online.
I tried to run the same model, this time with a smaller battery pack library (1 Pack having 2 Module Assemblies, each module assembly having 2 modules, each module having 1 parallel assembly of 2 cells) instead of the larger battery pack. WIth a smaller battery pack, the model compiles and runs without any error or any issue.
I wish to design the model with the larger battery pack mentioned earlier.
Kindly suggest a possible solution for my issue.
Thanks, and Regards,
Sameer Phatak
댓글 수: 0
채택된 답변
Xiangchun
2024년 10월 24일 13:06
Hi Sameer,
Have you tried different model resolution, such as "lumped" or "grouped" resolution? The battery pack has 240,000 cells, which is quite a lot. In this case, it is a good idea to avoid using "detailed" resolution.
As described in the following documentation page, "Set a suitable model resolution or simulation strategy by specifying the ModelResolution property in the ParallelAssembly and Module levels. When you specify the resolution of your battery model, you must consider the trade-off between model resolution and model speed." "To obtain optimal performance, keep the number of models to lower than or equal to 30."
Best wishes,
Xiangchun
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Energy Storage에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!