Discrete element simulation of graphite reactions