Secondary battery reaction modelling using ODEs