Modeling the heterogeneous ice and gas coma of Comet 103P/Hartley 2