  We present results of including heating and cooling in cosmological
simulations of the $\Lambda$CDM cosmology and demonstrate their effects on
scaling laws of galaxy clusters. The scaling relations when radiative cooling
is included are in good agreement with observations but the fraction of cooled
gas is on the upper limit allowed by observations. On the contrary, the
preheating model has a more realistic cooled fraction but the scaling relations
are less well produced.
