Hi Bence,
You can model a housing for your battery modules that prevents heat transfer between the modules. This could be passively by eliminating the heat transfer path between module, or by setting the coefficients for heat transfer such that only very little heat can be exchanged. You could also do this actively, where a cooling channel is placed between the modules.
--Steve