  Models of galaxy formation should be able to predict the properties of
clusters of galaxies, in particular their gas fractions, metallicities, X-ray
luminosity-temperature relation, temperature function and mass-deposition-rate
function. Fitting these properties places important constaints on galaxy
formation on all scales. By following gas processes in detail, our
semi-analytic model (based on that of Nulsen & Fabian 1997) is the only such
model able to predict all of the above cluster properties. We use realistic gas
fractions and gas density profiles, and as required by observations we break
the self-similarity of cluster structure by including supernova heating of
intracluster gas, the amount of which is indicated by the observed
metallicities. We also highlight the importance of the mass-deposition-rate
function as an independent and very sensitive probe of cluster structure.
