Skip to content

Fix bug in mechanical constitutive law - #485

Open
Rombur wants to merge 1 commit into
adamantine-sim:masterfrom
Rombur:fix_mecha_law
Open

Fix bug in mechanical constitutive law#485
Rombur wants to merge 1 commit into
adamantine-sim:masterfrom
Rombur:fix_mecha_law

Conversation

@Rombur

@Rombur Rombur commented Jul 6, 2026

Copy link
Copy Markdown
Member

One plastic_modulus in the constitutive law should be plastic_strain_increment (see here for the equation).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request corrects the back stress update calculation in source/MechanicalPhysics.cc by replacing one of the plastic_modulus terms with plastic_strain_increment. There are no review comments, so no additional feedback is provided.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Rombur Rombur left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change looks correct and matches the constitutive equation referenced in the documentation. Replacing the second plastic_modulus with plastic_strain_increment also restores the expected dimensional consistency of the back-stress evolution.

The only suggestion I have is to add a regression test covering this constitutive update so that this typo cannot be reintroduced in the future. Otherwise, this looks good to me.

Rombur commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

For transparency: the review I submitted above was generated by ChatGPT at my request after inspecting the pull request and diff. I reviewed it before posting, but the wording is AI-generated.

@Rombur

Rombur commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

@codex review this pull request.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex review is not enabled for this repo. Please contact the admins of this repo to enable Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant