Skip to content

Commit

Permalink
Fixed execution error under finite strains.
Browse files Browse the repository at this point in the history
- Avoid state update kinematic post-processing when state update fails;
  • Loading branch information
BernardoFerreira committed Oct 26, 2023
1 parent c13a696 commit aa7af4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cratepy/material/materialmodeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,9 @@ def _material_su_interface(strain_formulation, problem_type,
constitutive_model.state_update(inc_strain, state_variables_old)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Compute Cauchy stress tensor and material consistent tangent modulus
if strain_formulation == 'finite' and strain_type == 'finite-kinext':
if (not state_variables['is_su_fail']
and strain_formulation == 'finite'
and strain_type == 'finite-kinext'):
# Get Kirchhoff stress tensor (matricial form)
kirchhoff_stress_mf = state_variables['stress_mf']
# Build Kirchhoff stress tensor
Expand Down

0 comments on commit aa7af4e

Please sign in to comment.