Investigation on dynamic recrystallization using a modified cellular automaton