WOLFRAM SYSTEM MODELER
BatteryDischargeChargeDischarge and charge idealized battery |
|
SystemModel["Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge"]

This information is part of the Modelica Standard Library maintained by the Modelica Association.
Two batteries with a nominal charge of 10 A.h starting with an initial SOC = 95 % are compared:
battery1 is a battery OCV linearly dependent on SOC, without self-discharge and not comprising RC-elements.battery2 is a battery OCV dependency on SOC is specified by a table, with self-discharge and including RC-elements.
Two parameter records cellData1 and cellData2 are used to parameterize the battery models.
First the batteries are discharged with 7 current pulses of 50 A for 1 minute, and breaks between the pulses of 1 minute, ending at SOC = 5 %.
Subsequently, the batteries are charged again with 7 current pulses of 50 A for 1 minute, and breaks between the pulses of 1 minute, ending at SOC = 95 % again.
In the end, the batteries are in no-load condition to reveal self-discharge effects.
Note that self-discharge of battery2 is set to an unrealistic high value, to show self-discharge within a rather short time span.
The parameters of the RC-elements of battery2 are set to estimated values, just to demonstrate the effects.
Simulate and plot terminal voltage battery1.v and battery2.v as well as state of charge battery1.SOC and battery2.SOC.
Plotting energy1.y and energy2.y, it is remarkable that first energy is delivered by the battery,
but then due to the losses more energy is consumed to recharge the battery.
| Isc |
Value: 1200 Type: Current (A) Description: Short-circuit current of cell at OCVmax |
|---|---|
| cellData1 |
Value: Type: CellData Description: Parameters of a battery cell |
| cellData2 |
Value: Type: ExampleData Description: Example parameters of a transient battery cell |
| pulseSeries |
Type: PulseSeries Description: Series of pulses |
|
|---|---|---|
| cellData1 |
Type: CellData Description: Parameters of a battery cell |
|
| battery1 |
Type: CellStack Description: Battery with open-circuit voltage dependent on state of charge, self-discharge and inner resistance |
|
| ground1 |
Type: Ground Description: Ground node |
|
| signalCurrent1 |
Type: SignalCurrent Description: Generic current source using the input signal as source current |
|
| powerSensor1 |
Type: PowerSensor Description: Sensor to measure the power |
|
| energy1 |
Type: Integrator Description: Output the integral of the input signal with optional reset |
|
| cellData2 |
Type: ExampleData Description: Example parameters of a transient battery cell |
|
| battery2 |
Type: CellRCStack Description: Battery with open-circuit voltage dependent on state of charge, self-discharge, inner resistance and a series of RC-elements |
|
| ground2 |
Type: Ground Description: Ground node |
|
| signalCurrent2 |
Type: SignalCurrent Description: Generic current source using the input signal as source current |
|
| powerSensor2 |
Type: PowerSensor Description: Sensor to measure the power |
|
| energy2 |
Type: Integrator Description: Output the integral of the input signal with optional reset |
|
| gain |
Type: Gain Description: Output the product of a gain value with the input signal |