Cooling and heating the intracluster medium in hydrodynamical simulations | Synapse