cratepy.online.loading.macloadincrem.RewindManager¶
- class RewindManager(rewind_state_criterion, rewinding_criterion, max_n_rewinds=1)[source]¶
Bases:
object
Manage analysis rewind operations and evaluate analysis rewind criteria.
- is_rewinding_criteria(self, inc, material_phases, phase_clusters, clusters_state)[source]¶
Check analysis rewinding criteria.
- get_save_rewind_state_criteria()[source]¶
Get available rewind state storage criteria and default parameters.
Analysis rewind manager constructor.
- Parameters:
List of Public Methods
Get total time of rewind operations and deleted analysis increments.
Get rewinding criteria and default parameters.
Get available rewind state storage criteria and default parameters.
Evaluate if rewind operations are available.
Check analysis rewinding criteria.
Evaluate conditions to save rewind state.
Update total rewind time.
Methods
- __init__(rewind_state_criterion, rewinding_criterion, max_n_rewinds=1)[source]¶
Analysis rewind manager constructor.
- get_rewind_time()[source]¶
Get total time of rewind operations and deleted analysis increments.
- Returns:
rewind_time – Total time of rewind operations and in deleted analysis increments.
- Return type:
- static get_rewinding_criteria()[source]¶
Get rewinding criteria and default parameters.
- Returns:
available_rewinding_criteria – Available rewinding criteria (key, str) and associated default parameters (item).
- Return type:
- static get_save_rewind_state_criteria()[source]¶
Get available rewind state storage criteria and default parameters.
- Returns:
available_save_rewind_state_criteria – Available rewind state storage criteria (key, str) and associated default parameters (item).
- Return type:
- is_rewind_available()[source]¶
Evaluate if rewind operations are available.
- Returns:
is_available – True if rewind operations are available, False otherwise.
- Return type:
- is_rewinding_criteria(inc, material_phases, phase_clusters, clusters_state)[source]¶
Check analysis rewinding criteria.
- Parameters:
inc (int) – Macroscale loading increment.
material_phases (list[str]) – CRVE material phases labels (str).
phase_clusters (dict) – Clusters labels (item, list[int]) associated with each material phase (key, str).
clusters_state (dict) – Material constitutive model state variables (item, dict) associated with each material cluster (key, str).
- Returns:
is_rewind – True if analysis rewinding criteria are satisfied, False otherwise.
- Return type: