Refactor and improve several constitutive laws - #50
Merged
Conversation
…egration - Refactor and fix the pedagogical ElastoPlasticity law, including vectorized radial return, corrected hardening and PEP 8 APIs. - Modernize FE² using problem-level MeanStrain DOFs and remove obsolete virtual-node machinery. - Add nonlinear homogeneous and laminate shell laws with through-thickness material integration and Simcoon support. - Improve cohesive behavior with vectorized damage, optional consistent tangent and updated-Lagrangian interface support. - Add focused tests and examples, while removing obsolete constitutive-law modules.
Cohesive law: generalize separation handling to support 2D/3D (variable component count), validate the normal axis for the given dimensionality, and cache mode-onset/failure separations (_delta_0_I/_delta_0_II/_delta_m_II) to avoid recomputing them per Gauss point. Adjust tangent and damage-gradient shapes to use the actual number of components. Elasto-plasticity: clarify that the pedagogical ElastoPlasticity is 3D-only and update the plane-stress error to recommend using a Simcoon law for 2Dstress/through-thickness shell plasticity. Shells: fix membrane/bending/twist strain component mappings (correct indices and signs) and extract shared helpers (_copy_state, _tangent_array, _strain_matrix) to module-level for reuse across nonlinear shell classes; update callers accordingly and add guidance in docstrings about using Simcoon for plane-stress material laws. These changes fix indexing/shape bugs and reduce redundant computations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve constitutive laws, modernize FE², and add nonlinear shell integration