Output of the battery is wrong

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
the output is coming as in fig 2,3&4
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
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

답변 (1개)

Xiangchun
Xiangchun 2023년 10월 30일

0 개 추천

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

raghav goel
raghav goel 2023년 10월 30일
Thank you very much for answering I understood your point then how should we achieve the 45v as shown in the video https://in.mathworks.com/videos/simscape-battery-essentials-part-1-build-visualize-and-simulate-a-battery-module-1663755729576.html
And why was it different from this he also used vcell only and got the output
Xiangchun
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
raghav goel
raghav goel 2023년 10월 31일
Thank you for answering it was a great help

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Battery Pack Modeling에 대해 자세히 알아보기

제품

릴리스

R2023b

질문:

2023년 10월 28일

댓글:

2023년 10월 31일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by