The observed baryon fraction and velocity--temperature relation in clusters of galaxies are compared with hydrodynamic simulations in two cosmological models : standard (Omega = 1) and a low-density flat (Omega=0.45 and \lambda=0.55) CDM models, normalized to the COBE background fluctuations. The observed properties of clusters include the velocity dispersion versus temperature relation, the gas mass versus total mass relation, and the gas mass fraction versus velocity dispersion relation. We find that, while both cosmological models reproduce well the shape of these observed functions, only low-density CDM can reproduce the observed amplitudes. The cluster gas mass fraction reflects approximately the baryon fraction in the models, with a s...