Modeling the Porosity Evolution of a Powder under Uniaxial Compression