Princip funkce akumulátoru