Simulation Models of Batteries