Repository navigation
Conversation
A material declares a stress-like rank-2 history by its type, stress_like<T> (a tmech tensor usable in expressions); statev_map stores it with stress_to_buffer/stress_from_buffer, so the host sees sigma_12, not 2 sigma_12. Plain tensor2 history keeps the strain convention. describe() marks the entry [stress]. Closes #63
This was referenced Oct 17, 2026
Member
Author
This was referenced Oct 21, 2026
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.
What
core/stress_like.h:stress_like<T>is atmech::tensor<T, 3, 2>that marks a history property as stress-like. It inherits the tensor's constructors and assignment, and anis_tensor_typespecialization lets it take part in tmech expressions.add_history_output<stress_like<value_type>>("back_stress").statev_mapstores it withstress_to_buffer/stress_from_buffer, so the host sees σ₁₂ rather than 2σ₁₂. Plaintensor2history keeps the strain convention (default, unchanged), anddescribe()marks the entry[stress].No files of the open PRs are touched (
material_base.handproperty_traitsstay as they are); the kinematic-hardening model of #20/#55 can use the type for its back stress.Tests
StatevMap.StressLikeHistoryKeepsItsShearComponentsForTheHostintest_material_point_evaluator.cpp, using a probe material with a stress-like and a strain-like history. It checks:[stress]marker.It failed to compile before (no
stress_like). GCC 14 Debug with fetched dependencies: 622/622.Closes #63