cratepy.ioput.packager.store_loading_path_data¶
- store_loading_path_data(mac_load_type, mac_load, mac_load_presctype, mac_load_increm, is_solution_rewinding, rewind_state_criterion=None, rewinding_criterion=None, max_n_rewinds=None)[source]¶
Store data associated with the macroscale loading path.
- Parameters:
mac_load_type ({1, 2, 3}) –
Loading type:
1 : Macroscale strain constraint
2 : Macroscale stress constraint
3 : Macroscale strain and stress constraint
mac_load (dict) – For each loading nature type (key, {‘strain’, ‘stress’}), stores the loading constraints for each loading subpath in a numpy.ndarray (2d), where the i-th row is associated with the i-th strain/stress component and the j-th column is associated with the j-th loading subpath.
mac_load_presctype (numpy.ndarray (2d)) – Loading nature type ({‘strain’, ‘stress’}) associated with each loading constraint (ndarray of shape (n_comps, n_load_subpaths)), where the i-th row is associated with the i-th strain/stress component and the j-th column is associated with the j-th loading subpath.
mac_load_increm (dict) – For each loading subpath id (key, str), stores a numpy.ndarray of shape (n_load_increments, 2) where each row is associated with a prescribed loading increment, and the columns 0 and 1 contain the corresponding incremental load factor and incremental time, respectively.
is_solution_rewinding (bool, default=False) – Problem solution rewinding flag.
rewind_state_criterion (tuple, default=None) – Rewind state storage criterion [0] and associated parameter [1].
rewinding_criterion (tuple, default=None) – Rewinding criterion [0] and associated parameter [1].
max_n_rewinds (int, default=None) – Maximum number of rewind operations.
- Returns:
macload_dict – Container.
- Return type: