The Charger component models a battery charger with settable current and voltage limits. The charging current is constant, , until the nominal charging voltage, 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 () adjusts the charging voltage with temperature.
An optional boolean input turns the charger on and off.