calculate energy estimated in a ball mill