cratepy.ioput.miscoutputfiles.vtkoutput.VoxelsArraysFactory

class VoxelsArraysFactory(strain_formulation, problem_type)[source]

Bases: object

Build clusters state-based voxels arrays.

_n_dim

Problem number of spatial dimensions.

Type:

int

_comp_order_sym

Strain/Stress components symmetric order.

Type:

list[str]

_comp_order_nsym

Strain/Stress components nonsymmetric order.

Type:

list[str]

available_vars

Number of dimensions (item, int) of each available cluster state-based variable (key, str).

Type:

dict

build_voxels_array(self, crve, csbvar, clusters_state, clusters_def_gradient_mf)[source]

Build clusters state-based voxel array.

Constructor.

Parameters:
  • strain_formulation (str, {'infinitesimal', 'finite'}) – Problem strain formulation.

  • problem_type (int) – Problem type identifier (1 - Plain strain (2D), 4- Tridimensional)

List of Public Methods

build_voxels_array

Build clusters state-based voxel array.

Methods

__init__(strain_formulation, problem_type)[source]

Constructor.

Parameters:
  • strain_formulation (str, {'infinitesimal', 'finite'}) – Problem strain formulation.

  • problem_type (int) – Problem type identifier (1 - Plain strain (2D), 4- Tridimensional)

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)]