Numerical Simulation and Characterisation of the Packing of Granular Materials