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

Convergence problems in non-linear iteration loop #28

Open
danrhouck opened this issue Jul 15, 2020 · 3 comments
Open

Convergence problems in non-linear iteration loop #28

danrhouck opened this issue Jul 15, 2020 · 3 comments

Comments

@danrhouck
Copy link

I got this error while running. Can you help me figure out what needs to be addressed to fix it?
Norm. Time, Theta (rad), Revolution, Torque Coeff., Power Coeff.
0.19640E+02 0.15834E+03 26. 0.59640E-01 0.48082E+00
Timestep: 506
0***** NON-LINEAR ITERATION LOOP DID NOT CONVERGE IN 10 ITERATIONS. PROGRAM TERMINATED. *****
Note: The following floating-point exceptions are signalling: IEEE_DIVIDE_BY_ZERO IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

@whophil whophil changed the title Help with error Convergence problems in non-linear iteration loop Jul 16, 2020
@whophil
Copy link
Collaborator

whophil commented Jul 16, 2020

At each timestep there is there an iteration loop to ensure that the bound vorticity and its effect on local angle of attack are consistent. This is done using a fixed point iteration. See code around https://github.com/SNL-WaterPower/CACTUS/blob/80b28c9aa00e6ccfcd552b2c2e007fb2a6b3442f/src/CACTUS.f95#L140

The error you are seeing indicates that:

  1. This loop did not converge to NLTol within 10 iterations https://github.com/SNL-WaterPower/CACTUS/blob/80b28c9aa00e6ccfcd552b2c2e007fb2a6b3442f/src/CACTUS.f95#L140
  2. There might also be some divid by zero issues.

A few ideas to try:

  1. Look at your airfoil polars. The fixed point iteration may be poorly behaved if your airfoil polars are not smooth. Are you using +/- 180 degree polars?
  2. Try increasing the tolerance and max number of iterations. You will need to recompile as these parameters are not currently exposed.
  3. Try disabling the convergence loop entirely. I never looked at how much this affects the solutions.

@danrhouck
Copy link
Author

danrhouck commented Jul 16, 2020 via email

@jcokemurray
Copy link
Contributor

jcokemurray commented Jul 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants