cratepy.online.crom.asca.VoxelsOutput

class VoxelsOutput(voxout_file_path, strain_formulation, problem_type)[source]

Bases: object

Output file: Voxels material-related output.

_col_width

Output file column width.

Type:

int

_output_variables

Each item is a tuple associated with a material-related output variable that contains the variable name (index 0) and the variable number of dimensions (index 1). This list sets the order by which the material-related output variables are output.

Type:

list[tuple]

_output_vars_dims

Total number of material-related output variables dimensions.

Type:

int

init_voxels_output_file(self, crve)[source]

Open output file and write file header.

write_voxels_output_file(self, n_dim, comp_order, crve, clusters_state, clusters_def_gradient_mf)[source]

Write output file.

rewind_file(self, rewind_inc)[source]

Rewind output file.

Constructor.

Parameters:
  • voxout_file_path (str) – Problem ‘.voxout’ output file path.

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

  • problem_type (int) – Problem type: 2D plane strain (1), 2D plane stress (2), 2D axisymmetric (3) and 3D (4).

List of Public Methods

init_voxels_output_file

Open output file and write file header.

rewind_file

Rewind output file.

write_voxels_output_file

Write output file.

Methods

__init__(voxout_file_path, strain_formulation, problem_type)[source]

Constructor.

Parameters:
  • voxout_file_path (str) – Problem ‘.voxout’ output file path.

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

  • problem_type (int) – Problem type: 2D plane strain (1), 2D plane stress (2), 2D axisymmetric (3) and 3D (4).

init_voxels_output_file(crve)[source]

Open output file and write file header.

Parameters:

crve (CRVE) – Cluster-Reduced Representative Volume Element.

rewind_file(rewind_inc)[source]

Rewind output file.

Parameters:

rewind_inc (int) – Increment associated with the rewind state.

write_voxels_output_file(n_dim, comp_order, crve, clusters_state, clusters_def_gradient_mf)[source]

Write output file.

Parameters:
  • n_dim (int) – Problem dimension.

  • comp_order (list[str]) – Strain/Stress components (str) order.

  • crve (CRVE) – Cluster-Reduced Representative Volume Element.

  • clusters_state (dict) – Material constitutive model state variables (item, dict) associated to 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.