-
Notifications
You must be signed in to change notification settings - Fork 248
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
[Structural] copy-paste bugfix in ConvCrit #5718
Conversation
@@ -420,7 +420,7 @@ class DisplacementAndOtherDoFCriteria : public ConvergenceCriteria< TSparseSpace | |||
} | |||
else | |||
{ | |||
mReferenceOtherDoFNorm += AuxValue*AuxValue; | |||
DeltaOtherDoFNorm += AuxValue*AuxValue; |
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.
Uff, that it is my fault
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.
no worries
I was always curious why it always said that the rotations converge instant, but never checked in detail why
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.
OK
@KratosMultiphysics/structural-mechanics this seems to be a game changer, the simulations that I struggle with for very very very long now converge like a charm! @agiuliodori could you please try the cases that did not converge for you from #4479 with this branch? |
I ran the tests now, they work fine, hence I will merge this @loumalouomega @AlejandroCornejo the following test fails (has nothing to do with this PR):
|
Okkey thank you, since I want to change the characteristic length calculation, I'll check all the changes |
@philbucher Hi Philipp, i tried the example again with the new branch but it still doesnt work for large displacement (it does work with small displacement beams). Here i attach the example: |
@agiuliodori I see that you set the number of non-lin iterations to 10, which in my experience is not enough for very non-lin problems. Did you try with a higher number? I suggest to try with up to 100. Usually it does not need this many but in some steps it might Also did you try to play with the conv-crit tolerances? Last but not least did you play with the timestep? What is the error you are getting? Does it not converge in some step or already not in the first one? |
@philbucher Thanks Philipp, i have already tried increasing the number of iterations and with different timestep values, but i did not try to play with tolerances yet. I will do it and tell you. |
@philbucher @RiccardoRossi Hi Philipp; i have run the test decreasing tolerances and the displacement field, and incresing the inertia values and it has already converged. Thanks! |
@agiuliodori if you have further problems, could you check out this branch: and use the |
Fixing a copy-paste error that leads to NEGLECTING the "other" Dof. For Structural Cases this means that it ALWAYS neglects how the rotations converge / convergence of rotations is not being checked!!!
This is the second time I fixed a MAYOR error in this criteria.
I have not checked the tests yet, no time right now
Since this is anyway 100% the same as the VelPr Criteria in the FluidDynamics I will refactor this and put it to the Core (and also make it compatible with Trilinos) FYI @sunethwarna @jcotela
@KratosMultiphysics/structural-mechanics please check your cases with this
Edit after my findings I would say this should also solve #4479 (closes #4479)