According to the Hall–Petch relationship, the strength of the materials grows with a decrease in the grain size. If I wanna study the impact of grain size on the mechanical properties of rocks using molecular dynamics methods, how to characterise the grain size of materials (e.g., rocks) using molecular dynamics methods?