Dislocation-induced linear-elastic strain dynamics by a Cahn–Hilliard-type equation