Development Of A Mathematical Model For Galvanic Cells