Opensolar Battery Modeling