Effacer les filtres
Effacer les filtres

Output of the battery is wrong

6 vues (au cours des 30 derniers jours)
raghav goel
raghav goel le 28 Oct 2023
Commenté : raghav goel le 31 Oct 2023
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

Réponses (1)

Xiangchun
Xiangchun le 30 Oct 2023
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 commentaires
Xiangchun
Xiangchun le 31 Oct 2023
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 le 31 Oct 2023
Thank you for answering it was a great help

Connectez-vous pour commenter.

Catégories

En savoir plus sur Battery Pack Modeling dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by