modelBaseCellStack

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

Extends from Modelica.Electrical.Batteries.Icons.BatteryIcon (Icon for cells and stacks), Modelica.Electrical.Analog.Interfaces.TwoPin (Component with two electrical pins), Modelica.Electrical.Analog.Interfaces.PartialConditionalHeatPort (Partial model to include a conditional HeatPort in order to dissipate losses, used for graphical modeling, i.e., for building models by drag-and-drop).

Information

The battery is modeled by open-circuit voltage (OCV) dependent on state of charge (SOC), a self-discharge component and an inner resistance.
Parameters are collected in parameter record cellData.
All losses are dissipated to the optional heatPort.

For details, see concept and parameterization.

Note

SOC > SOCmax and SOC < SOCmin triggers an error.

Parameters

TypeNameDefaultDescription
IntegerNs1Number of serial connected cells
IntegerNp1Number of parallel connected cells
ParameterRecords.CellDatacellDataCell parameters
BooleanuseHeatPort (from PartialConditionalHeatPort)false=true, if HeatPort is enabled
SI.TemperatureT (from PartialConditionalHeatPort)293.15Fixed device temperature if useHeatPort = false
Advanced
RealSOCtolerance1e-9Tolerance to detect depleted of overcharged battery

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from PartialConditionalHeatPort)Optional port to which dissipated losses are transported in form of heat

Components

TypeNameDefaultDescription
RealdisplaySOC (from BatteryIcon)SOC for display
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
SI.Currentip.iCurrent into the battery
SI.Powerpowerv*iPower to the battery
RealSOClimIntegrator.yState of charge
Modelica.Electrical.Analog.Sensors.CurrentSensorcurrentSensor
Blocks.Continuous.LimIntegratorlimIntegrator
Modelica.Blocks.Tables.CombiTable1Dsocv_soc
Modelica.Blocks.Math.GaingainV
Modelica.Electrical.Analog.Sources.SignalVoltageocv
Modelica.Electrical.Analog.Basic.ConductorselfDischarge
Modelica.Electrical.Analog.Basic.Resistorr0
Modelica.Thermal.HeatTransfer.Sources.FixedTemperaturefixedTemperature (from PartialConditionalHeatPort)