batteryModuleAssembly
Syntax
Description
Use the batteryModuleAssembly
to create a module assembly object
that represents a number of Module
objects
connected electrically in series or in parallel. For more information about the
ModuleAssembly
object and its properties, see ModuleAssembly
(object)
.
moduleassembly = batteryModuleAssembly
creates a module assembly
that comprises battery modules with default property values.
moduleassembly = batteryModuleAssembly(
sets the Module
)Module
property to create a battery module assembly that
comprises one module.
moduleassembly = batteryModuleAssembly(___,
specifies the Name=Value
)moduleassembly
properties using one or more name-value
arguments. Specify the name-value arguments after all the arguments in any of the previous
syntaxes. For a list of properties, see the Properties
section of the ModuleAssembly
object.
For example, create a battery module assembly with two default modules that are connected in series and stacked along the y-axis, with a gap of 0.05 m between each module.
moduleassembly = batteryModuleAssembly(... repmat(batteryModule,1,2), ... StackingAxis="Y",... InterModuleGap=simscape.Value(0.005,"m"));
You can define the number and types of modules in the Module
property. If your module assembly comprises many modules with the same property values, you
can use the repmat function to specify the Module
property. Otherwise,
specify an array of distinct modules.
Examples
Input Arguments
Version History
Introduced in R2024a