Modelling Terrestrial Planetary Atmospheres