A model for the hydrogen coma of a comet