Forecasting Damage and Consolidation: Mathematical Models of Reacting Flows in Porous Media