modelBattery

Simple battery model

Extends from Modelica.Electrical.Analog.Interfaces.TwoPin (Component with two electrical pins).

Information

A simple battery model: SOC (state of charge) is tracked by measuring the current and integrating to achieve charge. For simplicity reasons the prescribed open-circuit voltage depends linearly on state of charge between Voc at SOC=1 and Vmin at SOCmin. Additionally the internal resistance (computed from short-circuit current Isc at SOC=1) is taken into account.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.VoltageVoc60Open circuit voltage at SOC=1
Modelica.Units.SI.VoltageVmin48Minimum open-circuit voltage at SOCmin
Modelica.Units.SI.CurrentIsc250Short-circuit current at SOC=1
Modelica.Units.SI.ElectricChargeQnom20*3600Nominal (maximum) charge

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin

Components

TypeNameDefaultDescription
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
Modelica.Units.SI.Currentip.iCurrent consumed by battery
Modelica.Units.SI.Powerpowerv*iPower consumed by battery
RealSOCsoc.yState of charge
Modelica.Electrical.Analog.Sensors.CurrentSensorcurrentSensor
Modelica.Electrical.Analog.Sources.SignalVoltagesignalVoltage
Modelica.Electrical.Analog.Basic.Resistorresistor
Modelica.Blocks.Continuous.Integratorsoc
Subcomponents.Soc2vsoc2v