cratepy.ioput.packager.store_regular_grid_data

store_regular_grid_data(discret_file_path, regular_grid, rve_dims, problem_dict)[source]

Store data associated with the RVE spatial discretization.

Parameters:
  • discret_file_path (str) – Spatial discretization file path.

  • regular_grid (numpy.ndarray (2d or 3d)) – Regular grid of voxels (spatial discretization of the RVE), where each entry contains the material phase label (int) assigned to the corresponding voxel.

  • rve_dims (list) – RVE size in each dimension.

  • problem_dict (dict) – Container.

Returns:

rg_dict – Container.

Return type:

dict