Repository navigation
Expand file tree
/
Copy pathBattery_Simulation_3.m
More file actions
42 lines (35 loc) · 2.32 KB
/
Copy pathBattery_Simulation_3.m
File metadata and controls
42 lines (35 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import simscape.battery.builder.*
cylinder_geom = CylindricalGeometry(Height = simscape.Value(0.07,"m"), Radius = simscape.Value(0.0105,"m"));
batterycell = Cell(Geometry = cylinder_geom);
batterycell.CellModelOptions;
batterycell.CellModelOptions.BlockParameters;
batterycell.CellModelOptions.BlockParameters.thermal_port = "model";
batterycell.CellModelOptions.BlockParameters.T_dependence = "yes";
batterycell.Mass = simscape.Value(0.0695,"kg");
batterycell.Energy = simscape.Value(18.15,"W*hr");
%-----------------------------------------------------------------
parallelassembly = ParallelAssembly(Cell = batterycell, NumParallelCells = 72,Topology="Square",Rows=18,InterCellGap=simscape.Value(0.00175,"m"),ModelResolution="Detailed");
%-----------------------------------------------------------------
module = Module(ParallelAssembly = parallelassembly,NumSeriesAssemblies = 6, InterParallelAssemblyGap = simscape.Value(0.010,"m"));
module.ModelResolution = "Detailed";
module.AmbientThermalPath= "CellBasedThermalResistance";
module.CoolantThermalPath = "CellBasedThermalResistance";
module.CoolingPlate = "Top";
module.BalancingStrategy = "Passive";
Thermal_Nodes = module.ThermalNodes.Bottom.NumNodes;
%-----------------------------------------------------------------
moduleassembly = ModuleAssembly(Module = repmat(module,1,2),InterModuleGap = simscape.Value(0.05,"m"),StackingAxis="Y",NumLevels=2,CircuitConnection="Series");
moduleassembly.CoolingPlate = "Bottom"
moduleassembly.BalancingStrategy = "Passive"
moduleassembly.AmbientThermalPath= "CellBasedThermalResistance";
moduleassembly.CoolantThermalPath = "CellBasedThermalResistance";
%-----------------------------------------------------------------
pack = Pack(ModuleAssembly = repmat(moduleassembly,1,9),InterModuleAssemblyGap = simscape.Value(0.015,"m"));
pack.BalancingStrategy = "Passive";
pack.CoolingPlate = "Bottom"
pack.AmbientThermalPath= "CellBasedThermalResistance";
pack.CoolantThermalPath = "CellBasedThermalResistance";
%-----------------------------------------------------------------
% buildBattery(pack,"LibraryName","R1S_Pack_Library_6_10");
%-----------------------------------------------------------------
batteryImage = BatteryChart(Parent = tiledlayout(1,1,"Parent",uifigure(Color="w"),"TileSpacing","compact"), Battery = pack);