Skip to content
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

Handle absolute tolerance for structural convergence tests as input settings and increase default value #221

Merged
merged 1 commit into from Oct 27, 2022

Conversation

sduess
Copy link
Collaborator

@sduess sduess commented Oct 27, 2022

The absolute tolerance used in xbeam for the convergence test is added as a user-defined input to the base structural solver and is passed to xbeam with xbopts. The main reason for the change is a bug in xbeam where the absolute tolerance was defined as too small to be able to catch significant small residuals in convergence tests for which the relative tolerance fails (see ImperialCollegeLondon/xbeam#11). As a result, the structural solver did not converge for the external gust assembler test part of SHARPy's unittest. Further, it has been noticed that the absolute tolerance was defined differently in various functions.

Hence, this pull request includes the following changes:

  • define the absolute tolerance for convergence checks within xbeam as a central parameter in xbopts
  • increase the default value to catch very small residuals
  • allows an adjustment of the absolute tolerance by the user if needed

The absolute tolerance used in xbeam for convergence test is added as a user defined input to the base structural solver and is passed to xbeam with xbopts. This input allows a consistent definition of the absolute tolerance. Further, its default value is increased as it was defined to small to catch very small residuals, which led to non-convergent simulations in the TestGustAssembly unittest.
@sduess sduess added the bug label Oct 27, 2022
@sduess sduess requested review from kccwing and ACea15 October 27, 2022 09:56
Copy link
Collaborator

@kccwing kccwing left a comment

Choose a reason for hiding this comment

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

Thanks @sduess!!

@kccwing kccwing merged commit f778c06 into develop Oct 27, 2022
@kccwing kccwing deleted the dev_fix_convergence_check_xbeam branch October 27, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants