This is a simple model of a supercapacitor, comprising:
There is no limit included against too high charging and too low discharging or even charging in the opposite direction.