The properties of the hot gas in galaxy groups and clusters from ID hydrodynamical simulations - I. Cosmological infall models | Synapse