Virtual material generator for polycrystalline materials in 2 and 3 dimensions.