hookeai.miscellaneous.materials.compare_material_models.compare_material_model_response

compare_material_model_response(strain_formulation, problem_type, strain_comps_order, time_hist, strain_path, constitutive_models={}, ref_stress_path=None, save_dir=None, is_save_fig=False, is_stdout_display=False, is_latex=False)[source]

Compare constitutive models stress predictions for given strain path.

Parameters:
  • strain_formulation ({'infinitesimal', 'finite'}) – Strain formulation.

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

  • strain_comps_order (tuple[str]) – Strain components order.

  • time_hist (numpy.ndarray(1d)) – Discrete time history.

  • strain_path (numpy.ndarray(2d)) – Strain path history stored as numpy.ndarray(2d) of shape (sequence_length, n_strain_comps).

  • constitutive_models (dict) – FETorch material constitutive models (key, str, item, ConstitutiveModel).

  • ref_stress_path (numpy.ndarray(2d), default=None) – Stress path history stored as numpy.ndarray(2d) of shape (sequence_length, n_stress_comps).

  • save_dir (str, default=None) – Directory where figure is saved.

  • is_save_fig (bool, default=False) – Save figure.

  • is_stdout_display (bool, default=False) – True if displaying figure to standard output device, False otherwise.

  • is_latex (bool, default=False) – If True, then render all strings in LaTeX. If LaTex is not available, then this option is silently set to False and all input strings are processed to remove $(…)$ enclosure.