From solids to particle-based models