필터 지우기
필터 지우기

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