Repository navigation
Conversation
This was referenced Oct 18, 2026
petlenz
force-pushed
the
feature/material-reports
branch
from
October 18, 2026 20:03
f3ce58b to
11e21ff
Compare
petlenz
force-pushed
the
feature/strain-property
branch
from
October 18, 2026 20:03
69e24d4 to
8e21fad
Compare
petlenz
force-pushed
the
feature/material-reports
branch
from
October 18, 2026 20:22
11e21ff to
707809a
Compare
petlenz
force-pushed
the
feature/strain-property
branch
from
October 18, 2026 20:22
8e21fad to
0718c70
Compare
…n_property)
Every small-strain consumer took the strain from the fixed property "strain"
of its source. The composites that follow produce one strain per phase
("strain_matrix", "strain_<phase>"), and the phase materials have to read
those. strain_property (default "strain") names the property next to the
existing strain_source / strain_producer_name, the same way tangent_property
and nu_property do; nothing changes for existing documents.
linear_elasticity, linear_stress, j2_plasticity, drucker_prager_plasticity and
the three state functions; tests wire a material to another's stress under
the new name and check the default and a missing property.
petlenz
force-pushed
the
feature/material-reports
branch
from
October 19, 2026 04:06
707809a to
4549791
Compare
petlenz
force-pushed
the
feature/strain-property
branch
from
October 19, 2026 04:06
0718c70 to
32f4b5d
Compare
Member
Author
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
Every small-strain consumer read the fixed property
strainof its source. This addsstrain_property(default"strain") next to the existingstrain_source/strain_producer_nameonlinear_elasticity,linear_stressj2_plasticity,drucker_prager_plasticitystrain_energy_state_function,vector_strain_state_function,von_mises_state_functionNothing changes for existing documents;
incremental_linear_elasticitygets the same parameter in its own PR (#134) when the stack is rebased onto this one.Why
The mean-field rework (overview agreed in review) produces one strain per phase:
mean_field_strainpublishesstrain_matrix,strain_<phase>, and the phase materials consume them like any other strain. That needs the property name to be a parameter, exactly astangent_propertyandnu_propertyalready are. It is the bottom PR of the rework so every material above it can rely on it.JSON
{"materials": [ {"type": "external_strain_source", "name": "strain"}, {"type": "mean_field_strain", "name": "mt_strain", "strain_source": "strain", "...": "see the composite PRs"}, {"type": "linear_elasticity", "name": "matrix", "K": 100, "G": 40, "strain_producer_name": "mt_strain", "strain_property": "strain_matrix"}, {"type": "von_mises_state_function", "name": "state", "strain_source": "mt_strain", "strain_property": "strain_matrix"} ]}Tests
tests/test_strain_property.cpp: a material reads another material'sstressunder the new name (σ_b = ℂ : 2G ε on a deviatoric strain, closed form), the default is unchanged, a state function on the renamed property scales by 2G, a missing property is rejected atfinalize(), and the JSON form. 732/732 locally (g++-14).