Output of the battery is wrong

6 次查看(过去 30 天)
raghav goel
raghav goel 2023-10-28
评论: raghav goel 2023-10-31
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
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
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Battery Pack Modeling 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by