grinding spark out dwell calculations