This linear battery model is based on a linear capacitor which can be charged and discharged.
The battery cell is parameterized by the upper and lower operationg voltage limit and the total
energy content ECell
which is accessible for V0cell ≤ vCell ≤ V1Cell
.
By default the battery starts fully charged. The battery internal resistance RCell
is considered.
By default an assert is triggered with the battery is overcharged oder undercharged.
These asserts can be avoided by setting the parameters allowOvercharge
and allowUndercharge
to true
.