-
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
fixed stress visualization for elastic materials #4375
Conversation
/rebuild |
Hi @bobmyhill , thanks for the fix! Two comments:
|
Hi @anne-glerum, sure, I can make those changes. |
Great. If #4369 is merged, you could add the stress postprocessor to the viscoelastic_stress_build-up test (or stick with the stress invariant postprocessor already selected). The value of ve_stress_xx should be 100 MPa, ve_stress_yy -100 MPa and of the second invariant 100 MPa. |
@bobmyhill - I agree with @anne-glerum that the proposed changes look good and we should merge after the requested changes to principal_stresses.cc and shear_stress.cc are are done (either here or in a separate PR). If it would help, I can make separate PRs for those other post processors, which can then be merged after this PR is merged. |
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.
Ouch, it looks like this bugfix was ready all the time and we forgot to merge it. Let's do this now.
@bobmyhill or @anne-glerum: Could you check the status of the other postprocessors mentioned in your discussion. Are they already fixed, or also still broken? If they also have waiting PRs, could you point me to them?
/rebuild |
f0e3a25
to
ad35c1e
Compare
94d1f7c
to
3391ba8
Compare
@gassmoeller I've now added the shear stress postprocessor and a test. |
Ah, I misunderstood the output. stress_xx, stress_xy and stress_yy are output directly from the fields, so they have the opposite sign to the ones calculated using the postprocessors. This looks a bit weird, but I guess we have to put up with it. |
830e3d7
to
0cfc1ab
Compare
One thing that I still need to double check and document is the sign convention for the initial conditions for the stress fields. |
@anne-glerum, @gassmoeller, @tjhei: This should now be ready for a ?final round of review. Philosophical question: at the moment, users input initial stresses with the engineering sign convention (See, for example, aspect/tests/viscoelastic_stress_build-up.prm), but we output with the geological sign convention. Not something to deal with in this PR, but I do think we should make the user-facing bits of ASPECT consistent. The easiest way to do this would be to output stresses with the engineering convention. |
Hey @gassmoeller, could you look this over now that your PR (#5480) is merged? |
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.
Thanks for the reminder. Almost good to go if you address my nitpicking :-)
Nitpicking addressed :) |
Looks like the test failures are unrelated to this PR (gmg related). See prebuild tests here: https://github.com/geodynamics/aspect/actions/runs/7038002009/job/19156376251?pr=4375#logs |
Yup, the test failures are unrelated. This is good to go. Thanks for the patience. |
This PR (hopefully) fixes the stress visualization for materials where elasticity is enabled. The ve_stress_xx compositional fields correspond to the full deviatoric stress, not only additional elastic stresses.
Opened for testing.