Methods for incorporating particle rearrangement into compaction using thermodynamic approaches