Sounds like the suggested tube system
2 years ago there were suggestions of doing something a bit similar on London's tubes - big tank under the train which would be cooled when the train's above ground and then melted underground, extracting the heat from the carriages.
At first glance, it seems perfectly reasonable; it'll be good if it works.