Numerical analysis for semiconductor/battery system