 Charger - MapleSim Help

Charger

Battery Charger model  Description The Charger component models a battery charger with settable current and voltage limits. The charging current is constant, ${I}_{\mathrm{max}}$, until the nominal charging voltage, ${V}_{\mathrm{nom}}$ 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 ($\mathrm{TC}$) adjusts the charging voltage with temperature. An optional boolean input turns the charger on and off. Equations $\left\{\left({T}_{\mathrm{heatPort}}=T;¬\mathrm{useHeatPort}\right)$ $\left\{\begin{array}{cc}\left\{{i}_{\mathrm{ch}}=0,s=1\right\}& \mathrm{useOnSignal}\wedge ¬\mathrm{on}\\ \left\{v={v}_{\mathrm{oc}}\cdot \left(1+s\right),{i}_{\mathrm{ch}}={I}_{\mathrm{max}}\right\}& s<0\\ \left\{v={v}_{\mathrm{oc}},{i}_{\mathrm{ch}}={I}_{\mathrm{max}}\cdot \left(1-s\right)\right\}& s<1\\ \left\{v={v}_{\mathrm{oc}}s,{i}_{\mathrm{ch}}=0\right\}\phantom{\rule[-0.0ex]{4.0ex}{0.0ex}}& \mathrm{otherwise}\end{array}$ $i={i}_{p}=-{i}_{n}=-{i}_{\mathrm{ch}}$ $v={v}_{p}-{v}_{n}$ ${v}_{\mathrm{oc}}={V}_{\mathrm{nom}}+\mathrm{TC}\cdot \left({T}_{\mathrm{heatPort}}-{T}_{\mathrm{ref}}\right)$ $\mathrm{LossPower}=0$ Variables

 Name Units Description Modelica ID $v$ $V$ Output voltage v $i$ $A$ Current into charger i $\mathrm{LossPower}$ $W$ Loss power leaving component via heatPort LossPower ${T}_{\mathrm{heatPort}}$ $K$ Temperature of heatPort T_heatPort Connections

 Name Type Description Modelica ID $p$ Electrical Positive electrical pin p $n$ Electrical Negative electrical pin n $\mathrm{on}$ Boolean input Conditional boolean signal to enable charger on $\mathrm{heatPort}$ Thermal Conditional heat port heatPort Parameters

 Name Default Units Description Modelica ID ${V}_{\mathrm{nom}}$ $1$ $V$ Nominal charging voltage Vnom ${I}_{\mathrm{max}}$ $1$ $A$ Maximum charging current Imax Use on signal $\mathrm{false}$ True enables boolean $\mathrm{on}$ signal useOnSignal Use heat port $\mathrm{false}$ True enables heat port useHeatPort $\mathrm{TC}$ $0$ $\frac{V}{K}$ Temperature coefficent (V/K) TC ${T}_{\mathrm{ref}}$ $298.15$ $K$ Reference temperature Tref