Material simulation: grain structure development in 3D