cratepy.ioput.miscoutputfiles.voxelsoutput.VoxelsArraysFactory¶
- class VoxelsArraysFactory(strain_formulation, problem_type)[source]¶
Bases:
object
Build clusters state-based voxels arrays.
- available_vars¶
Number of dimensions (item, int) of each available cluster state-based variable (key, str).
- Type:
- build_voxels_array(self, crve, csbvar, clusters_state, clusters_def_gradient_mf)[source]¶
Build clusters state-based voxel array.
Constructor.
- Parameters:
List of Public Methods
Build clusters state-based voxel array.
Methods
- build_voxels_array(crve, csbvar, clusters_state, clusters_def_gradient_mf)[source]¶
Build clusters state-based voxel array.
- Parameters:
crve (CRVE) – Cluster-Reduced Representative Volume Element.
csbvar (str) – Cluster state based voxel-defined quantity.
clusters_state (dict) – Material constitutive model state variables (item, dict) associated with each material cluster (key, str).
clusters_def_gradient_mf (dict) – Deformation gradient (item, numpy.ndarray (1d)) associated with each material cluster (key, str), stored in matricial form.
- Returns:
array_vox_list – List that stores arrays of a given cluster state-based voxel-defined quantity (item, numpy.ndarray (2d or 3d) of shape equal to RVE regular grid discretization).
- Return type:
list[numpy.ndarray (2d or 3d)]