-
Notifications
You must be signed in to change notification settings - Fork 249
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
[GeoMechanicsApplication] Fix settlement differences in results for cauchy stress #11870
[GeoMechanicsApplication] Fix settlement differences in results for cauchy stress #11870
Conversation
… convergence state. Also needed two small changes in the .res file.
…rkflow (and introduces unforeseen side effects)
@@ -16,14 +16,16 @@ | |||
#include <memory> |
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.
I used clang format on this file (and some others), which is why there are so many diffs
@@ -9431,7 +9431,7 @@ Values | |||
365 2.14766e-05 -0.000360341 0 9.51122e-06 0 0 | |||
5.36916e-06 -0.000350692 0 5.06429e-06 0 0 | |||
5.36916e-06 -0.00034908 0 1.43639e-05 0 0 | |||
366 4.84909e-05 -0.000380399 0 8.19316e-12 0 0 |
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.
There are two of these very minor changes in the stage 3 res file. I think they are acceptable, let me know what you think
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 should be acceptable.
@@ -39,7 +39,7 @@ | |||
"rayleigh_m": 0.0, | |||
"rayleigh_k": 0.0, | |||
"strategy_type": "newton_raphson", | |||
"convergence_criterion": "displacement_criterion", | |||
"convergence_criterion": "residual_criterion", |
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 is to make sure the residual_criterion is also covered. Indeed, the test failed when changing the criterion, which got fixed after removing the 'IsConverged' call
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.
Good that it now appears in the test.
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.
Just as a reminder: I would propose to add a small comment to this json
file which explains why there is one deviating "convergence_criterion"
(just for our future selfs ;-))
applications/GeoMechanicsApplication/tests/cpp_tests/test_settlement_workflow.cpp
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/cpp_tests/test_settlement_workflow.cpp
Outdated
Show resolved
Hide resolved
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 fixing the issue and for improving the code layout with clang-format. Well done!
@@ -39,7 +39,7 @@ | |||
"rayleigh_m": 0.0, | |||
"rayleigh_k": 0.0, | |||
"strategy_type": "newton_raphson", | |||
"convergence_criterion": "displacement_criterion", | |||
"convergence_criterion": "residual_criterion", |
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.
Just as a reminder: I would propose to add a small comment to this json
file which explains why there is one deviating "convergence_criterion"
(just for our future selfs ;-))
📝 Description
This PR removes some unintended side-effects in the time step executor by removing the 'IsConverged' call and getting the convergence state directly form the SolveSolutionStep function.
🆕 Changelog