Output of the battery is wrong
조회 수: 6 (최근 30일)
이전 댓글 표시
I have grouped the cells in battery in series as 1, 11 & 1 and the number of parallel cells are 4 in each of them as you can see in the figure 1![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523916/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523916/image.png)
the output is coming as in fig 2,3&4
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523921/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523926/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523931/image.png)
but the output to the second is wrong as the 11 cells are connected in series so it should be around 45V.
Please rectify this error
These is the simulink model in fig 5
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523936/image.png)
This is the matlab code
clc
clear all
close all
import simscape.battery.builder.*
cylindricalGeometry=CylindricalGeometry(Height=simscape.Value(0.065,"m"), ...
Radius=simscape.Value(0.009,"m"));
batterycell=Cell(Geometry=cylindricalGeometry);
batterycell.CellModelOptions.BlockParameters.thermal_port="model";
f=uifigure(Color="w");
t1 = tiledlayout(1,1,"Parent",f,"TileSpacing","compact");
batteryparallelassembly=ParallelAssembly(Cell=batterycell, ...
NumParallelCells=4, ...
Rows=4, ...
Topology="Square", ...
ModelResolution="Detailed");
batterymodule = Module(ParallelAssembly=batteryparallelassembly, ...
NumSeriesAssemblies=13, ...
InterParallelAssemblyGap=simscape.Value(0.005,"m"), ...
ModelResolution="Lumped", ...
AmbientThermalPath="CellBasedThermalResistance");
batterymodule.ModelResolution = "Grouped";
batterymodule.SeriesGrouping = [1 11 1]
batterymoduleImage = BatteryChart(Parent = t1, Battery=batterymodule);
buildBattery(batterymodule,"LibraryName","batterymoduleLibrary");
Thank You
댓글 수: 0
답변 (1개)
Xiangchun
2023년 10월 30일
Hi Raghav,
It is understood that you expect the voltage of 11 parallel assemblies connected in sereries to be around 45 V. The variable that is being probed and visualized is meant for cell level voltage (hence the variable name 'vCell').
Since the SeriesGrouping is defined as [1 11 1], it is expected that all 11 parallel assemblies in the 2nd group to behave exactly the same. In other words, all the cells in the 11 parallel assemblies should have the same voltage. With this in mind, if there is a need to get voltage for the 2nd group that is made of 11 parallel assemblies, we can multiply vCell signal by a gain block with gain = [1 11 1]'.
Best wishes,
Xiangchun
댓글 수: 3
Xiangchun
2023년 10월 31일
Hi Raghav,
You are correct in noting that the example in the referenced video yields different results. The video was created for R2022b, which was the first release to include Simscape Battery. In the example, the probed variable is 'vCellModel', which represents the model voltage, not the cell voltage.
Starting from the R2023 release, changes were made regarding which variables could be probed from the generated battery block. Specifically, 'vCellModel' was replaced with 'vCell,' the cell-level voltage.
Best wishes,
Xiangchun
참고 항목
카테고리
Help Center 및 File Exchange에서 Battery Pack Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!