A Computational Model For Thermal Management Of Battery Storage Systems