Smart battery thermal management system design