Topology
R2026bDescription
Use Topology to create a custom topology object that defines the
geometric arrangement of battery cells. You can specify the center positions of individual
cells and their grouping into parallel assemblies and series connections. You can use this
object as an input to the Topology property of the ParallelAssembly
and Module
objects.
To specify the number of cells connected in parallel, use the
NumParallelCells property. To specify the number of series assemblies,
use the NumSeriesAssemblies property. To define the positions of cells,
use the CellCenterPositions property.
The Topology object enables you to define arbitrary cell arrangements
that go beyond the predefined topologies, such as square and hexagonal. You can specify cell
center positions as either a table or a numeric array, giving you control over the placement
of each cell in a 2-D Cartesian coordinate system.
Custom Cell Arrangement
The Topology object uses a table to store cell center positions. Each row
in the table corresponds to a cell and contains the X and Y coordinates, a cell ID, and a
parallel assembly ID. You can specify the cell positions directly or use the default
positions.
The Topology object validates that cell placements do not overlap and
that cells are within bounds.
Import and Export
To share and reuse custom topologies across projects, you can save a
Topology object to a JSON file by using the saveToJson
function and load a previously saved topology by using the importFromJson
function.
Creation
Description
Note
To use this object, at the MATLAB® Command Window, run this command at least once each MATLAB session:
import simscape.battery.builder.*;
creates a custom
topology object with default property values.customTopology = Topology
also sets Properties using one or more name-value
arguments. For example,
customTopology = Topology(Name=Value)Topology(NumParallelCells=4,NumSeriesAssemblies=3,BatteryCell=batteryCell(batteryCylindricalGeometry))
to create a custom topology with four cells in parallel and three series assemblies using
a cylindrical cell geometry.
Properties
Object Functions
| Save Topology object to JSON file |
| Import Topology object from JSON file |
| Clear X and Y coordinates of CellCenterPositions in
Topology object |
Examples
Version History
Introduced in R2026b