Create a Polycrystal with Voronoi Tessellation for the Grid Solver

[1]:
import damask
import numpy as np
[2]:
size = np.ones(3)*1e-5
cells = [64,64,64]
N_grains = 200
[3]:
seeds = damask.seeds.from_random(size,N_grains,cells)
grid = damask.Grid.from_Voronoi_tessellation(cells,size,seeds)
grid.save(f'Polycystal_{N_grains}_{cells[0]}x{cells[1]}x{cells[2]}')
grid
[3]:
cells  a b c: 64 x 64 x 64
size   x y z: 1e-05 x 1e-05 x 1e-05
origin x y z: 0.0   0.0   0.0
# materials: 200