-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A postprocessor that outputs the second invariant of the deviatoric stress tensor #4369
A postprocessor that outputs the second invariant of the deviatoric stress tensor #4369
Conversation
Could the calculation of the stress tensor be moved into a utilities function? There's quite a lot of code overlap with the Stress visualization function (which is currently in flux; see #4375). |
I agree that it would make sense not to repeat assembling the stress tensor in different postprocessors. Currently there are 4 pps that could benefit from a utilities function:
However, I think it falls outside the scope of this current PR to create such a function. Happy to open a new PR of course. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks generally ok to me, but I have one question (see above). Ready if you fix this here, or explain why this PR does not need the fix.
Ready to merge, but I forgot to ask for a changelog entry. Could you add one? Feel free to merge yourself afterwards (or leave me a note so I can merge). |
I'll add the changelog, but should I undo the change in the way the stress is computed when elasticity is used? Seeing that we decided to not change the other stress postprocessors, undoing the last commit would at least make all the stress postprocessors consistent. |
No don't undo the last commit. The current form is correct with the current stress calculation. The fact that it is inconsistent with the other postprocessors is caused by the other postprocessors being wrong at the moment. Let's not break stuff because we decided we will make changes in the future (let's just remember to change this postprocessor when we finally do). |
Okay, I've added the changelog. |
For all pull requests:
For new features/models or changes of existing features: