Modeling Foams for Acid Diversion