Charger
Battery Charger model
Description
Equations
Variables
Connections
Parameters
The Charger component models a battery charger with settable current and voltage limits. The charging current is constant, Imax, until the nominal charging voltage, Vnom is reached, at which point that voltage is maintained. The charger will not sink current.
An optional heat port senses the battery temperature. If the heat port is enabled, a specified temperature coefficient (TC) adjusts the charging voltage with temperature.
An optional boolean input turns the charger on and off.
{TheatPort=T;¬useHeatPort
{ich=0,s=1useOnSignal∧¬onv=voc⋅1+s,ich=Imaxs<0v=voc,ich=Imax⋅1−ss<1v=voc⁢s,ich=0otherwise
i=ip=−in=−ich
v=vp−vn
voc=Vnom+TC⋅TheatPort−Tref
LossPower=0
Name
Units
Modelica ID
v
V
Output voltage
i
A
Current into charger
LossPower
W
Loss power leaving component via heatPort
TheatPort
K
Temperature of heatPort
T_heatPort
Type
p
Electrical
Positive electrical pin
n
Negative electrical pin
on
Boolean input
Conditional boolean signal to enable charger
heatPort
Thermal
Conditional heat port
Default
Vnom
1
Nominal charging voltage
Imax
Maximum charging current
Use on signal
false
True enables boolean on signal
useOnSignal
Use heat port
True enables heat port
useHeatPort
TC
0
VK
Temperature coefficient (V/K)
Tref
298.15
Reference temperature
See Also
Battery Library Overview
Download Help Document