Numerical Simulations for Tableting and Coating