Discrete particle simulation of the spreading process in additive manufacturing