cratepy.online.crom.asca.IncrementRewinder

class IncrementRewinder(rewind_inc, phase_clusters)[source]

Bases: object

Rewind analysis to rewind state increment (initial instant).

_rewind_inc

Increment associated with the rewind state.

Type:

int

_loading_path

Loading path instance rewind state.

Type:

LoadingPath

_material_state

CRVE material constitutive state at rewind state.

Type:

MaterialState

_clusters_sct_mf

Fourth-order strain concentration tensor (matricial form) (item, numpy.ndarray (2d)) associated with each material cluster (key, str).

Type:

dict

_ref_material

Elastic reference material at rewind state.

Type:

ElasticReferenceMaterial

_global_strain_mf

Global vector of clusters strain tensors (matricial form).

Type:

numpy.ndarray (1d)

_farfield_strain_mf

Far-field strain tensor (matricial form).

Type:

numpy.ndarray (1d)

get_rewind_inc(self)[source]

Get increment associated with the rewind state.

save_loading_path(self, loading_path)[source]

Save loading path rewind state.

get_loading_path(self)[source]

Get loading path at rewind state.

save_material_state(self, material_state)[source]

Save material constitutive state at rewind state.

save_asca_algorithmic_variables(self, global_strain_mf, farfield_strain_mf)[source]

Save ASCA algorithmic variables at rewind state.

get_asca_algorithmic_variables(self)[source]

Get ASCA algorithmic variables at rewind state.

rewind_output_files(self, hres_output=None, efftan_output=None, ref_mat_output=None, voxels_output=None, adapt_output=None, vtk_output=None)[source]

Increment rewinder constructor.

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

  • phase_clusters (dict) – Clusters labels (item, list[int]) associated with each material phase (key, str).

List of Public Methods

get_asca_algorithmic_variables

Get ASCA algorithmic variables at rewind state.

get_clusters_sct

Get clusters strain concentration tensors at rewind state.

get_loading_path

Get loading path at rewind state.

get_material_state

Get material constitutive state at rewind state.

get_reference_material

Get elastic reference material at rewind state.

get_rewind_inc

Get increment associated with the rewind state.

rewind_output_files

Rewind output files to the rewind state.

save_asca_algorithmic_variables

Save ASCA algorithmic variables at rewind state.

save_clusters_sct

Save clusters strain concentration tensors at rewind state.

save_loading_path

Save loading path rewind state.

save_material_state

Save material constitutive state at rewind state.

save_reference_material

Save elastic reference material at rewind state.

Methods

__init__(rewind_inc, phase_clusters)[source]

Increment rewinder constructor.

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

  • phase_clusters (dict) – Clusters labels (item, list[int]) associated with each material phase (key, str).

get_asca_algorithmic_variables()[source]

Get ASCA algorithmic variables at rewind state.

Returns:

  • global_strain_mf (numpy.ndarray (1d)) – Global vector of clusters strain tensors (matricial form).

  • farfield_strain_mf (numpy.ndarray (1d), default=None) – Far-field strain tensor (matricial form).

get_clusters_sct()[source]

Get clusters strain concentration tensors at rewind state.

Returns:

clusters_sct_mf – Fourth-order strain concentration tensor (matricial form) (item, numpy.ndarray (2d)) associated with each material cluster (key, str).

Return type:

dict

get_loading_path()[source]

Get loading path at rewind state.

Returns:

loading_path – Loading path instance rewind state.

Return type:

LoadingPath

get_material_state(crve)[source]

Get material constitutive state at rewind state.

Parameters:

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

Returns:

material_state – CRVE material constitutive state at rewind state.

Return type:

MaterialState

get_reference_material()[source]

Get elastic reference material at rewind state.

Returns:

ref_material – Elastic reference material at rewind state.

Return type:

ElasticReferenceMaterial

get_rewind_inc()[source]

Get increment associated with the rewind state.

Returns:

rewind_inc – Increment associated with the rewind state.

Return type:

int

rewind_output_files(hres_output=None, efftan_output=None, ref_mat_output=None, voxels_output=None, adapt_output=None, vtk_output=None)[source]

Rewind output files to the rewind state.

Parameters:
  • hres_output (HomResOutput) – Output associated with the homogenized results.

  • efftan_output (EffTanOutput) – Output associated with the CRVE effective tangent modulus.

  • ref_mat_output (RefMatOutput) – Output associated with the reference material.

  • voxels_output (VoxelsOutput) – Output associated with voxels material-related quantities.

  • adapt_output (ClusteringAdaptivityOutput) – Output associated with the clustering adaptivity procedures.

  • vtk_output (VTKOutput) – Output associated with the VTK files.

save_asca_algorithmic_variables(global_strain_mf, farfield_strain_mf)[source]

Save ASCA algorithmic variables at rewind state.

Parameters:
  • global_strain_mf (numpy.ndarray (1d)) – Global vector of clusters strain tensors (matricial form).

  • farfield_strain_mf (numpy.ndarray (1d), default=None) – Far-field strain tensor (matricial form).

save_clusters_sct(clusters_sct_mf)[source]

Save clusters strain concentration tensors at rewind state.

Parameters:

clusters_sct_mf (dict) – Fourth-order strain concentration tensor (matricial form) (item, numpy.ndarray (2d)) associated with each material cluster (key, str).

save_loading_path(loading_path)[source]

Save loading path rewind state.

Parameters:

loading_path (LoadingPath) – LoadingPath instance.

save_material_state(material_state)[source]

Save material constitutive state at rewind state.

Parameters:

material_state (MaterialState) – CRVE material constitutive state at rewind state.

save_reference_material(ref_material)[source]

Save elastic reference material at rewind state.

Parameters:

ref_material (ElasticReferenceMaterial) – Elastic reference material at rewind state.