Battery

electrical.battery

Battery as an open circuit voltage that rises linearly with the state of charge, in series with a resistance R. Current into p charges it. 1 A.h is 3600 C.

Ports

NameDomain
pelectrical
nelectrical

Parameters

NameUnitDefaultRangeDescription
VemptyV3Open circuit voltage at state of charge 0
VfullV4.2Open circuit voltage at state of charge 1
ROhm0.050 to ∞Internal resistance
QC72000 to ∞Capacity
soc0110 to 1State of charge at the start

Variables

NameUnitStart
vV
iA
soc1soc0

Equations

v = p.v - n.v
0 = p.i + n.i
i = p.i
v = Vempty + (Vfull - Vempty) * soc + R * i
Q * der(soc) = i