modelIdealBattery

Re-chargeable ideal battery without loss
Diagram of IdealBattery

Information

This is a simple, linear rechargable battery model. The actual physical model consists of one capacitor. In order to consider the number of series and parallel connected cells, an internal scaling of voltages, currents and power terms, is performed.

Parameters

TypeNameDefaultDescription
Integerns1Number of series cells
Integernp1Number of parallel cells
Modelica.Units.SI.VoltageV1CellMaximum cell voltage > V0Cell
Modelica.Units.SI.VoltageV0CellMinimum cell voltage < V1Cell
Modelica.Units.SI.VoltageV1V1Cell*nsMaximum battery voltage > V0
Modelica.Units.SI.VoltageV0V0Cell*nsMaximum battery voltage < V1
BooleanallowOverchargefalseAllows overcharging without error
BooleanallowUnderchargefalseAllows undercharging without error
Modelica.Units.SI.EnergyECellTotal cell energy between V0Cell and V1Cell
Modelica.Units.SI.CapacitanceCCell2*ECell/(V1Cell^2 - V0Cell^2)Total charge of battery
Modelica.Units.SI.VoltageViniCellV1CellInitial cell voltage

Connectors

TypeNameDefaultDescription
Modelica.Electrical.Analog.Interfaces.PositivePinpin_pPositive pin
Modelica.Electrical.Analog.Interfaces.NegativePinpin_nNegative pin

Components

TypeNameDefaultDescription
Modelica.Units.SI.Voltagevpin_p.v - pin_n.vBattery voltage
Modelica.Units.SI.VoltagevCellv/nsCell voltage
Modelica.Units.SI.Currenticapacitor.iBattery current
Modelica.Units.SI.CurrentiCelli/npCell current
Modelica.Units.SI.Powerpowerv*iBattery power
Modelica.Units.SI.PowerpowerCellpower/ns/npCell power
Modelica.Units.SI.EnergyenergyEnergy
Modelica.Units.SI.EnergyenergyCellCell energy
Modelica.Electrical.Analog.Basic.Capacitorcapacitor