Lead Acid(deprecated)
Equivalent-circuit model of a lead-acid battery
Important: The Lead Acid battery model has been deprecated.
Description
Connections
Variables
Basic Parameters
Circuit Parameters
References
The EquivCircuit.LeadAcid component is an equivalent-circuit model of a lead-acid battery; see the following figure.
R0=expoly⁡Rout,soc
R1=expoly⁡Rtc1,soc
R2=expoly⁡Rtc2,soc
R1⁢C1=expoly⁡Ttc1,soc
R2⁢C2=expoly⁡Ttc2,soc
Capacity
The capacity of a cell can either be a fixed value, CA, or be controlled via an input signal, Cin, if the use capacity input box is checked.
State of Charge
A signal output, soc, gives the state-of-charge of the battery, with 0 being fully discharged and 1 being fully charged.
The parameter SOCmin sets the minimum allowable state-of-charge; if the battery is discharged past this level, the simulation is either terminated and an error message is raised, or, if the allow overdischarge parameter is true, a warning is generated. A similar effect occurs if the battery is fully charged so that the state of charge reaches one; the simulation is terminated unless allow overcharge is true.
The parameter SOC0 assigns the initial state-of charge of the battery.
Name
Type
Modelica ID
p
Electrical
Positive pin
n
Negative pin
soc
Real output
State of charge [0..1]
Cin
Real input
Sets capacity of cell, in ampere hours; available when use capacity input is true
Rin
Sets resistance of cell, in ohms; available when use cell resistance input is true
Units
Tcell
K
Internal temperature of battery
i
A
Current into battery
v
V
Voltage across battery
Default
Ncell
1
Number of cells, connected in series
CA
A·h
Capacity of cell; available when use capacity input is false
C
SOC0
Initial state-of-charge [0..1]
SOCmin
0.02
Minimum allowable state-of-charge
Rcell
0.005
Ω
Fixed cell resistance, if use cell resistance input is false
allow overcharge
false
True allows simulation to continue with 1<SoC
allow_overcharge
allow overdischarge
True allows simulation to continue with SoC<SoCmin
allow_overdischarge
use capacity input
True allows enables the Cin input port
useCapacityInput
use cell resistance input
True allows enables the Rin input port
useResistInput
Rout
expoly array for series resistance
Rseries
Rtc1
expoly array for short time-constant resistance
Ttc1
s
expoly array for short time-constant duration
Rtc2
Ttc2
An exponential-polynomial (expoly) is a polynomial with an exponential term included. Its coefficients are given by a one-dimensional array, k, such that ⅇxpoly⁡k,soc=k1⁢ⅇxp⁡k2⁢soc+k3+k4⁢soc+k5⁢soc2+⋯.
[1] Chen, M. and Rincón-Mora, G.A., Accurate electrical battery model capable of predicting runtime and I-V performance, IEEE Transactions of Energy Conversion, Vol. 21, No. 2, 2006.
See Also
Battery Library Overview
Equivalent Circuit Overview
Download Help Document