First Principles Multiphase Modeling of Mesoscale Gas Transport in Porous Reactive Systems