A simple battery model: SOC (state of charge) is tracked by measuring the current and integrating to achieve charge.
For simplicity reasons the prescribed open-circuit voltage depends linearly on state of charge between
Voc
at SOC=1
and Vmin
at SOCmin
.
Additionally the internal resistance (computed from short-circuit current Isc
at SOC=1
) is taken into account.