An Accurate Charging Model of Battery Energy Storage | Synapse