Expansion of gases