Prediction of Porosity in Compacted Sands