CellStack

Battery with open-circuit voltage dependent on state of charge, self-discharge and inner resistance

    CellStack

Library

Modelica/Electrical/Batteries/BatteryStacks

Description

The battery is modeled by open-circuit voltage (OCV) dependent on state of charge (SOC), self-discharge and inner resistance,as implemented in partial BaseCellStack.

This model can be used for a single cell Ns = Np = 1 as well as a stack built from identical cells.

For details, see concept and parameterization.

Note

Parameter record array rcData contained inparameter record cellData is neglected.

Parameters

CellStack_0

NameLabelDescriptionData TypeValid Values

mo_SOC

SOC

SOC

Structure

mo_SOC/fixed

fixed

Cell of scalars

true
false

mo_SOC/start

start

Cell of scalars

mo_Ns

Ns

Number of serial connected cells

Scalar

mo_Np

Np

Number of parallel connected cells

Scalar

mo_cellData

cellData

Cell parameters

FromModelica('Modelica.Electrical.Batteries.ParameterRecords.CellData')
FromModelica('Modelica.Electrical.Batteries.ParameterRecords.ExampleData')
FromModelica('Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData')
FromModelica('Modelica.Electrical.Batteries.ParameterRecords.TransientData.ExampleData')

mo_useHeatPort

useHeatPort

=true, if HeatPort is enabled

Number

0
1

mo_T

T

Fixed device temperature if useHeatPort = false

Scalar

CellStack_1

NameLabelDescriptionData TypeValid Values

mo_SOCtolerance

SOCtolerance

Tolerance to detect depleted of overcharged battery

Scalar

CellStack_2

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'displaySOC'
'v'
'i'
'power'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

p

implicit

Positive electrical pin

input

1

n

implicit

Negative electrical pin

output

1

Port 3

implicit

Optional port to which dissipated losses are transported in form of heat

input

mo_useHeatPort

See Also