Energy storage thermal management system pipeline design