Application of Digital Twin in Smart Battery Management Systems